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