summaryrefslogtreecommitdiff
path: root/plugins/!NotAdopted/sametime/userlist.h
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-11-18 20:37:19 +0000
committerRobert Pösel <robyer@seznam.cz>2013-11-18 20:37:19 +0000
commit0e80ad0d4c150fa947849cdad07a7d0d34d7340e (patch)
tree7034b8267ed219c615c4b135778e80a1ede16923 /plugins/!NotAdopted/sametime/userlist.h
parent8598a4a7a0bc922c4c1c768b55f596cc6d8a0d44 (diff)
Add sametime protocol sources (not adopted)
git-svn-id: http://svn.miranda-ng.org/main/trunk@6935 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/!NotAdopted/sametime/userlist.h')
-rw-r--r--plugins/!NotAdopted/sametime/userlist.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/plugins/!NotAdopted/sametime/userlist.h b/plugins/!NotAdopted/sametime/userlist.h
new file mode 100644
index 0000000000..be674b0e5f
--- /dev/null
+++ b/plugins/!NotAdopted/sametime/userlist.h
@@ -0,0 +1,59 @@
+#ifndef _USERLIST_INC
+#define _USERLIST_INC
+
+#include "common.h"
+#include "utils.h"
+
+#include <fstream>
+#include <string>
+#include <iostream>
+
+#include "clist_util.h"
+
+typedef struct {
+ int cbSize;
+ char *nick;
+ char *firstName;
+ char *lastName;
+ char *email;
+ char reserved[16];
+
+ char name[256];
+ char stid[256];
+ bool group;
+
+} MYPROTOSEARCHRESULT;
+
+typedef struct {
+ size_t nSize;
+ int nFieldCount;
+ TCHAR ** pszFields;
+ MYPROTOSEARCHRESULT psr;
+} MYCUSTOMSEARCHRESULTS;
+
+HANDLE FindContactByUserId(const char *id);
+bool GetAwareIdFromContact(HANDLE hContact, mwAwareIdBlock *id_block);
+
+int SearchForUser(const char *name);
+int GetMoreDetails(const char *name);
+
+int CreateSearchDialog(WPARAM wParam, LPARAM lParam);
+int SearchFromDialog(WPARAM wParam, LPARAM lParam);
+
+HANDLE AddSearchedUser(MYPROTOSEARCHRESULT *mpsr, bool temporary);
+
+HANDLE AddContact(mwSametimeUser *user, bool temporary);
+
+void UserListCreate();
+void UserListAddStored();
+void UserListDestroy();
+
+void ImportContactsFromFile(TCHAR *filename);
+void ExportContactsToServer();
+
+void UserRecvAwayMessage(HANDLE hContact);
+
+void InitUserList(mwSession *session);
+void DeinitUserList(mwSession *session);
+
+#endif \ No newline at end of file