| 40 GAIM_DISCONNECTED = 0, /**< Disconnected. */ |
37 GAIM_DISCONNECTED = 0, /**< Disconnected. */ |
| 41 GAIM_CONNECTED, /**< Connected. */ |
38 GAIM_CONNECTED, /**< Connected. */ |
| 42 GAIM_CONNECTING /**< Connecting. */ |
39 GAIM_CONNECTING /**< Connecting. */ |
| 43 |
40 |
| 44 } GaimConnectionState; |
41 } GaimConnectionState; |
| |
42 |
| |
43 #include "account.h" |
| |
44 #include "plugin.h" |
| 45 |
45 |
| 46 typedef struct |
46 typedef struct |
| 47 { |
47 { |
| 48 void (*connect_progress)(GaimConnection *gc, const char *text, |
48 void (*connect_progress)(GaimConnection *gc, const char *text, |
| 49 size_t step, size_t step_count); |
49 size_t step, size_t step_count); |
| 84 this here?) */ |
84 this here?) */ |
| 85 |
85 |
| 86 gboolean wants_to_die; /**< Wants to Die state. */ |
86 gboolean wants_to_die; /**< Wants to Die state. */ |
| 87 }; |
87 }; |
| 88 |
88 |
| |
89 #ifdef __cplusplus |
| |
90 extern "C" { |
| |
91 #endif |
| |
92 |
| |
93 /**************************************************************************/ |
| |
94 /** @name Connection API */ |
| |
95 /**************************************************************************/ |
| |
96 |
| 89 /** |
97 /** |
| 90 * Creates a connection to the specified account. |
98 * Creates a connection to the specified account. |
| 91 * |
99 * |
| 92 * @param account The account the connection should be connecting to. |
100 * @param account The account the connection should be connecting to. |
| 93 * |
101 * |
| 196 * @param gc The connection. |
204 * @param gc The connection. |
| 197 * @param reason The error text. |
205 * @param reason The error text. |
| 198 */ |
206 */ |
| 199 void gaim_connection_error(GaimConnection *gc, const char *reason); |
207 void gaim_connection_error(GaimConnection *gc, const char *reason); |
| 200 |
208 |
| |
209 /*@}*/ |
| |
210 |
| |
211 /**************************************************************************/ |
| |
212 /** @name Connections API */ |
| |
213 /**************************************************************************/ |
| |
214 /*@{*/ |
| |
215 |
| 201 /** |
216 /** |
| 202 * Disconnects from all connections. |
217 * Disconnects from all connections. |
| 203 */ |
218 */ |
| 204 void gaim_connections_disconnect_all(void); |
219 void gaim_connections_disconnect_all(void); |
| 205 |
220 |
| 215 * |
230 * |
| 216 * @return A list of connecting connections. |
231 * @return A list of connecting connections. |
| 217 */ |
232 */ |
| 218 GList *gaim_connections_get_connecting(void); |
233 GList *gaim_connections_get_connecting(void); |
| 219 |
234 |
| |
235 /*@}*/ |
| |
236 |
| 220 /**************************************************************************/ |
237 /**************************************************************************/ |
| 221 /** @name UI Operations API */ |
238 /** @name UI Operations API */ |
| 222 /**************************************************************************/ |
239 /**************************************************************************/ |
| 223 /*@{*/ |
240 /*@{*/ |
| 224 |
241 |