From 5c2da0fd5b2542d99750747fc746013b7755ddae Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 14 Jun 2013 19:41:18 +0000 Subject: callbacks removed git-svn-id: http://svn.miranda-ng.org/main/trunk@4947 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Skype/src/skypekit/group.cpp | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'protocols/Skype/src/skypekit/group.cpp') diff --git a/protocols/Skype/src/skypekit/group.cpp b/protocols/Skype/src/skypekit/group.cpp index f547563bcf..3e708280ca 100644 --- a/protocols/Skype/src/skypekit/group.cpp +++ b/protocols/Skype/src/skypekit/group.cpp @@ -1,19 +1,13 @@ +#include "..\skype.h" #include "group.h" -CContactGroup::CContactGroup(unsigned int oid, SERootObject* root) : ContactGroup(oid, root) +CContactGroup::CContactGroup(CSkypeProto* _ppro, unsigned int oid, SERootObject* root) : + ContactGroup(oid, root), + proto(_ppro) { - this->proto = NULL; - this->callback == NULL; -} - -void CContactGroup::SetOnContactListChangedCallback(OnContactListChanged callback, CSkypeProto* proto) -{ - this->proto = proto; - this->callback = callback; } void CContactGroup::OnChange(const ContactRef &contact) { - if (this->proto) - (proto->*callback)(contact); + proto->OnContactListChanged(contact); } \ No newline at end of file -- cgit v1.2.3