blob: 8ec02e08e86dff10812ef7d9a39e62eb2f21b6ab (
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
28
29
30
31
32
|
#include "..\skype.h"
#include "account.h"
CAccount::CAccount(unsigned int oid, CSkypeProto* _ppro) :
Account(oid, _ppro),
ppro(_ppro)
{
}
bool CAccount::IsOnline()
{
CAccount::STATUS status;
this->GetPropStatus(status);
return status == CAccount::LOGGED_IN;
}
bool CAccount::SetAvatar(SEBinary avatar, Skype::VALIDATERESULT &result)
{
int fbl;
if (!((Skype*)this->root)->ValidateAvatar(avatar, result, fbl) || result != Skype::VALIDATED_OK)
return false;
if (!this->SetBinProperty(Account::P_AVATAR_IMAGE, avatar))
return false;
return true;
}
void CAccount::OnChange(int prop)
{
ppro->OnAccountChanged(prop);
}
|