diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2013-04-05 16:08:13 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2013-04-05 16:08:13 +0000 |
commit | 297626e55974e9082f0fd76b98050fc291b1e3f3 (patch) | |
tree | e7791745780f4b6ce7450a53d52cc199811e6f51 /protocols/Skype/src/skype_subclassing.h | |
parent | f6c738f20aea081467b7695ecbc7beab51738150 (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_subclassing.h')
-rw-r--r-- | protocols/Skype/src/skype_subclassing.h | 21 |
1 files changed, 20 insertions, 1 deletions
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<CMessage, Message> Ref;
typedef DRefs<CMessage, Message> Refs;
CMessage(unsigned int oid, SERootObject* root);
};
+class CTransfer : public Transfer
+{
+public:
+ typedef void (CSkypeProto::* OnTransfer)(int prop, CTransfer::Ref transfer);
+
+ typedef DRef<CTransfer, Transfer> Ref;
+ typedef DRefs<CTransfer, Transfer> 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;
|