diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2013-05-05 08:38:57 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2013-05-05 08:38:57 +0000 |
commit | 1229cee3091839af4dd181e28b55e4823079007e (patch) | |
tree | 7afa602a61bdc81de9135b5642ec11c5ee4ea229 /protocols/Skype/src/skypekit/skypekit.cpp | |
parent | 1b39cc1afb501ea3973affcf864b8485e81251ff (diff) |
- reworked invitation to chat
- fixed chat contact's statuses
- added "Spawn conversation" button in contact dialog
- StringList now based on stl
git-svn-id: http://svn.miranda-ng.org/main/trunk@4586 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skypekit/skypekit.cpp')
-rw-r--r-- | protocols/Skype/src/skypekit/skypekit.cpp | 27 |
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 |