summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skypekit/account.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-06-14 19:41:18 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-06-14 19:41:18 +0000
commit5c2da0fd5b2542d99750747fc746013b7755ddae (patch)
tree244101a9e85129c514bcc9f54d7ed3be1b4a3742 /protocols/Skype/src/skypekit/account.cpp
parentdca0e0ddd70216e068e98f13e7df2c5517ff0164 (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/account.cpp')
-rw-r--r--protocols/Skype/src/skypekit/account.cpp15
1 files changed, 5 insertions, 10 deletions
diff --git a/protocols/Skype/src/skypekit/account.cpp b/protocols/Skype/src/skypekit/account.cpp
index 088d747a77..995b070b72 100644
--- a/protocols/Skype/src/skypekit/account.cpp
+++ b/protocols/Skype/src/skypekit/account.cpp
@@ -1,14 +1,10 @@
+#include "..\skype.h"
#include "account.h"
-CAccount::CAccount(unsigned int oid, SERootObject* root) : Account(oid, root)
+CAccount::CAccount(CSkypeProto *_ppro, unsigned int oid, SERootObject* root) :
+ Account(oid, root),
+ ppro(_ppro)
{
- this->ppro = NULL;
-}
-
-void CAccount::SetOnAccountChangedCallback(OnAccountChanged callback, CSkypeProto *ppro)
-{
- this->ppro = ppro;
- this->callback = callback;
}
bool CAccount::IsOnline()
@@ -32,6 +28,5 @@ bool CAccount::SetAvatar(SEBinary avatar, Skype::VALIDATERESULT &result)
void CAccount::OnChange(int prop)
{
- if (this->ppro != NULL)
- (ppro->*callback)(prop);
+ ppro->OnAccountChanged(prop);
} \ No newline at end of file