summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_subclassing.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2012-12-20 17:25:21 +0000
committerAlexander Lantsev <aunsane@gmail.com>2012-12-20 17:25:21 +0000
commit5e77e8a1665382c76fee1bc3ca12e44aca9af2e7 (patch)
tree9d2d8d2710a15c6e5e407b8a9ef5aa0cdce7b857 /protocols/Skype/src/skype_subclassing.cpp
parent27b52fd25b336a52cfd74d6ef74ed382a110a791 (diff)
- 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
Diffstat (limited to 'protocols/Skype/src/skype_subclassing.cpp')
-rw-r--r--protocols/Skype/src/skype_subclassing.cpp17
1 files changed, 3 insertions, 14 deletions
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