blob: e6db40ca1f6a270c75ef823b68663187b05603ff (
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
|
#pragma once
#include "common.h"
class ChatRoom;
class CParticipant : public Participant
{
public:
typedef void (ChatRoom::* OnChanged)(const ParticipantRef &participant, int);
typedef DRef<CParticipant, Participant> Ref;
typedef DRefs<CParticipant, Participant> Refs;
CParticipant(unsigned int oid, SERootObject* root);
void SetOnChangedCallback(OnChanged callback, ChatRoom *room);
private:
ChatRoom *room;
OnChanged callback;
void OnChange(int prop);
};
|