summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_subclassing.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2012-10-27 13:48:53 +0000
committerAlexander Lantsev <aunsane@gmail.com>2012-10-27 13:48:53 +0000
commit6f703dbe7162e00a84130beeb4dd40200ef155c4 (patch)
tree929e6cbf5bd9bc93292abfd87be6f3faf06bf0d7 /protocols/Skype/src/skype_subclassing.cpp
parente1748da64473c0a9b5f5ac2a02923f9f3fbcd510 (diff)
- added own info loading and updating
git-svn-id: http://svn.miranda-ng.org/main/trunk@2092 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_subclassing.cpp')
-rw-r--r--protocols/Skype/src/skype_subclassing.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/protocols/Skype/src/skype_subclassing.cpp b/protocols/Skype/src/skype_subclassing.cpp
index 8014241905..3dbf36d12b 100644
--- a/protocols/Skype/src/skype_subclassing.cpp
+++ b/protocols/Skype/src/skype_subclassing.cpp
@@ -59,6 +59,15 @@ CAccount::CAccount(unsigned int oid, SERootObject* root) : Account(oid, root)
{
this->isLoggedIn = false;
this->isLoggedOut = false;
+
+ this->proto = NULL;
+ this->callback == NULL;
+}
+
+void CAccount::SetOnAccountChangedCallback(OnAccountChanged callback, CSkypeProto* proto)
+{
+ this->proto = proto;
+ this->callback = callback;
}
void CAccount::OnChange(int prop)
@@ -84,6 +93,11 @@ void CAccount::OnChange(int prop)
this->isLoggedOut = true;
}
}
+ else
+ {
+ if (this->proto)
+ (proto->*callback)(prop);
+ }
}
void CAccount::BlockWhileLoggingIn()