diff options
Diffstat (limited to 'protocols/Skype/src/skypekit/participant.cpp')
-rw-r--r-- | protocols/Skype/src/skypekit/participant.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/protocols/Skype/src/skypekit/participant.cpp b/protocols/Skype/src/skypekit/participant.cpp index 513f532a0f..41e183821b 100644 --- a/protocols/Skype/src/skypekit/participant.cpp +++ b/protocols/Skype/src/skypekit/participant.cpp @@ -1,5 +1,6 @@ #include "..\skype.h"
#include "participant.h"
+#include "..\skype_chat.h"
CParticipant::CParticipant(unsigned int oid, SERootObject* root) :
Participant(oid, root)
@@ -7,14 +8,20 @@ CParticipant::CParticipant(unsigned int oid, SERootObject* root) : this->room = NULL;
}
-void CParticipant::SetOnChangedCallback(OnChanged callback, ChatRoom *room)
+//void CParticipant::SetOnChangedCallback(OnChanged callback, ChatRoom *room)
+//{
+// this->room = room;
+// this->callback = callback;
+//}
+
+void CParticipant::SetChatRoom(ChatRoom *room)
{
this->room = room;
- this->callback = callback;
}
void CParticipant::OnChange(int prop)
{
if (this->room != NULL)
- (room->*callback)(this->ref(), prop);
+ this->room->OnParticipantChanged(this->ref(), prop);
+ //(room->*callback)(this->ref(), prop);
}
\ No newline at end of file |