diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-29 01:17:12 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-29 01:17:12 +0300 |
commit | 1fc54488ade5a8ba494c50f5a781b191c9b66c15 (patch) | |
tree | b7199b665529203b18aa5724fdbf98574323b770 /metacontacts.cpp | |
parent | 4583a24484a3eee749614b6fe0a3ead2d6be5f72 (diff) |
hz
Diffstat (limited to 'metacontacts.cpp')
-rw-r--r-- | metacontacts.cpp | 38 |
1 files changed, 22 insertions, 16 deletions
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;j<clist_cnt;j++)
-// if(clist[j].hContact==hContact && clist[j].proto->inspecting)
-// 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;
+}
+
|