summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skypekit
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2013-04-26 15:19:17 +0000
committerAlexander Lantsev <aunsane@gmail.com>2013-04-26 15:19:17 +0000
commit30b3cd352057c79cf26e1ce73a8c6554cbb4b7be (patch)
treeb6d9b287c6b547e68a18bba25d243b3d8c252d72 /protocols/Skype/src/skypekit
parent0fdbd8fce63637a7abf746942060f858b225af7d (diff)
cleanup project
git-svn-id: http://svn.miranda-ng.org/main/trunk@4534 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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