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_icqd.h

    r6405 r6419  
    3737class CMSN; 
    3838 
     39// Define for marking functions as deprecated 
     40#ifndef LICQ_DEPRECATED 
     41# if defined(__GNUC__) && !defined(__INTEL_COMPILER) && (__GNUC__ - 0 > 3 || (__GNUC__ - 0 == 3 && __GNUC_MINOR__ - 0 >= 2)) 
     42#  define LICQ_DEPRECATED __attribute__ ((__deprecated__)) 
     43# elif defined(_MSC_VER) && (_MSC_VER >= 1300) 
     44#  define LICQ_DEPRECATED __declspec(deprecated) 
     45# else 
     46#  define LICQ_DEPRECATED 
     47# endif 
     48#endif 
     49 
     50 
    3951#define FOR_EACH_PROTO_PLUGIN_START(d)                             \ 
    4052    {                                                              \ 
     
    331343     CICQColor *pColor = NULL); 
    332344 
    333   unsigned long icqSendMessage(unsigned long nUin, const char *szMessage, 
    334      bool bOnline, unsigned short nLevel, bool bMultipleRecipients = false, 
    335      CICQColor *pColor = NULL); 
    336345  // Url 
    337346  unsigned long icqSendUrl(const char *szId, const char *szUrl, 
     
    343352     CICQColor *pColor = NULL); 
    344353 
    345   unsigned long icqSendContactList(unsigned long nUin, UinList &uins, 
    346      bool bOnline, unsigned short nLevel, bool bMultipleRecipients = false, 
    347      CICQColor *pColor = NULL); 
    348354  // Auto Response 
    349   unsigned long icqFetchAutoResponse(unsigned long nUin, bool bServer = false) __attribute__ ((deprecated)); 
    350355  unsigned long icqFetchAutoResponse(const char *_szId, unsigned long _nPPID, bool bServer = false); 
    351356  // Chat Request 
    352357  unsigned long icqChatRequest(const char* id, const char *szReason, 
    353358     unsigned short nLevel, bool bServer); 
    354   unsigned long icqChatRequest(unsigned long nUin, const char *szReason, 
    355      unsigned short nLevel, bool bServer); 
    356359  unsigned long icqMultiPartyChatRequest(const char* id, 
    357      const char *szReason, const char *szChatUsers, unsigned short nPort, 
    358      unsigned short nLevel, bool bServer); 
    359   unsigned long icqMultiPartyChatRequest(unsigned long nUin, 
    360360     const char *szReason, const char *szChatUsers, unsigned short nPort, 
    361361     unsigned short nLevel, bool bServer); 
    362362  void icqChatRequestRefuse(const char* id, const char* szReason, 
    363363      unsigned short nSequence, const unsigned long nMsgID[], bool bDirect); 
    364   void icqChatRequestRefuse(unsigned long nUin, const char *szReason, 
    365       unsigned short nSequence, const unsigned long nMsgID[], bool bDirect); 
    366364  void icqChatRequestAccept(const char* id, unsigned short nPort, 
    367365      const char* szClients, unsigned short nSequence, 
    368366      const unsigned long nMsgID[], bool bDirect); 
    369   void icqChatRequestAccept(unsigned long nUin, unsigned short nPort, 
    370       const char* szClients, unsigned short nSequence, 
    371       const unsigned long nMsgID[], bool bDirect); 
    372367  void icqChatRequestCancel(const char* id, unsigned short nSequence); 
    373   void icqChatRequestCancel(unsigned long nUin, unsigned short nSequence); 
    374368  // File Transfer 
    375369  unsigned long icqFileTransfer(const char *szId, const char *szFilename, 
    376370     const char *szDescription, ConstFileList &lFileList, 
    377371     unsigned short nLevel, bool bServer); 
    378   unsigned long icqFileTransfer(unsigned long nUin, const char *szFilename, 
    379      const char *szDescription, ConstFileList &lFileList, 
    380      unsigned short nLevel, bool bServer); 
    381372  void icqFileTransferRefuse(const char *szId, const char *szReason, 
    382373      unsigned short nSequence, const unsigned long nMsgID[], bool bDirect); 
    383   void icqFileTransferRefuse(unsigned long nUin, const char *szReason, 
    384       unsigned short nSequence, const unsigned long nMsgID[], bool bDirect); 
    385374  void icqFileTransferCancel(const char *szId, unsigned short nSequence); 
    386   void icqFileTransferCancel(unsigned long nUin, unsigned short nSequence); 
    387375  void icqFileTransferAccept(const char *szId, unsigned short nPort, 
    388376     unsigned short nSequence, const unsigned long nMsgID[], bool bDirect, 
    389377     const char *szDesc, const char *szFile, unsigned long nFileSize);   
    390   void icqFileTransferAccept(unsigned long nUin, unsigned short nPort, 
    391      unsigned short nSequence, const unsigned long nMsgID[], bool bDirect, 
    392      const char *szDesc, const char *szFile, unsigned long nFileSize); 
    393378  unsigned long icqOpenSecureChannel(const char *szId); 
    394   unsigned long icqOpenSecureChannel(unsigned long nUin); 
    395379  unsigned long icqCloseSecureChannel(const char *szId); 
    396   unsigned long icqCloseSecureChannel(unsigned long nUin); 
    397380  void icqOpenSecureChannelCancel(const char *szId, unsigned short nSequence); 
    398   void icqOpenSecureChannelCancel(unsigned long nUin, unsigned short nSequence); 
    399381 
    400382  // Plugins 
     
    415397  void icqVerify(const char *); 
    416398  unsigned long icqFetchAutoResponseServer(const char *); 
    417   unsigned long icqFetchAutoResponseServer(unsigned long); 
    418399  unsigned long icqLogon(unsigned short logonStatus); 
    419400  unsigned long icqRequestLogonSalt(); 
    420401  unsigned long icqUserBasicInfo(const char *); 
    421   unsigned long icqUserBasicInfo(unsigned long); 
    422402  unsigned long icqUserExtendedInfo(const char *); 
    423   unsigned long icqUserExtendedInfo(unsigned long); 
    424403  unsigned long icqRequestMetaInfo(const char *); 
    425   unsigned long icqRequestMetaInfo(unsigned long); 
    426404 
    427405  unsigned long icqUpdateBasicInfo(const char *, const char *, const char *, 
     
    475453  void postLogoff(int nSD, ICQEvent *cancelledEvent); 
    476454  void icqRelogon(); 
    477   unsigned long icqAuthorizeGrant(unsigned long nUin, const char *szMessage); 
    478455  unsigned long icqAuthorizeGrant(const char *szId, const char *szMessage); 
    479   unsigned long icqAuthorizeRefuse(unsigned long nUin, const char *szMessage); 
    480456  unsigned long icqAuthorizeRefuse(const char *szId, const char *szMessage); 
    481457  void icqRequestAuth(const char* id, const char *_szMessage); 
    482   void icqRequestAuth(unsigned long _nUin, const char *_szMessage); 
    483   void icqAlertUser(unsigned long _nUin); 
    484458  void icqAlertUser(const char* id, unsigned long ppid); 
    485   void icqAddUser(unsigned long _nUin, bool _bAuthReq = false, unsigned short groupId = 0); 
    486459  void icqAddUser(const char *_szId, bool _bAuthReq = false, unsigned short groupId = 0); 
    487460  void icqAddUserServer(const char *_szId, bool _bAuthReq, unsigned short groupId = 0); 
    488   void icqAddUserServer(unsigned long _nUin, bool _bAuthReq, unsigned short groupId = 0); 
    489461  void icqAddGroup(const char *); 
    490   void icqRemoveUser(unsigned long _nUin); 
    491462  void icqRemoveUser(const char *); 
    492463  void icqRemoveGroup(const char *); 
    493   void icqChangeGroup(unsigned long _nUin, unsigned short _nNewGroup, 
    494                       unsigned short _nOldGSID, unsigned short _nNewType, 
    495                       unsigned short _nOldType); 
    496464  void icqChangeGroup(const char *_szId, unsigned long _nPPID, 
    497465                      unsigned short _nNewGroup, unsigned short _nOldGSID, 
    498466                      unsigned short _nNewType, unsigned short _nOldType); 
    499467  void icqRenameGroup(const char *_szNewName, unsigned short _nGSID); 
    500   void icqRenameUser(unsigned long _nUin); 
    501468  void icqRenameUser(const char *_szId); 
    502469  void icqExportUsers(UserStringList &, unsigned short); 
     
    599566  bool AddUserToList(const char *szId, unsigned long PPID, bool bNotify = true, 
    600567                     bool bTempUser = false, unsigned short groupId = 0); 
    601   bool AddUserToList(unsigned long _nUin, bool bNotify = true, 
    602                      bool bTempUser = false, unsigned short groupId = 0); 
    603568  void AddUserToList(ICQUser *); 
    604   void RemoveUserFromList(unsigned long _nUin); 
    605569  void RemoveUserFromList(const char *szId, unsigned long nPPID); 
    606570 
     
    608572  unsigned long icqSendSms(const char* id, unsigned long ppid, 
    609573      const char* number, const char* message); 
    610   unsigned long icqSendSms(const char *szNumber, const char *szMessage, 
    611                            unsigned long nUin); 
    612574 
    613575  // NOT MT SAFE 
     
    719681     TCPSocket *pSock); 
    720682  bool WaitForReverseConnection(unsigned short id, const char* userId); 
     683 
     684  // Deprecated functions, to be removed 
     685  LICQ_DEPRECATED unsigned long icqSendMessage(unsigned long nUin, const char *szMessage, 
     686     bool bOnline, unsigned short nLevel, bool bMultipleRecipients = false, 
     687     CICQColor *pColor = NULL); 
     688  LICQ_DEPRECATED unsigned long icqSendContactList(unsigned long nUin, UinList &uins, 
     689     bool bOnline, unsigned short nLevel, bool bMultipleRecipients = false, 
     690     CICQColor *pColor = NULL); 
     691  LICQ_DEPRECATED unsigned long icqFetchAutoResponse(unsigned long nUin, bool bServer = false); 
     692  LICQ_DEPRECATED unsigned long icqChatRequest(unsigned long nUin, const char *szReason, 
     693     unsigned short nLevel, bool bServer); 
     694  LICQ_DEPRECATED unsigned long icqMultiPartyChatRequest(unsigned long nUin, 
     695     const char *szReason, const char *szChatUsers, unsigned short nPort, 
     696     unsigned short nLevel, bool bServer); 
     697  LICQ_DEPRECATED void icqChatRequestRefuse(unsigned long nUin, const char *szReason, 
     698      unsigned short nSequence, const unsigned long nMsgID[], bool bDirect); 
     699  LICQ_DEPRECATED void icqChatRequestAccept(unsigned long nUin, unsigned short nPort, 
     700      const char* szClients, unsigned short nSequence, 
     701      const unsigned long nMsgID[], bool bDirect); 
     702  LICQ_DEPRECATED void icqChatRequestCancel(unsigned long nUin, unsigned short nSequence); 
     703  LICQ_DEPRECATED unsigned long icqFileTransfer(unsigned long nUin, const char *szFilename, 
     704     const char *szDescription, ConstFileList &lFileList, 
     705     unsigned short nLevel, bool bServer); 
     706  LICQ_DEPRECATED void icqFileTransferRefuse(unsigned long nUin, const char *szReason, 
     707      unsigned short nSequence, const unsigned long nMsgID[], bool bDirect); 
     708  LICQ_DEPRECATED void icqFileTransferCancel(unsigned long nUin, unsigned short nSequence); 
     709  LICQ_DEPRECATED void icqFileTransferAccept(unsigned long nUin, unsigned short nPort, 
     710     unsigned short nSequence, const unsigned long nMsgID[], bool bDirect, 
     711     const char *szDesc, const char *szFile, unsigned long nFileSize); 
     712  LICQ_DEPRECATED unsigned long icqOpenSecureChannel(unsigned long nUin); 
     713  LICQ_DEPRECATED unsigned long icqCloseSecureChannel(unsigned long nUin); 
     714  LICQ_DEPRECATED void icqOpenSecureChannelCancel(unsigned long nUin, unsigned short nSequence); 
     715  LICQ_DEPRECATED unsigned long icqFetchAutoResponseServer(unsigned long); 
     716  LICQ_DEPRECATED unsigned long icqUserBasicInfo(unsigned long); 
     717  LICQ_DEPRECATED unsigned long icqUserExtendedInfo(unsigned long); 
     718  LICQ_DEPRECATED unsigned long icqRequestMetaInfo(unsigned long); 
     719  LICQ_DEPRECATED unsigned long icqAuthorizeGrant(unsigned long nUin, const char *szMessage); 
     720  LICQ_DEPRECATED unsigned long icqAuthorizeRefuse(unsigned long nUin, const char *szMessage); 
     721  LICQ_DEPRECATED void icqRequestAuth(unsigned long _nUin, const char *_szMessage); 
     722  LICQ_DEPRECATED void icqAlertUser(unsigned long _nUin); 
     723  LICQ_DEPRECATED void icqAddUser(unsigned long _nUin, bool _bAuthReq = false, unsigned short groupId = 0); 
     724  LICQ_DEPRECATED void icqAddUserServer(unsigned long _nUin, bool _bAuthReq, unsigned short groupId = 0); 
     725  LICQ_DEPRECATED void icqRemoveUser(unsigned long _nUin); 
     726  LICQ_DEPRECATED void icqChangeGroup(unsigned long _nUin, unsigned short _nNewGroup, 
     727                      unsigned short _nOldGSID, unsigned short _nNewType, 
     728                      unsigned short _nOldType); 
     729  LICQ_DEPRECATED void icqRenameUser(unsigned long _nUin); 
     730  LICQ_DEPRECATED bool AddUserToList(unsigned long _nUin, bool bNotify = true, 
     731                     bool bTempUser = false, unsigned short groupId = 0); 
     732  LICQ_DEPRECATED void RemoveUserFromList(unsigned long _nUin); 
     733  LICQ_DEPRECATED unsigned long icqSendSms(const char *szNumber, const char *szMessage, 
     734                           unsigned long nUin); 
    721735 
    722736protected: 
     
    816830  void ChangeUserStatus(ICQUser *u, unsigned long s); 
    817831  bool AddUserEvent(ICQUser *, CUserEvent *); 
    818   void RejectEvent(unsigned long, CUserEvent *); 
    819832  void RejectEvent(const char* id, CUserEvent* e); 
    820833  ICQUser *FindUserForInfoUpdate(const char *szId, ICQEvent *e, const char *); 
    821834  std::string FindUserByCellular(const char* cellular); 
    822   unsigned long FindUinByCellular(const char *_szCellular); 
    823835 
    824836  void icqRegisterFinish(); 
     
    830842  ICQEvent *icqSendThroughServer(const char *szId, unsigned char format, char *_sMessage, 
    831843    CUserEvent *, unsigned short = 0, size_t = 0); 
    832   ICQEvent* icqSendThroughServer(unsigned long nUin, unsigned char format, char *_sMessage, CUserEvent *, unsigned short = 0); 
    833844  void SaveUserList(); 
    834845 
     
    852863  bool SendEvent(INetSocket *, CPacket &, bool); 
    853864  void SendEvent_Server(CPacket *packet); 
    854   ICQEvent *SendExpectEvent_Server(unsigned long nUin, CPacket *, CUserEvent *, bool = false); 
    855865  ICQEvent *SendExpectEvent_Server(const char *, unsigned long, CPacket *, CUserEvent *, bool = false); 
    856866 
     
    910920  // Helpers 
    911921  void addToModifyUsers(unsigned long unique_id, const std::string data); 
     922 
     923  // Deprecated functions, to be removed 
     924  LICQ_DEPRECATED void RejectEvent(unsigned long nUin, CUserEvent* e); 
     925  LICQ_DEPRECATED unsigned long FindUinByCellular(const char *_szCellular); 
     926  LICQ_DEPRECATED ICQEvent* icqSendThroughServer(unsigned long nUin, 
     927      unsigned char format, char *_sMessage, CUserEvent *, unsigned short = 0); 
     928  LICQ_DEPRECATED ICQEvent *SendExpectEvent_Server(unsigned long nUin, 
     929      CPacket *, CUserEvent *, bool = false); 
    912930 
    913931  // Declare all our thread functions as friends