Show
Ignore:
Timestamp:
07/04/08 06:16:26 (5 months ago)
Author:
flynd
Message:

Marked deprecated functions in icqd and chat.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/licq/include/licq_chat.h

    r6405 r6419  
    22#define CHAT_H 
    33 
     4#include <cstdlib> 
    45#include <deque> 
    56#include <list> 
     
    89#include "licq_socket.h" 
    910class CICQDaemon; 
     11 
     12// Define for marking functions as deprecated 
     13#ifndef LICQ_DEPRECATED 
     14# if defined(__GNUC__) && !defined(__INTEL_COMPILER) && (__GNUC__ - 0 > 3 || (__GNUC__ - 0 == 3 && __GNUC_MINOR__ - 0 >= 2)) 
     15#  define LICQ_DEPRECATED __attribute__ ((__deprecated__)) 
     16# elif defined(_MSC_VER) && (_MSC_VER >= 1300) 
     17#  define LICQ_DEPRECATED __declspec(deprecated) 
     18# else 
     19#  define LICQ_DEPRECATED 
     20# endif 
     21#endif 
    1022 
    1123 
     
    201213  // Accessors 
    202214  const char *Name() { return m_szName; } 
    203   unsigned long Uin() { return m_nUin; } 
    204215  char *Id() { return m_szId; } 
    205216  unsigned long PPID() { return m_nPPID; } 
     
    214225  virtual ~CPChat_Color(); 
    215226 
    216 protected: 
    217   unsigned long m_nUin; 
     227  // Deprecated functions, to be removed 
     228  LICQ_DEPRECATED unsigned long Uin() { return strtoul(m_szId, NULL, 10); } 
     229 
     230protected: 
    218231  char *m_szId; 
    219232  unsigned long m_nPPID; 
     
    250263  unsigned long m_nVersion; 
    251264  unsigned short m_nPort; 
    252   unsigned long m_nUin; 
    253265  char *m_szId; 
    254266  unsigned long m_nPPID; 
     
    292304  // Accessors 
    293305  const char *Name() { return m_szName; } 
    294   unsigned long Uin() { return m_nUin; } 
    295306  char *Id() { return m_szId; } 
    296307  unsigned long PPID() { return m_nPPID; } 
     
    314325  ChatClientList &ChatClients()  { return chatClients; } 
    315326 
    316 protected: 
    317   unsigned long m_nUin; 
     327  // Deprecated functions, to be removed 
     328  LICQ_DEPRECATED unsigned long Uin() { return strtoul(m_szId, NULL, 10); } 
     329 
     330protected: 
    318331  char *m_szId; 
    319332  unsigned long m_nPPID; 
     
    475488{ 
    476489public: 
    477   unsigned long Uin()          { return uin; } 
    478490  char *Id()                   { return szId; } 
    479491  unsigned long PPID()         { return nPPID; } 
     
    495507  ~CChatUser(); 
    496508 
     509  // Deprecated functions, to be removed 
     510  LICQ_DEPRECATED unsigned long Uin()          { return strtoul(szId, NULL, 10); } 
     511 
    497512protected: 
    498513  CChatUser(); 
    499514 
    500   unsigned long uin; 
    501515  char *szId; 
    502516  unsigned long nPPID; 
     
    621635  CICQDaemon *licqDaemon; 
    622636  int pipe_events[2], pipe_thread[2]; 
    623   unsigned long m_nUin; 
    624637  char *m_szId; 
    625638  unsigned long m_nPPID;