summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_proto.h
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2013-08-17 18:50:20 +0000
committerAlexander Lantsev <aunsane@gmail.com>2013-08-17 18:50:20 +0000
commit5bc3f5153749a79e195e7e15ebe4d80ea3ddfa8e (patch)
treec2652321c96c995e334a6cc52dcf91fe4f7d8a32 /protocols/Skype/src/skype_proto.h
parente4d929237a9ab38e0da2d72070dda1cad58ab6b8 (diff)
Skype: some changes in file transfer
git-svn-id: http://svn.miranda-ng.org/main/trunk@5732 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_proto.h')
-rw-r--r--protocols/Skype/src/skype_proto.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/protocols/Skype/src/skype_proto.h b/protocols/Skype/src/skype_proto.h
index 20ae6437e0..0ba3a953fa 100644
--- a/protocols/Skype/src/skype_proto.h
+++ b/protocols/Skype/src/skype_proto.h
@@ -119,6 +119,47 @@ struct PasswordChangeBoxParam
}
};
+struct FileParam
+{
+ bool isCanceled;
+ bool isCompleted;
+
+ unsigned __int64 size;
+ unsigned __int64 transfered;
+
+ FileParam() { }
+ FileParam(unsigned __int64 size)
+ {
+ this->size = size;
+ this->transfered = 0;
+ this->isCanceled = this->isCompleted = false;
+ }
+};
+
+struct FileTransferParam
+{
+ //CTransfer::Refs transfers;
+ PROTOFILETRANSFERSTATUS pfts;
+ std::map<int, FileParam> files;
+
+ FileTransferParam()
+ {
+ this->pfts.cbSize = sizeof(this->pfts);
+ this->pfts.flags = 0;
+ this->pfts.currentFileNumber = 0;
+ this->pfts.currentFileProgress = 0;
+ this->pfts.currentFileSize = 0;
+ this->pfts.currentFileTime = 0;
+ this->pfts.totalBytes = 0;
+ this->pfts.totalFiles = 0;
+ this->pfts.totalProgress = 0;
+ this->pfts.tszWorkingDir = NULL;
+ this->pfts.wszCurrentFile = NULL;
+
+ //Sid::fetch(this->transfers);
+ }
+};
+
class ChatMember;
class ChatRoom;
@@ -314,6 +355,8 @@ protected:
// transfer
static wchar_t *TransferFailureReasons[];
+ std::map<int, FileTransferParam> transferts;
+
void OnFileEvent(const ConversationRef &conversation, const MessageRef &message);
void OnTransferChanged(const TransferRef &transfer, int prop);