diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-05-15 10:38:20 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-05-15 10:38:20 +0000 |
commit | 48540940b6c28bb4378abfeb500ec45a625b37b6 (patch) | |
tree | 2ef294c0763e802f91d868bdef4229b6868527de /protocols/IcqOscarJ/cookies.h | |
parent | 5c350913f011e119127baeb32a6aedeb4f0d33bc (diff) |
initial commit
git-svn-id: http://svn.miranda-ng.org/main/trunk@2 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/IcqOscarJ/cookies.h')
-rw-r--r-- | protocols/IcqOscarJ/cookies.h | 155 |
1 files changed, 155 insertions, 0 deletions
diff --git a/protocols/IcqOscarJ/cookies.h b/protocols/IcqOscarJ/cookies.h new file mode 100644 index 0000000000..486674e77e --- /dev/null +++ b/protocols/IcqOscarJ/cookies.h @@ -0,0 +1,155 @@ +// ---------------------------------------------------------------------------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.
+//
+// -----------------------------------------------------------------------------
+//
+// File name : $URL: http://miranda.googlecode.com/svn/trunk/miranda/protocols/IcqOscarJ/cookies.h $
+// Revision : $Revision: 14141 $
+// Last change on : $Date: 2012-03-09 22:52:15 +0200 (Пт, 09 мар 2012) $
+// Last change by : $Author: george.hazan $
+//
+// 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 */
|