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_subclassing.h | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'protocols/Skype/src/skype_subclassing.h') diff --git a/protocols/Skype/src/skype_subclassing.h b/protocols/Skype/src/skype_subclassing.h index 694fce2c56..b16f7d7e66 100644 --- a/protocols/Skype/src/skype_subclassing.h +++ b/protocols/Skype/src/skype_subclassing.h @@ -12,13 +12,31 @@ class CSkype; class CMessage : public Message { public: - typedef DRef Ref; typedef DRefs Refs; CMessage(unsigned int oid, SERootObject* root); }; +class CTransfer : public Transfer +{ +public: + typedef void (CSkypeProto::* OnTransfer)(int prop, CTransfer::Ref transfer); + + typedef DRef Ref; + typedef DRefs Refs; + + CTransfer(unsigned int oid, SERootObject* p_root); + + void SetOnTransferCallback(OnTransfer callback, CSkypeProto* proto); + +private: + CSkypeProto* proto; + OnTransfer transferCallback; + + void OnChange(int prop); +}; + class CParticipant : public Participant { public: @@ -149,6 +167,7 @@ public: CParticipant* newParticipant(int oid); CContact* newContact(int oid); CMessage* newMessage(int oid); + CTransfer* newTransfer(int oid); CConversation::Refs inbox; -- cgit v1.2.3