summaryrefslogtreecommitdiff
path: root/src/modules/metacontacts/metacontacts.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-03-02 23:05:24 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-03-02 23:05:24 +0000
commit02f30a6b6b2e36fab71d0425c1bc95c7d5b26c50 (patch)
tree3136860092617b56a1a4cb28d7b920377912b799 /src/modules/metacontacts/metacontacts.h
parent0749bac971a90ae89d095d2ef81a27f4988f72f0 (diff)
next compilable mc version - all api rewritten to use the cache
git-svn-id: http://svn.miranda-ng.org/main/trunk@8366 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/metacontacts/metacontacts.h')
-rw-r--r--src/modules/metacontacts/metacontacts.h31
1 files changed, 14 insertions, 17 deletions
diff --git a/src/modules/metacontacts/metacontacts.h b/src/modules/metacontacts/metacontacts.h
index a4d876aa35..bf314ca577 100644
--- a/src/modules/metacontacts/metacontacts.h
+++ b/src/modules/metacontacts/metacontacts.h
@@ -25,7 +25,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define META_FILTER_ID "MetaFilterID"
#define META_LINK "MetaLink"
-#define META_HIDDEN_GROUP "MetaContacts Hidden Group"
#define MAX_CONTACTS 20
// I can't think of a way around this - mental block
@@ -51,34 +50,32 @@ INT_PTR Meta_OnOff(WPARAM wParam, LPARAM lParam);
int Meta_EqualDBV(DBVARIANT *dbv, DBVARIANT *id);
int Meta_ModifyMenu(WPARAM wParam,LPARAM lParam);
BOOL Meta_Assign(MCONTACT src, MCONTACT dest, BOOL set_as_default);
-MCONTACT Meta_GetHandle(const char *protocol, DBVARIANT *id);
int Meta_SetNick(char *proto);
-MCONTACT Meta_GetMostOnline(MCONTACT hMeta);
-MCONTACT Meta_GetMostOnlineSupporting(MCONTACT hMeta, int pflagnum, unsigned long capability);
int Meta_HideLinkedContacts(void);
int Meta_UnhideLinkedContacts(void);
-int Meta_GetContactNumber(MCONTACT hContact);
-MCONTACT Meta_GetContactHandle(MCONTACT hMeta, int contact_number);
-void Meta_RestoreGroup(MCONTACT hContact);
-void Meta_SetGroup(MCONTACT hContact);
+int Meta_GetContactNumber(DBCachedContact *cc, MCONTACT hContact);
int Meta_HideMetaContacts(int hide);
int Meta_SuppressStatus(int suppress);
-int Meta_CopyContactNick(MCONTACT hMeta, MCONTACT hContact);
-void Meta_CopyData(MCONTACT hMeta);
+int Meta_CopyContactNick(DBCachedContact *cc, MCONTACT hContact);
+void Meta_CopyData(DBCachedContact *cc);
int Meta_SetAllNicks();
-int Meta_IsHiddenGroup(const char *group_name);
-int Meta_SwapContacts(MCONTACT hMeta, DWORD contact_number1, DWORD contact_number2);
+int Meta_SwapContacts(DBCachedContact *cc, DWORD contact_number1, DWORD contact_number2);
+
+MCONTACT Meta_GetHandle(const char *protocol, DBVARIANT *id);
+MCONTACT Meta_GetMostOnline(DBCachedContact *cc);
+MCONTACT Meta_GetMostOnlineSupporting(DBCachedContact *cc, int pflagnum, unsigned long capability);
+MCONTACT Meta_GetContactHandle(DBCachedContact *cc, int contact_number);
+
+DBCachedContact* CheckMeta(MCONTACT hMeta);
+
// function to copy history from one contact to another - courtesy JdGordon with mods (thx)
-void copyHistory(MCONTACT hContactFrom, MCONTACT hContactTo);
-// inverse
-//void Meta_RemoveHistory(HANDLE hContactRemoveFrom, HANDLE hContactSource);
-void Meta_FixStatus(MCONTACT hMeta);
+void Meta_FixStatus(DBCachedContact *cc);
char *Meta_GetUniqueIdentifier(MCONTACT hContact, DWORD *pused);
INT_PTR Meta_GetCaps(WPARAM wParam,LPARAM lParam);
INT_PTR Meta_GetName(WPARAM wParam,LPARAM lParam);
-INT_PTR Meta_LoadIcon(WPARAM wParam,LPARAM lParam);
+INT_PTR Meta_LoadIcon(WPARAM wParam,LPARAM lParam);
INT_PTR Meta_SetStatus(WPARAM wParam,LPARAM lParam);
INT_PTR Meta_GetStatus(WPARAM wParam,LPARAM lParam);
INT_PTR Meta_SendMessage(WPARAM wParam,LPARAM lParam);