From 2a1e6f05aa9fcc4dfe642bd42aeb175e3958d4b3 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Mon, 13 May 2013 18:30:05 +0000 Subject: Merged revision(s) from branches/unsane/skype_test: - CSkypeProto is derived of Skype class now - chat events moved to skype_chat.cpp - fixed chat message timestamp - fixed #331, #332 git-svn-id: http://svn.miranda-ng.org/main/trunk@4644 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Skype/src/skype_skype.cpp | 56 +++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 protocols/Skype/src/skype_skype.cpp (limited to 'protocols/Skype/src/skype_skype.cpp') diff --git a/protocols/Skype/src/skype_skype.cpp b/protocols/Skype/src/skype_skype.cpp new file mode 100644 index 0000000000..3e9eeac7fe --- /dev/null +++ b/protocols/Skype/src/skype_skype.cpp @@ -0,0 +1,56 @@ +#include "skype_proto.h" + +CAccount* CSkypeProto::newAccount(int oid) +{ + return new CAccount(oid, this); +} + +CContactGroup* CSkypeProto::newContactGroup(int oid) +{ + return new CContactGroup(oid, this); +} + +CContact* CSkypeProto::newContact(int oid) +{ + return new CContact(oid, this); +} + +CConversation* CSkypeProto::newConversation(int oid) +{ + return new CConversation(oid, this); +} + +CParticipant* CSkypeProto::newParticipant(int oid) +{ + return new CParticipant(oid, this); +} + +CMessage* CSkypeProto::newMessage(int oid) +{ + return new CMessage(oid, this); +} + +CTransfer* CSkypeProto::newTransfer(int oid) +{ + return new CTransfer(oid, this); +} + +CContactSearch* CSkypeProto::newContactSearch(int oid) +{ + return new CContactSearch(oid, this); +} + +bool CSkypeProto::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; +} \ No newline at end of file -- cgit v1.2.3