summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_proto.h
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2013-04-05 16:08:13 +0000
committerAlexander Lantsev <aunsane@gmail.com>2013-04-05 16:08:13 +0000
commit297626e55974e9082f0fd76b98050fc291b1e3f3 (patch)
treee7791745780f4b6ce7450a53d52cc199811e6f51 /protocols/Skype/src/skype_proto.h
parentf6c738f20aea081467b7695ecbc7beab51738150 (diff)
- first approach of file transferring
git-svn-id: http://svn.miranda-ng.org/main/trunk@4317 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_proto.h')
-rw-r--r--protocols/Skype/src/skype_proto.h38
1 files changed, 37 insertions, 1 deletions
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<FileTransfer> 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,