summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skypekit/skypekit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Skype/src/skypekit/skypekit.cpp')
-rw-r--r--protocols/Skype/src/skypekit/skypekit.cpp27
1 files changed, 21 insertions, 6 deletions
diff --git a/protocols/Skype/src/skypekit/skypekit.cpp b/protocols/Skype/src/skypekit/skypekit.cpp
index 6b5b77a238..233b7b0535 100644
--- a/protocols/Skype/src/skypekit/skypekit.cpp
+++ b/protocols/Skype/src/skypekit/skypekit.cpp
@@ -46,6 +46,27 @@ CContactSearch* CSkype::newContactSearch(int oid)
return new CContactSearch(oid, this);
}
+bool CSkype::CreateConferenceWithConsumers(ConversationRef &conference, const SEStringList &identities)
+{
+ if (this->CreateConference(conference))
+ {
+ conference->SetOption(CConversation::P_OPT_JOINING_ENABLED, true);
+ conference->SetOption(CConversation::P_OPT_ENTRY_LEVEL_RANK, CParticipant::WRITER);
+ conference->SetOption(CConversation::P_OPT_DISCLOSE_HISTORY, 1);
+ conference->AddConsumers(identities);
+
+ return true;
+ }
+
+ return false;
+}
+
+void CSkype::SetOnMessageCallback(OnMessaged callback, CSkypeProto* proto)
+{
+ this->proto = proto;
+ this->onMessagedCallback = callback;
+}
+
void CSkype::OnMessage (
const MessageRef & message,
const bool & changesInboxTimestamp,
@@ -54,10 +75,4 @@ void CSkype::OnMessage (
{
if (this->proto)
(proto->*onMessagedCallback)(conversation, message);
-}
-
-void CSkype::SetOnMessageCallback(OnMessaged callback, CSkypeProto* proto)
-{
- this->proto = proto;
- this->onMessagedCallback = callback;
} \ No newline at end of file