From 49581e73a1f02bd48d2d2c1861efd77a4bb66059 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Sun, 21 Apr 2013 09:51:58 +0000 Subject: reworked file transfers fixed auth requests git-svn-id: http://svn.miranda-ng.org/main/trunk@4498 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Skype/src/skype_proto.h | 39 ++++++--------------------------------- 1 file changed, 6 insertions(+), 33 deletions(-) (limited to 'protocols/Skype/src/skype_proto.h') diff --git a/protocols/Skype/src/skype_proto.h b/protocols/Skype/src/skype_proto.h index dd3981f0d2..dd694fa681 100644 --- a/protocols/Skype/src/skype_proto.h +++ b/protocols/Skype/src/skype_proto.h @@ -3,17 +3,14 @@ #include "skype.h" #include -struct CSkypeProto; - typedef void (__cdecl CSkypeProto::* SkypeThreadFunc) (void*); -typedef INT_PTR (__cdecl CSkypeProto::* SkypeServiceFunc)(WPARAM, LPARAM); typedef int (__cdecl CSkypeProto::* SkypeEventFunc)(WPARAM, LPARAM); +typedef INT_PTR (__cdecl CSkypeProto::* SkypeServiceFunc)(WPARAM, LPARAM); typedef INT_PTR (__cdecl CSkypeProto::* SkypeServiceFuncParam)(WPARAM, LPARAM, LPARAM); struct StringList : public LIST { - static int compare(const char* p1, const char* p2) - { return _stricmp(p1, p2); } + static int compare(const char* p1, const char* p2) { return _stricmp(p1, p2); } StringList() : LIST(2, compare) {} StringList(const char* string, const char *delimeters) : LIST(2, compare) @@ -153,27 +150,6 @@ struct PasswordChangeBoxParam } }; -struct FileTransfer -{ - CSkypeProto* ppro; - SEBinary guid; - CTransfer::Refs transfers; - //char *who; - //char *msg; - //char *ftoken; - //char *relay; - //HANDLE hContact; - //int cancel; - //char *url; - //HANDLE hWaitEvent; - //DWORD action; - //int y7; - ////YList *files; - //PROTOFILETRANSFERSTATUS pfts; - - FileTransfer(CSkypeProto* ppro) { this->ppro = ppro; } -}; - struct CSkypeProto : public PROTO_INTERFACE { public: @@ -269,7 +245,7 @@ protected: CSkype *skype; CAccount::Ref account; CContact::Refs contactList; -// CTransfer::Refs transferList; + CTransfer::Refs transferList; CContactGroup::Ref commonList; CContactGroup::Ref authWaitList; @@ -306,12 +282,8 @@ protected: void OnMessageSended(CConversation::Ref conversation, CMessage::Ref message); void OnMessageReceived(CConversation::Ref conversation, CMessage::Ref message); - // file transfer - LIST fileTransferList; - FileTransfer *FindTransfer(SEBinary guid); - FileTransfer *FindFileTransfer(CTransfer::Ref transfer); - - void OnFileReceived(CConversation::Ref conversation, CMessage::Ref message); + // transfer + void OnFile(CConversation::Ref conversation, CMessage::Ref message); void OnTransferChanged(int prop, CTransfer::Ref transfer); // chat @@ -363,6 +335,7 @@ protected: HANDLE GetContactFromAuthEvent(HANDLE hEvent); HANDLE AddContact(CContact::Ref contact); + bool IsContactOnline(HANDLE hContact); void SetAllContactStatus(int status); void __cdecl LoadContactList(void*); -- cgit v1.2.3