diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-10-12 11:45:28 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-10-12 11:45:28 +0000 |
commit | 08fd5437555d0b5cab972fb3316b4cdb8f11cdae (patch) | |
tree | c18c5bfd833781b935871f6ffa7d4c14769f52ec /protocols/AimOscar/src/chat.h | |
parent | 8473fb7c85680042038cc0ad40d4e22bb6a639e7 (diff) |
AimOscar: folders restructurization
git-svn-id: http://svn.miranda-ng.org/main/trunk@1886 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/AimOscar/src/chat.h')
-rw-r--r-- | protocols/AimOscar/src/chat.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/protocols/AimOscar/src/chat.h b/protocols/AimOscar/src/chat.h new file mode 100644 index 0000000000..5b819544aa --- /dev/null +++ b/protocols/AimOscar/src/chat.h @@ -0,0 +1,53 @@ +#ifndef CHAT_H
+#define CHAT_H
+
+struct chatnav_param
+{
+ char* id;
+ unsigned short exchange;
+ unsigned short instance;
+
+ char* message;
+ char* sn;
+ char* icbm_cookie;
+
+ bool isroom;
+
+ chatnav_param(char* tid, unsigned short ex, unsigned short in, char* msg, char* nm, char* icki)
+ { id = tid; exchange = ex; instance = in; isroom = false;
+ message = mir_strdup(msg); sn = mir_strdup(nm); icbm_cookie = (char*)mir_alloc(8); memcpy(icbm_cookie, icki, 8); }
+
+ chatnav_param(char* tid, unsigned short ex)
+ { id = mir_strdup(tid); exchange = ex; isroom = true;
+ message = NULL; sn = NULL; icbm_cookie = NULL; }
+
+ ~chatnav_param()
+ {
+ mir_free(id);
+ mir_free(message);
+ mir_free(sn);
+ mir_free(icbm_cookie);
+ }
+};
+
+struct chat_list_item
+{
+ char* id;
+ char* cookie;
+ HANDLE hconn;
+ unsigned short cid;
+ unsigned short seqno;
+ unsigned short exchange;
+ unsigned short instance;
+ char* CHAT_COOKIE;
+ int CHAT_COOKIE_LENGTH;
+
+ chat_list_item(char* tid, char* tcookie, unsigned short ex, unsigned short in)
+ { id = mir_strdup(tid); cid = get_random(); seqno = 0; hconn = NULL;
+ cookie = mir_strdup(tcookie); exchange = ex; instance = in; }
+
+ ~chat_list_item()
+ { mir_free(id); mir_free(cookie); }
+};
+
+#endif
\ No newline at end of file |