summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skypekit/group.cpp
blob: f547563bcf3e7e9417d799171ef67d68d9d02f35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "group.h"

CContactGroup::CContactGroup(unsigned int oid, SERootObject* root) : ContactGroup(oid, root) 
{
	this->proto = NULL;
	this->callback == NULL;
}

void CContactGroup::SetOnContactListChangedCallback(OnContactListChanged callback, CSkypeProto* proto)
{
	this->proto = proto;
	this->callback = callback;
}

void CContactGroup::OnChange(const ContactRef &contact)
{
	if (this->proto)
		(proto->*callback)(contact);
}