diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2013-06-10 19:42:11 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2013-06-10 19:42:11 +0000 |
commit | 4adc7e198f49bbd5b39141f13322b653402c8a79 (patch) | |
tree | 6f0be5aa2527a9ab1aa9f2966dc17b033847641c /protocols/Skype/src/skypekit/participant.cpp | |
parent | cdf4d005c67b8b5ef62170ccd4fdd29579965d9c (diff) |
Skype:
- fixed chat role updating
- fixed chat commands
git-svn-id: http://svn.miranda-ng.org/main/trunk@4911 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skypekit/participant.cpp')
-rw-r--r-- | protocols/Skype/src/skypekit/participant.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/protocols/Skype/src/skypekit/participant.cpp b/protocols/Skype/src/skypekit/participant.cpp index 035003d1c9..9b35cfabb2 100644 --- a/protocols/Skype/src/skypekit/participant.cpp +++ b/protocols/Skype/src/skypekit/participant.cpp @@ -1,8 +1,18 @@ #include "participant.h"
-CParticipant::CParticipant(unsigned int oid, SERootObject* root) : Participant(oid, root) { }
+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)
{
- int i = 0;
+ if (this->room != NULL)
+ (room->*callback)(this->ref(), prop);
}
\ No newline at end of file |