summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_subclassing.h
blob: 5cd42cf5c37618f438cef48a8de6234eb1834ddb (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#pragma once

#include <skype-embedded_2.h>

class CContact : public Contact
{
public:
	typedef DRef<CContact, Contact> Ref;
	typedef DRefs<CContact, Contact> Refs;

	CContact(unsigned int oid, SERootObject* root);

protected:
	void OnChange(int prop);
};

class CContactGroup : public ContactGroup
{
public:
	typedef DRef<CContactGroup, ContactGroup> Ref;
	typedef DRefs<CContactGroup, ContactGroup> Refs;
	CContactGroup(unsigned int oid, SERootObject* root);

	CContact::Refs ContactList;

protected:
	void OnChange(const ContactRef& contact);
};

class CAccount : public Account
{
public:
	typedef DRef<CAccount, Account> Ref;
	typedef DRefs<CAccount, Account> Refs;
	
	bool isLoggedOut;
	
	CAccount(unsigned int oid, SERootObject* root);
	
	void BlockWhileLoggingIn();
	void BlockWhileLoggingOut();

protected:
	void OnChange(int prop);
};

class CSkype : public Skype
{
public:
	CAccount* newAccount(int oid);
};