summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skypekit/transfer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Skype/src/skypekit/transfer.cpp')
-rw-r--r--protocols/Skype/src/skypekit/transfer.cpp16
1 files changed, 5 insertions, 11 deletions
diff --git a/protocols/Skype/src/skypekit/transfer.cpp b/protocols/Skype/src/skypekit/transfer.cpp
index 986a5bcbab..68eb985fd0 100644
--- a/protocols/Skype/src/skypekit/transfer.cpp
+++ b/protocols/Skype/src/skypekit/transfer.cpp
@@ -1,19 +1,13 @@
+#include "..\skype.h"
#include "transfer.h"
-CTransfer::CTransfer(unsigned int oid, SERootObject* root) : Transfer(oid, root)
+CTransfer::CTransfer(CSkypeProto* _ppro, unsigned int oid, SERootObject* root) :
+ Transfer(oid, root),
+ proto(_ppro)
{
- this->proto = NULL;
- this->transferCallback = NULL;
-}
-
-void CTransfer::SetOnTransferCallback(OnTransfer callback, CSkypeProto* proto)
-{
- this->proto = proto;
- this->transferCallback = callback;
}
void CTransfer::OnChange(int prop)
{
- if (this->proto)
- (proto->*transferCallback)(this->ref(), prop);
+ proto->OnTransferChanged(this->ref(), prop);
} \ No newline at end of file