summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_contacts.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2012-10-01 19:25:45 +0000
committerAlexander Lantsev <aunsane@gmail.com>2012-10-01 19:25:45 +0000
commit4deaf28bfaf2a71686e0ef2e3b494ab5b807311b (patch)
tree38301157c3da008899a9f814b9e5c8a3949ceb88 /protocols/Skype/src/skype_contacts.cpp
parente8d6a2e3098bf4ee06b2bcb143dda488994e4e4d (diff)
- netlib funcs moved to skype_netlib.cpp
- some minor changes git-svn-id: http://svn.miranda-ng.org/main/trunk@1753 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_contacts.cpp')
-rw-r--r--protocols/Skype/src/skype_contacts.cpp20
1 files changed, 12 insertions, 8 deletions
diff --git a/protocols/Skype/src/skype_contacts.cpp b/protocols/Skype/src/skype_contacts.cpp
index 56c9b61ee1..2943e05e12 100644
--- a/protocols/Skype/src/skype_contacts.cpp
+++ b/protocols/Skype/src/skype_contacts.cpp
@@ -1,5 +1,10 @@
#include "skype_proto.h"
+
+void CSkypeProto::OnContactChanged(CContact* contact, int prop)
+{
+}
+
HANDLE CSkypeProto::GetContactBySkypeLogin(const char* skypeLogin)
{
for (HANDLE hContact = (HANDLE)CallService(MS_DB_CONTACT_FINDFIRST, 0, 0);
@@ -27,13 +32,12 @@ HANDLE CSkypeProto::GetContactBySkypeLogin(const char* skypeLogin)
void __cdecl CSkypeProto::LoadContactList(void*)
{
- CContactGroup::Ref contacts;
- g_skype->GetHardwiredContactGroup(CContactGroup::SKYPE_BUDDIES, contacts);
+ g_skype->GetHardwiredContactGroup(CContactGroup::ALL_KNOWN_CONTACTS, this->contactGroup);
- contacts->GetContacts(contacts->ContactList);
- fetch(contacts->ContactList);
+ this->contactGroup->GetContacts(this->contactGroup->ContactList);
+ fetch(this->contactGroup->ContactList);
- for (unsigned int i = 0; i < contacts->ContactList.size(); i++)
+ for (unsigned int i = 0; i < this->contactGroup->ContactList.size(); i++)
{
SEString name;
SEString skypeLogin;
@@ -41,7 +45,7 @@ void __cdecl CSkypeProto::LoadContactList(void*)
int status = ID_STATUS_OFFLINE;
CContact::AVAILABILITY availability = CContact::OFFLINE;
- contacts->ContactList[i]->GetPropSkypename(skypeLogin);
+ this->contactGroup->ContactList[i]->GetPropSkypename(skypeLogin);
printf("%3d. %s\n", i+1, (const char*)skypeLogin);
HANDLE hContact = this->GetContactBySkypeLogin(skypeLogin);
@@ -54,8 +58,8 @@ void __cdecl CSkypeProto::LoadContactList(void*)
if (CallService(MS_PROTO_ADDTOCONTACT, (WPARAM)hContact, (LPARAM)this->m_szModuleName) == 0 )
{
- contacts->ContactList[i]->GetPropDisplayname(name);
- contacts->ContactList[i]->GetPropAvailability(availability);
+ this->contactGroup->ContactList[i]->GetPropDisplayname(name);
+ this->contactGroup->ContactList[i]->GetPropAvailability(availability);
switch (availability)
{