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

CParticipant::CParticipant(unsigned int oid, SERootObject* root) : Participant(oid, root)
{
	this->room = NULL;
}

void CParticipant::SetOnChangedCallback(OnChanged callback, ChatRoom *room)
{
	this->room = room;
	this->callback = callback;
}

void CParticipant::OnChange(int prop)
{
	if (this->room != NULL)
		(room->*callback)(this->ref(), prop);
}