diff options
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;
|