summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skypekit
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Skype/src/skypekit')
-rw-r--r--protocols/Skype/src/skypekit/conversation.cpp10
-rw-r--r--protocols/Skype/src/skypekit/conversation.h4
-rw-r--r--protocols/Skype/src/skypekit/participant.cpp29
-rw-r--r--protocols/Skype/src/skypekit/participant.h3
4 files changed, 17 insertions, 29 deletions
diff --git a/protocols/Skype/src/skypekit/conversation.cpp b/protocols/Skype/src/skypekit/conversation.cpp
index e907c82d75..c0d855150b 100644
--- a/protocols/Skype/src/skypekit/conversation.cpp
+++ b/protocols/Skype/src/skypekit/conversation.cpp
@@ -1,3 +1,11 @@
#include "conversation.h"
-CConversation::CConversation(unsigned int oid, SERootObject* root) : Conversation(oid, root) { }
+CConversation::CConversation(unsigned int oid, SERootObject* root) : Conversation(oid, root)
+{
+}
+
+void CConversation::OnParticipantListChange()
+{
+ this->GetParticipants(this->participants, CConversation::OTHER_CONSUMERS);
+ fetch(this->participants);
+}
diff --git a/protocols/Skype/src/skypekit/conversation.h b/protocols/Skype/src/skypekit/conversation.h
index 9fdc064962..26e7fb990b 100644
--- a/protocols/Skype/src/skypekit/conversation.h
+++ b/protocols/Skype/src/skypekit/conversation.h
@@ -1,6 +1,7 @@
#pragma once
#include "common.h"
+#include "participant.h"
class CConversation : public Conversation
{
@@ -12,4 +13,7 @@ public:
private:
CSkypeProto* proto;
+ CParticipant::Refs participants;
+
+ void OnParticipantListChange();
}; \ No newline at end of file
diff --git a/protocols/Skype/src/skypekit/participant.cpp b/protocols/Skype/src/skypekit/participant.cpp
index 8b25254a0e..035003d1c9 100644
--- a/protocols/Skype/src/skypekit/participant.cpp
+++ b/protocols/Skype/src/skypekit/participant.cpp
@@ -2,32 +2,7 @@
CParticipant::CParticipant(unsigned int oid, SERootObject* root) : Participant(oid, root) { }
-SEString CParticipant::GetRankName(CParticipant::RANK rank)
+void CParticipant::OnChange(int prop)
{
- char *result = NULL;
- switch (rank)
- {
- case CParticipant::CREATOR:
- result = "Creator";
- break;
- case CParticipant::ADMIN:
- result = "Admin";
- break;
- case CParticipant::SPEAKER:
- result = "Speaker";
- break;
- case CParticipant::WRITER:
- result = "Writer";
- break;
- case CParticipant::SPECTATOR:
- result = "Spectator";
- break;
- case CParticipant::RETIRED:
- result = "Retried";
- break;
- case CParticipant::OUTLAW:
- result = "Outlaw";
- break;
- }
- return result;
+ int i = 0;
} \ No newline at end of file
diff --git a/protocols/Skype/src/skypekit/participant.h b/protocols/Skype/src/skypekit/participant.h
index 3a09d28017..3d6e38b445 100644
--- a/protocols/Skype/src/skypekit/participant.h
+++ b/protocols/Skype/src/skypekit/participant.h
@@ -10,5 +10,6 @@ public:
CParticipant(unsigned int oid, SERootObject* root);
- static SEString GetRankName(CParticipant::RANK rank);
+private:
+ void OnChange(int prop);
}; \ No newline at end of file