Changeset 6419 for trunk/licq/include/licq_icqd.h
- Timestamp:
- 07/04/08 06:16:26 (5 months ago)
- Files:
-
- 1 modified
-
trunk/licq/include/licq_icqd.h (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/licq/include/licq_icqd.h
r6405 r6419 37 37 class CMSN; 38 38 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 39 51 #define FOR_EACH_PROTO_PLUGIN_START(d) \ 40 52 { \ … … 331 343 CICQColor *pColor = NULL); 332 344 333 unsigned long icqSendMessage(unsigned long nUin, const char *szMessage,334 bool bOnline, unsigned short nLevel, bool bMultipleRecipients = false,335 CICQColor *pColor = NULL);336 345 // Url 337 346 unsigned long icqSendUrl(const char *szId, const char *szUrl, … … 343 352 CICQColor *pColor = NULL); 344 353 345 unsigned long icqSendContactList(unsigned long nUin, UinList &uins,346 bool bOnline, unsigned short nLevel, bool bMultipleRecipients = false,347 CICQColor *pColor = NULL);348 354 // Auto Response 349 unsigned long icqFetchAutoResponse(unsigned long nUin, bool bServer = false) __attribute__ ((deprecated));350 355 unsigned long icqFetchAutoResponse(const char *_szId, unsigned long _nPPID, bool bServer = false); 351 356 // Chat Request 352 357 unsigned long icqChatRequest(const char* id, const char *szReason, 353 358 unsigned short nLevel, bool bServer); 354 unsigned long icqChatRequest(unsigned long nUin, const char *szReason,355 unsigned short nLevel, bool bServer);356 359 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,360 360 const char *szReason, const char *szChatUsers, unsigned short nPort, 361 361 unsigned short nLevel, bool bServer); 362 362 void icqChatRequestRefuse(const char* id, const char* szReason, 363 363 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);366 364 void icqChatRequestAccept(const char* id, unsigned short nPort, 367 365 const char* szClients, unsigned short nSequence, 368 366 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);372 367 void icqChatRequestCancel(const char* id, unsigned short nSequence); 373 void icqChatRequestCancel(unsigned long nUin, unsigned short nSequence);374 368 // File Transfer 375 369 unsigned long icqFileTransfer(const char *szId, const char *szFilename, 376 370 const char *szDescription, ConstFileList &lFileList, 377 371 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);381 372 void icqFileTransferRefuse(const char *szId, const char *szReason, 382 373 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);385 374 void icqFileTransferCancel(const char *szId, unsigned short nSequence); 386 void icqFileTransferCancel(unsigned long nUin, unsigned short nSequence);387 375 void icqFileTransferAccept(const char *szId, unsigned short nPort, 388 376 unsigned short nSequence, const unsigned long nMsgID[], bool bDirect, 389 377 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);393 378 unsigned long icqOpenSecureChannel(const char *szId); 394 unsigned long icqOpenSecureChannel(unsigned long nUin);395 379 unsigned long icqCloseSecureChannel(const char *szId); 396 unsigned long icqCloseSecureChannel(unsigned long nUin);397 380 void icqOpenSecureChannelCancel(const char *szId, unsigned short nSequence); 398 void icqOpenSecureChannelCancel(unsigned long nUin, unsigned short nSequence);399 381 400 382 // Plugins … … 415 397 void icqVerify(const char *); 416 398 unsigned long icqFetchAutoResponseServer(const char *); 417 unsigned long icqFetchAutoResponseServer(unsigned long);418 399 unsigned long icqLogon(unsigned short logonStatus); 419 400 unsigned long icqRequestLogonSalt(); 420 401 unsigned long icqUserBasicInfo(const char *); 421 unsigned long icqUserBasicInfo(unsigned long);422 402 unsigned long icqUserExtendedInfo(const char *); 423 unsigned long icqUserExtendedInfo(unsigned long);424 403 unsigned long icqRequestMetaInfo(const char *); 425 unsigned long icqRequestMetaInfo(unsigned long);426 404 427 405 unsigned long icqUpdateBasicInfo(const char *, const char *, const char *, … … 475 453 void postLogoff(int nSD, ICQEvent *cancelledEvent); 476 454 void icqRelogon(); 477 unsigned long icqAuthorizeGrant(unsigned long nUin, const char *szMessage);478 455 unsigned long icqAuthorizeGrant(const char *szId, const char *szMessage); 479 unsigned long icqAuthorizeRefuse(unsigned long nUin, const char *szMessage);480 456 unsigned long icqAuthorizeRefuse(const char *szId, const char *szMessage); 481 457 void icqRequestAuth(const char* id, const char *_szMessage); 482 void icqRequestAuth(unsigned long _nUin, const char *_szMessage);483 void icqAlertUser(unsigned long _nUin);484 458 void icqAlertUser(const char* id, unsigned long ppid); 485 void icqAddUser(unsigned long _nUin, bool _bAuthReq = false, unsigned short groupId = 0);486 459 void icqAddUser(const char *_szId, bool _bAuthReq = false, unsigned short groupId = 0); 487 460 void icqAddUserServer(const char *_szId, bool _bAuthReq, unsigned short groupId = 0); 488 void icqAddUserServer(unsigned long _nUin, bool _bAuthReq, unsigned short groupId = 0);489 461 void icqAddGroup(const char *); 490 void icqRemoveUser(unsigned long _nUin);491 462 void icqRemoveUser(const char *); 492 463 void icqRemoveGroup(const char *); 493 void icqChangeGroup(unsigned long _nUin, unsigned short _nNewGroup,494 unsigned short _nOldGSID, unsigned short _nNewType,495 unsigned short _nOldType);496 464 void icqChangeGroup(const char *_szId, unsigned long _nPPID, 497 465 unsigned short _nNewGroup, unsigned short _nOldGSID, 498 466 unsigned short _nNewType, unsigned short _nOldType); 499 467 void icqRenameGroup(const char *_szNewName, unsigned short _nGSID); 500 void icqRenameUser(unsigned long _nUin);501 468 void icqRenameUser(const char *_szId); 502 469 void icqExportUsers(UserStringList &, unsigned short); … … 599 566 bool AddUserToList(const char *szId, unsigned long PPID, bool bNotify = true, 600 567 bool bTempUser = false, unsigned short groupId = 0); 601 bool AddUserToList(unsigned long _nUin, bool bNotify = true,602 bool bTempUser = false, unsigned short groupId = 0);603 568 void AddUserToList(ICQUser *); 604 void RemoveUserFromList(unsigned long _nUin);605 569 void RemoveUserFromList(const char *szId, unsigned long nPPID); 606 570 … … 608 572 unsigned long icqSendSms(const char* id, unsigned long ppid, 609 573 const char* number, const char* message); 610 unsigned long icqSendSms(const char *szNumber, const char *szMessage,611 unsigned long nUin);612 574 613 575 // NOT MT SAFE … … 719 681 TCPSocket *pSock); 720 682 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); 721 735 722 736 protected: … … 816 830 void ChangeUserStatus(ICQUser *u, unsigned long s); 817 831 bool AddUserEvent(ICQUser *, CUserEvent *); 818 void RejectEvent(unsigned long, CUserEvent *);819 832 void RejectEvent(const char* id, CUserEvent* e); 820 833 ICQUser *FindUserForInfoUpdate(const char *szId, ICQEvent *e, const char *); 821 834 std::string FindUserByCellular(const char* cellular); 822 unsigned long FindUinByCellular(const char *_szCellular);823 835 824 836 void icqRegisterFinish(); … … 830 842 ICQEvent *icqSendThroughServer(const char *szId, unsigned char format, char *_sMessage, 831 843 CUserEvent *, unsigned short = 0, size_t = 0); 832 ICQEvent* icqSendThroughServer(unsigned long nUin, unsigned char format, char *_sMessage, CUserEvent *, unsigned short = 0);833 844 void SaveUserList(); 834 845 … … 852 863 bool SendEvent(INetSocket *, CPacket &, bool); 853 864 void SendEvent_Server(CPacket *packet); 854 ICQEvent *SendExpectEvent_Server(unsigned long nUin, CPacket *, CUserEvent *, bool = false);855 865 ICQEvent *SendExpectEvent_Server(const char *, unsigned long, CPacket *, CUserEvent *, bool = false); 856 866 … … 910 920 // Helpers 911 921 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); 912 930 913 931 // Declare all our thread functions as friends
