summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skypekit/account.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Skype/src/skypekit/account.h')
-rw-r--r--protocols/Skype/src/skypekit/account.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/protocols/Skype/src/skypekit/account.h b/protocols/Skype/src/skypekit/account.h
new file mode 100644
index 0000000000..b537019698
--- /dev/null
+++ b/protocols/Skype/src/skypekit/account.h
@@ -0,0 +1,26 @@
+#pragma once
+
+#include "common.h"
+
+class CSkype;
+
+class CAccount : public Account
+{
+public:
+ typedef void (CSkypeProto::* OnAccountChanged)(int);
+
+ typedef DRef<CAccount, Account> Ref;
+ typedef DRefs<CAccount, Account> Refs;
+
+ CAccount(unsigned int oid, SERootObject* root);
+
+ bool SetAvatar(SEBinary avatar, Skype::VALIDATERESULT &result);
+
+ void SetOnAccountChangedCallback(OnAccountChanged callback, CSkypeProto* proto);
+
+private:
+ CSkype *skype;
+ CSkypeProto* proto;
+ OnAccountChanged callback;
+ void OnChange(int prop);
+}; \ No newline at end of file