Mercurial > pidgin.yaz
comparison src/gaim.h @ 2438:5cbe86a444d9
[gaim-migrate @ 2451]
more updates to core.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sat, 06 Oct 2001 00:10:29 +0000 |
parents | b4f2a53c0ee5 |
children | 8306c042bac7 |
comparison
equal
deleted
inserted
replaced
2437:aa63f3ceea03 | 2438:5cbe86a444d9 |
---|---|
26 #include <config.h> | 26 #include <config.h> |
27 #endif | 27 #endif |
28 | 28 |
29 #include "core.h" | 29 #include "core.h" |
30 #include "ui.h" | 30 #include "ui.h" |
31 /* CUI: when this is done being split, the only things below should be things | 31 /* XXX CUI: when this is done being split, the only things below should be things |
32 * both the core and the uis depend on e.g. the protocol definitions, etc, and | 32 * both the core and the uis depend on e.g. the protocol definitions, etc, and |
33 * it won't include core.h or ui.h (i.e. it'll mostly be #define's) */ | 33 * it won't include core.h or ui.h (i.e. it'll mostly be #define's) */ |
34 | |
35 /* this is the basis of the CUI protocol. */ | |
36 #define CUI_TYPE_META 1 | |
37 #define CUI_TYPE_PLUGIN 2 | |
38 #define CUI_TYPE_USER 3 | |
39 #define CUI_TYPE_CONN 4 | |
40 #define CUI_TYPE_BUDDY 5 /* BUDDY_LIST, i.e., both groups and buddies */ | |
41 #define CUI_TYPE_MESSAGE 6 | |
42 #define CUI_TYPE_CHAT 7 | |
43 | |
44 #define CUI_META_LIST 1 /* 1 is always list; this is ignored by the core. | |
45 If we move to TCP this can be a keepalive */ | |
46 #define CUI_META_QUIT 2 | |
47 #define CUI_META_DETACH 3 /* you don't need to send this, you can just close | |
48 the socket. the core will understand. */ | |
49 | |
50 #define CUI_PLUGIN_LIST 1 | |
51 #define CUI_PLUGIN_LOAD 2 | |
52 #define CUI_PLUGIN_UNLOAD 3 | |
53 #define CUI_PLUGIN_RELOAD 4 /* this is redundant and may be removed */ | |
54 | |
55 #define CUI_USER_LIST 1 | |
56 #define CUI_USER_ADD 2 | |
57 #define CUI_USER_REMOVE 3 | |
58 #define CUI_USER_MODIFY 4 /* this handles moving them in the list too */ | |
59 | |
60 #define CUI_CONN_LIST 1 | |
61 #define CUI_CONN_PROGRESS 2 | |
62 #define CUI_CONN_ONLINE 3 | |
63 #define CUI_CONN_OFFLINE 4 /* this may send a "reason" for why it was killed */ | |
64 | |
65 #define CUI_BUDDY_LIST 1 | |
66 #define CUI_BUDDY_STATE 2 /* notifies the UI of state changes; UI can use it to | |
67 request the current status from the core */ | |
68 #define CUI_BUDDY_ADD 3 | |
69 #define CUI_BUDDY_REMOVE 4 | |
70 #define CUI_BUDDY_MODIFY 5 | |
71 | |
72 #define CUI_MESSAGE_LIST 1 /* no idea */ | |
73 #define CUI_MESSAGE_SEND 2 | |
74 #define CUI_MESSAGE_RECV 3 | |
75 | |
76 #define CUI_CHAT_LIST 1 | |
77 #define CUI_CHAT_HISTORY 2 /* is this necessary? should we have one for IMs? */ | |
78 #define CUI_CHAT_JOIN 3 /* handles other people joining/parting too */ | |
79 #define CUI_CHAT_PART 4 | |
80 #define CUI_CHAT_SEND 5 | |
81 #define CUI_CHAT_RECV 6 | |
82 | |
34 | 83 |
35 | 84 |
36 #define IM_FLAG_AWAY 0x01 | 85 #define IM_FLAG_AWAY 0x01 |
37 #define IM_FLAG_CHECKBOX 0x02 | 86 #define IM_FLAG_CHECKBOX 0x02 |
38 #define IM_FLAG_GAIMUSER 0x04 | 87 #define IM_FLAG_GAIMUSER 0x04 |