blob: 07ff0b929c5a31f7d1490b0f365ca3b0291a5ff6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#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 IsOnline();
bool SetAvatar(SEBinary avatar, Skype::VALIDATERESULT &result);
void SetOnAccountChangedCallback(OnAccountChanged callback, CSkypeProto* proto);
private:
CSkype *skype;
CSkypeProto* proto;
OnAccountChanged callback;
void OnChange(int prop);
};
|