comparison plugins/icq/chatsession.h @ 1432:4c510ca3563f

[gaim-migrate @ 1442] icqlib 1.1.5 committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sun, 28 Jan 2001 01:52:27 +0000
parents 201ec77f3a60
children 8ed70631ed15
comparison
equal deleted inserted replaced
1431:0137bacd63c8 1432:4c510ca3563f
2 #ifndef _CHAT_SESSION_H 2 #ifndef _CHAT_SESSION_H
3 #define _CHAT_SESSION_H 3 #define _CHAT_SESSION_H
4 4
5 #include "icq.h" 5 #include "icq.h"
6 #include "icqtypes.h" 6 #include "icqtypes.h"
7
8 /* chat session statuses- request receiver */
9 #define CHAT_STATUS_LISTENING 1
10 #define CHAT_STATUS_CONNECTED 3
11 #define CHAT_STATUS_WAIT_NAME 4
12 #define CHAT_STATUS_WAIT_FONT 6
13
14 /* chat session statuses- request sender */
15 #define CHAT_STATUS_CONNECTING 2
16 #define CHAT_STATUS_WAIT_ALLINFO 5
17
18 /* once negotiation is complete, both sides enter ready state */
19 #define CHAT_STATUS_READY 7
20 7
21 /* chat session states: 8 /* chat session states:
22 9
23 accepting chat request 10 accepting chat request
24 11
58 5. ICQ_NOTIFY_CHAT, CHAT_STATUS_CONNECTED 45 5. ICQ_NOTIFY_CHAT, CHAT_STATUS_CONNECTED
59 ICQ_NOTIFY_CHATDATA, .... 46 ICQ_NOTIFY_CHATDATA, ....
60 ICQ_NOTIFY_SUCCESS 47 ICQ_NOTIFY_SUCCESS
61 */ 48 */
62 49
63 typedef struct icq_ChatSession_s {
64
65 DWORD id;
66 int status;
67 ICQLINK *icqlink;
68
69 DWORD remote_uin;
70 char *remote_handle;
71
72 } icq_ChatSession;
73
74 icq_ChatSession *icq_ChatSessionNew(ICQLINK *); 50 icq_ChatSession *icq_ChatSessionNew(ICQLINK *);
75 void icq_ChatSessionDelete(void *); 51 void icq_ChatSessionDelete(void *);
76 void icq_ChatSessionClose(icq_ChatSession *);
77 void icq_ChatSessionSetStatus(icq_ChatSession *, int); 52 void icq_ChatSessionSetStatus(icq_ChatSession *, int);
78 icq_ChatSession *icq_FindChatSession(ICQLINK *, DWORD); 53 icq_ChatSession *icq_FindChatSession(ICQLINK *, DWORD);
79 54
80 #endif 55 #endif