From 1fc54488ade5a8ba494c50f5a781b191c9b66c15 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Sun, 29 Aug 2010 01:17:12 +0300 Subject: hz --- metacontacts.cpp | 38 ++++++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 16 deletions(-) (limited to 'metacontacts.cpp') diff --git a/metacontacts.cpp b/metacontacts.cpp index a830c52..9ac3d63 100644 --- a/metacontacts.cpp +++ b/metacontacts.cpp @@ -26,40 +26,46 @@ BOOL isProtoMetaContacts(HANDLE hContact) return true; } } -// for(int j=0;jinspecting) -// return strstr(clist[j].proto->name,"MetaContacts")!=NULL; return false; } -BOOL isDefaultSubContact(HANDLE hContact) +BOOL metaIsDefaultSubContact(HANDLE hContact) { - if(bMetaContacts) { - return (HANDLE)CallService(MS_MC_GETDEFAULTCONTACT,(WPARAM)CallService(MS_MC_GETMETACONTACT,(WPARAM)hContact,0),0)==hContact; - } + if(bMetaContacts) + return (HANDLE)CallService(MS_MC_GETDEFAULTCONTACT,(WPARAM)CallService(MS_MC_GETMETACONTACT,(WPARAM)hContact,0),0)==hContact; return false; } -HANDLE getMetaContact(HANDLE hContact) +HANDLE metaGetContact(HANDLE hContact) { - - if(bMetaContacts) { - return (HANDLE)CallService(MS_MC_GETMETACONTACT,(WPARAM)hContact,0); - } + if(bMetaContacts) + return (HANDLE)CallService(MS_MC_GETMETACONTACT,(WPARAM)hContact,0); return 0; } -HANDLE getMostOnline(HANDLE hContact) +HANDLE metaGetMostOnline(HANDLE hContact) { - if(bMetaContacts) { - return (HANDLE)CallService(MS_MC_GETMOSTONLINECONTACT,(WPARAM)hContact,0); - } + if(bMetaContacts) + return (HANDLE)CallService(MS_MC_GETMOSTONLINECONTACT,(WPARAM)hContact,0); return 0; } +DWORD metaGetContactsNum(HANDLE hContact) +{ + if(bMetaContacts) + return CallService(MS_MC_GETNUMCONTACTS, (WPARAM)hContact, 0); + return 0; +} +HANDLE metaGetSubcontact(HANDLE hContact, int num) +{ + if(bMetaContacts) + return (HANDLE)CallService(MS_MC_GETSUBCONTACT, (WPARAM)hContact, (LPARAM)num); + return 0; +} + -- cgit v1.2.3