comparison src/gaim.h @ 3478:3da42b64304e

[gaim-migrate @ 3532] This isn't complete--but it's cool. gaim-remote is now built and installed. Eventually it will do lots of cool stuff--right now it just handles aim:// URI's. Try it out... when connected to OSCAR run: gaim-remote uri "aim://goim?screenname=seanegn&message=Good+job+Sean" Also, I made it so that if you're already running a Gaim session, and start a new one, it won't auto-login and disconnect all your accounts from the first instance. Useful if you accidentally hit the wrong button or something. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Fri, 30 Aug 2002 16:09:22 +0000
parents d33ec392a5e1
children 4b204c262376
comparison
equal deleted inserted replaced
3477:db5dd21aa345 3478:3da42b64304e
41 #define CUI_TYPE_USER 3 41 #define CUI_TYPE_USER 3
42 #define CUI_TYPE_CONN 4 42 #define CUI_TYPE_CONN 4
43 #define CUI_TYPE_BUDDY 5 /* BUDDY_LIST, i.e., both groups and buddies */ 43 #define CUI_TYPE_BUDDY 5 /* BUDDY_LIST, i.e., both groups and buddies */
44 #define CUI_TYPE_MESSAGE 6 44 #define CUI_TYPE_MESSAGE 6
45 #define CUI_TYPE_CHAT 7 45 #define CUI_TYPE_CHAT 7
46 #define CUI_TYPE_REMOTE 8 /* This is used to send commands to other UI's,
47 * like "Open new conversation" or "send IM".
48 * Even though there's much redundancy with the
49 * other CUI_TYPES, we're better keeping this stuff
50 * seperate because it's intended use is so different */
46 51
47 #define CUI_META_LIST 1 /* 1 is always list; this is ignored by the core. 52 #define CUI_META_LIST 1 /* 1 is always list; this is ignored by the core.
48 If we move to TCP this can be a keepalive */ 53 If we move to TCP this can be a keepalive */
49 #define CUI_META_QUIT 2 54 #define CUI_META_QUIT 2
50 #define CUI_META_DETACH 3 /* you don't need to send this, you can just close 55 #define CUI_META_DETACH 3 /* you don't need to send this, you can just close
51 the socket. the core will understand. */ 56 the socket. the core will understand. */
57 #define CUI_META_PING 4
58 #define CUI_META_ACK 5
52 59
53 #define CUI_PLUGIN_LIST 1 60 #define CUI_PLUGIN_LIST 1
54 #define CUI_PLUGIN_LOAD 2 61 #define CUI_PLUGIN_LOAD 2
55 #define CUI_PLUGIN_UNLOAD 3 62 #define CUI_PLUGIN_UNLOAD 3
56 #define CUI_PLUGIN_RELOAD 4 /* this is redundant and may be removed */ 63 #define CUI_PLUGIN_RELOAD 4 /* this is redundant and may be removed */
81 #define CUI_CHAT_HISTORY 2 /* is this necessary? should we have one for IMs? */ 88 #define CUI_CHAT_HISTORY 2 /* is this necessary? should we have one for IMs? */
82 #define CUI_CHAT_JOIN 3 /* handles other people joining/parting too */ 89 #define CUI_CHAT_JOIN 3 /* handles other people joining/parting too */
83 #define CUI_CHAT_PART 4 90 #define CUI_CHAT_PART 4
84 #define CUI_CHAT_SEND 5 91 #define CUI_CHAT_SEND 5
85 #define CUI_CHAT_RECV 6 92 #define CUI_CHAT_RECV 6
93
94 #define CUI_REMOTE_CONNECTIONS 2 /* Get a list of gaim_connections */
95 #define CUI_REMOTE_URI 3 /* Have the core handle aim:// URI's */
96 #define CUI_REMOTE_BLIST 4 /* Return a copy of the buddy list */
97 #define CUI_REMOTE_STATE 5 /* Given a buddy, return his presence. */
98 #define CUI_REMOTE_NEW_CONVO 6 /* Must give a user, can give an optional message */
99 #define CUI_REMOTE_SEND 7 /* Sends a message, a 'quiet' flag determines whether
100 * a convo window is displayed or not. */
101 #define CUI_REMOTE_ADD_BUDDY 8 /* Adds buddy to list */
102 #define CUI_REMOTE_REMOVE_BUDDY 9 /* Removes buddy from list */
103 #define CUI_REMOTE_JOIN_CHAT 10 /* Joins a chat. */
104 /* What else?? */
105
86 106
87 #define IM_FLAG_AWAY 0x01 107 #define IM_FLAG_AWAY 0x01
88 #define IM_FLAG_CHECKBOX 0x02 108 #define IM_FLAG_CHECKBOX 0x02
89 #define IM_FLAG_GAIMUSER 0x04 109 #define IM_FLAG_GAIMUSER 0x04
90 110
430 extern char *add_cr(char *); 450 extern char *add_cr(char *);
431 extern void strip_linefeed(char *); 451 extern void strip_linefeed(char *);
432 extern time_t get_time(int, int, int, int, int, int); 452 extern time_t get_time(int, int, int, int, int, int);
433 extern FILE *gaim_mkstemp(gchar **); 453 extern FILE *gaim_mkstemp(gchar **);
434 extern char *convert_string(char *, const char *, const char *); 454 extern char *convert_string(char *, const char *, const char *);
455 extern const char *handle_uri(char *);
435 456
436 #ifdef HAVE_LANGINFO_CODESET 457 #ifdef HAVE_LANGINFO_CODESET
437 #define utf8_to_str(in) convert_string(in, nl_langinfo(CODESET), "UTF-8"); 458 #define utf8_to_str(in) convert_string(in, nl_langinfo(CODESET), "UTF-8");
438 #define str_to_utf8(in) convert_string(in, "UTF-8", nl_langinfo(CODESET)); 459 #define str_to_utf8(in) convert_string(in, "UTF-8", nl_langinfo(CODESET));
439 #else 460 #else