diff options
Diffstat (limited to 'protocols/Skype/src/skype_subclassing.cpp')
-rw-r--r-- | protocols/Skype/src/skype_subclassing.cpp | 14 |
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() |