summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skypekit/group.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Skype/src/skypekit/group.cpp')
-rw-r--r--protocols/Skype/src/skypekit/group.cpp16
1 files changed, 5 insertions, 11 deletions
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