From 5e77e8a1665382c76fee1bc3ca12e44aca9af2e7 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Thu, 20 Dec 2012 17:25:21 +0000 Subject: - third approach of group chat support - added connection options - fixed connection via proxy git-svn-id: http://svn.miranda-ng.org/main/trunk@2772 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Skype/src/skype_subclassing.cpp | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'protocols/Skype/src/skype_subclassing.cpp') diff --git a/protocols/Skype/src/skype_subclassing.cpp b/protocols/Skype/src/skype_subclassing.cpp index 5eb2882e4d..6289bc1f98 100644 --- a/protocols/Skype/src/skype_subclassing.cpp +++ b/protocols/Skype/src/skype_subclassing.cpp @@ -55,8 +55,6 @@ void CSkype::OnMessage ( if (this->proto) (proto->*onMessagedCallback)(conversation->ref(), message->ref()); - - } void CSkype::SetOnMessageCallback(OnMessaged callback, CSkypeProto* proto) @@ -99,11 +97,6 @@ void CContactGroup::SetOnContactListChangedCallback(OnContactListChanged callbac this->callback = callback; } -//bool CContactGroup::Contains(const ContactRef& contact) -//{ -// return this->ContactList.contains(contact); -//} - void CContactGroup::OnChange(const ContactRef& contact) { if (this->proto) @@ -132,10 +125,6 @@ void CContactSearch::OnChange(int prop) (proto->*SearchCompletedCallback)(this->hSearch); } } - - //SEString value = GetProp(prop); - //List_String dbg = getPropDebug(prop, value); - //fprintf(stdout,"CONTACTSEARCH.%d:%s = %s\n", getOID(), (const char*)dbg[1], (const char*)dbg[2]); } void CContactSearch::OnNewResult(const ContactRef& contact, const uint& rankValue) @@ -197,13 +186,13 @@ void CContact::OnChange(int prop) CConversation::CConversation(unsigned int oid, SERootObject* root) : Conversation(oid, root) { this->proto = NULL; - this->callback == NULL; + this->messageReceivedCallback = NULL; } void CConversation::OnMessage(const MessageRef & message) { if (this->proto) - (proto->*callback)(message->ref()); + (proto->*messageReceivedCallback)(message->ref()); } CConversation::Ref CConversation::FindBySid(CSkype *skype, SEString sid) @@ -220,7 +209,7 @@ CConversation::Ref CConversation::FindBySid(CSkype *skype, SEString sid) void CConversation::SetOnMessageReceivedCallback(OnMessageReceived callback, CSkypeProto* proto) { this->proto = proto; - this->callback = callback; + this->messageReceivedCallback = callback; } // CMessage -- cgit v1.2.3