From 297626e55974e9082f0fd76b98050fc291b1e3f3 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Fri, 5 Apr 2013 16:08:13 +0000 Subject: - first approach of file transferring git-svn-id: http://svn.miranda-ng.org/main/trunk@4317 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Skype/src/skype_proto.h | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) (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 18c18dfeb4..5e38e73c2a 100644 --- a/protocols/Skype/src/skype_proto.h +++ b/protocols/Skype/src/skype_proto.h @@ -115,6 +115,7 @@ const SettingItem setting[]={ {LPGENT("About"), "About", DBVT_WCHAR, LI_STRING} }; + struct HtmlEntity { const char *entity; @@ -179,6 +180,27 @@ 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: @@ -273,8 +295,9 @@ protected: CSkype *skype; CAccount::Ref account; CContact::Refs contactList; +// CTransfer::Refs transferList; CContactGroup::Ref commonList; - CContactGroup::Ref authWaitList; + CContactGroup::Ref authWaitList; // account void OnAccountChanged(int prop); @@ -299,6 +322,14 @@ 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); + void OnTransferChanged(int prop, CTransfer::Ref transfer); + // chat static char* Groups[]; @@ -460,6 +491,11 @@ protected: const char* sid, const char* nick, const char* message = ""); + void RaiseFileReceivedEvent( + DWORD timestamp, + const char* sid, + const char* nick, + const char* message = ""); void RaiseAuthRequestEvent( DWORD timestamp, const char* sid, -- cgit v1.2.3