Mercurial > pidgin.yaz
comparison src/connection.h @ 6622:a4622f1fb5a1
[gaim-migrate @ 7146]
(10:10:23) Robot101: kills off OPT_CONN_* in favour of an enum, and deprecates all
the IM_FLAGS_* except IM_FLAG_AWAY which is made into GAIM_IM_AUTO_RESP in a
GaimImFlags enum.
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Mon, 25 Aug 2003 14:12:28 +0000 |
parents | 943b03bcecf5 |
children | bdc448cf4cb6 |
comparison
equal
deleted
inserted
replaced
6621:42fdf16f1dad | 6622:a4622f1fb5a1 |
---|---|
28 #include <stdlib.h> | 28 #include <stdlib.h> |
29 #include <time.h> | 29 #include <time.h> |
30 | 30 |
31 typedef struct _GaimConnection GaimConnection; | 31 typedef struct _GaimConnection GaimConnection; |
32 | 32 |
33 #define OPT_CONN_HTML 0x00000001 | 33 /** |
34 /* set this flag on a gc if you want serv_got_im to autoreply when away */ | 34 * Flags to change behavior of the client for a given connection. |
35 #define OPT_CONN_AUTO_RESP 0x00000002 | 35 */ |
36 typedef enum | |
37 { | |
38 GAIM_CONNECTION_HTML = 0x0001, /**< Connection sends/receives in 'HTML'. */ | |
39 GAIM_CONNECTION_AUTO_RESP = 0x0002 /**< Send auto responses when away. */ | |
40 } GaimConnectionFlags; | |
36 | 41 |
37 typedef enum | 42 typedef enum |
38 { | 43 { |
39 GAIM_DISCONNECTED = 0, /**< Disconnected. */ | 44 GAIM_DISCONNECTED = 0, /**< Disconnected. */ |
40 GAIM_CONNECTED, /**< Connected. */ | 45 GAIM_CONNECTED, /**< Connected. */ |
57 } GaimConnectionUiOps; | 62 } GaimConnectionUiOps; |
58 | 63 |
59 struct _GaimConnection | 64 struct _GaimConnection |
60 { | 65 { |
61 GaimPlugin *prpl; /**< The protocol plugin. */ | 66 GaimPlugin *prpl; /**< The protocol plugin. */ |
62 guint32 flags; /**< Connection flags. */ | 67 GaimConnectionFlags flags; /**< Connection flags. */ |
63 | 68 |
64 GaimConnectionState state; /**< The connection state. */ | 69 GaimConnectionState state; /**< The connection state. */ |
65 | 70 |
66 GaimAccount *account; /**< The account being connected to. */ | 71 GaimAccount *account; /**< The account being connected to. */ |
67 int inpa; /**< The input watcher. */ | 72 int inpa; /**< The input watcher. */ |