diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-10-12 14:53:57 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-10-12 14:53:57 +0000 |
commit | 3b55a62fdcb1f8222de3c2c8fbed530792c419a0 (patch) | |
tree | 5b2f628e847f61bb3e16f95ecaed6e187963362f /protocols/IcqOscarJ/src/cookies.h | |
parent | 1f9c986d82657f965462d289bf94aa012cf026fc (diff) |
GTalkExt, ICQ, IRC, Jabber: folders restructurization
git-svn-id: http://svn.miranda-ng.org/main/trunk@1890 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/IcqOscarJ/src/cookies.h')
-rw-r--r-- | protocols/IcqOscarJ/src/cookies.h | 148 |
1 files changed, 148 insertions, 0 deletions
diff --git a/protocols/IcqOscarJ/src/cookies.h b/protocols/IcqOscarJ/src/cookies.h new file mode 100644 index 0000000000..05e0d170eb --- /dev/null +++ b/protocols/IcqOscarJ/src/cookies.h @@ -0,0 +1,148 @@ +// ---------------------------------------------------------------------------80
+// ICQ plugin for Miranda Instant Messenger
+// ________________________________________
+//
+// Copyright © 2000-2001 Richard Hughes, Roland Rabien, Tristan Van de Vreede
+// Copyright © 2001-2002 Jon Keating, Richard Hughes
+// Copyright © 2002-2004 Martin Öberg, Sam Kothari, Robert Rainwater
+// Copyright © 2004-2010 Joe Kucera
+//
+// This program is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License
+// as published by the Free Software Foundation; either version 2
+// of the License, or (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+//
+// -----------------------------------------------------------------------------
+// DESCRIPTION:
+//
+// Describe me here please...
+//
+// -----------------------------------------------------------------------------
+#ifndef __COOKIES_H
+#define __COOKIES_H
+
+
+#define CKT_MESSAGE 0x01
+#define CKT_FILE 0x02
+#define CKT_SEARCH 0x04
+#define CKT_SERVERLIST 0x08
+#define CKT_SERVICEREQUEST 0x0A
+#define CKT_REVERSEDIRECT 0x0C
+#define CKT_FAMILYSPECIAL 0x10
+#define CKT_OFFLINEMESSAGE 0x12
+#define CKT_DIRECTORY_QUERY 0x18
+#define CKT_DIRECTORY_UPDATE 0x19
+#define CKT_AVATAR 0x20
+
+struct CIcqProto;
+
+/* Basic structure used to hold operation cookies list */
+struct icq_cookie_info
+{
+ DWORD dwCookie;
+ HANDLE hContact;
+ void *pvExtra;
+ time_t dwTime;
+ BYTE bType;
+};
+
+
+/* Specific structures to hold request specific data - pvExtra */
+
+struct cookie_family_request
+{
+ WORD wFamily;
+ void (CIcqProto::*familyHandler)(HANDLE hConn, char* cookie, WORD cookieLen);
+};
+
+
+struct cookie_offline_messages
+{
+ int nMessages;
+ int nMissed;
+};
+
+
+#define ACKTYPE_NONE 0
+#define ACKTYPE_SERVER 1
+#define ACKTYPE_CLIENT 2
+
+struct cookie_message_data
+{
+ DWORD dwMsgID1;
+ DWORD dwMsgID2;
+ WORD bMessageType;
+ BYTE nAckType;
+ BYTE isOffline;
+};
+
+#define REQUESTTYPE_OWNER 0
+#define REQUESTTYPE_USERAUTO 1
+#define REQUESTTYPE_USERMINIMAL 2
+#define REQUESTTYPE_USERDETAILED 3
+#define REQUESTTYPE_PROFILE 4
+
+struct cookie_fam15_data
+{
+ BYTE bRequestType;
+};
+
+
+#define SEARCHTYPE_UID 0
+#define SEARCHTYPE_EMAIL 1
+#define SEARCHTYPE_NAMES 2
+#define SEARCHTYPE_DETAILS 4
+
+struct cookie_search
+{
+ BYTE bSearchType;
+ char* szObject;
+ DWORD dwMainId;
+ DWORD dwStatus;
+};
+
+
+struct cookie_avatar
+{
+ DWORD dwUin;
+ HANDLE hContact;
+ unsigned int hashlen;
+ BYTE *hash;
+ unsigned int cbData;
+ TCHAR *szFile;
+};
+
+
+struct cookie_reverse_connect: public cookie_message_data
+{
+ HANDLE hContact;
+ DWORD dwUin;
+ int type;
+ void *ft;
+};
+
+
+#define DIRECTORYREQUEST_INFOUSER 0x01
+#define DIRECTORYREQUEST_INFOOWNER 0x02
+#define DIRECTORYREQUEST_INFOMULTI 0x03
+#define DIRECTORYREQUEST_SEARCH 0x08
+#define DIRECTORYREQUEST_UPDATEOWNER 0x10
+#define DIRECTORYREQUEST_UPDATENOTE 0x11
+#define DIRECTORYREQUEST_UPDATEPRIVACY 0x12
+
+struct cookie_directory_data
+{
+ BYTE bRequestType;
+};
+
+
+#endif /* __COOKIES_H */
|