diff options
author | George Hazan <george.hazan@gmail.com> | 2013-06-14 19:41:18 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-06-14 19:41:18 +0000 |
commit | 5c2da0fd5b2542d99750747fc746013b7755ddae (patch) | |
tree | 244101a9e85129c514bcc9f54d7ed3be1b4a3742 /protocols/Skype/src/skypekit/transfer.cpp | |
parent | dca0e0ddd70216e068e98f13e7df2c5517ff0164 (diff) |
callbacks removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@4947 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skypekit/transfer.cpp')
-rw-r--r-- | protocols/Skype/src/skypekit/transfer.cpp | 16 |
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 |