comparison src/conversation.h @ 5944:158196b2db19

[gaim-migrate @ 6385] Added #ifdef __cplusplus lines so that things will link right with C++. Also added some doxygen comment blocks that didn't previously exist. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Mon, 23 Jun 2003 06:40:13 +0000
parents 059d95c67cda
children 5239a3b4ab33
comparison
equal deleted inserted replaced
5943:a4f2aba0848d 5944:158196b2db19
26 26
27 /**************************************************************************/ 27 /**************************************************************************/
28 /** Data Structures */ 28 /** Data Structures */
29 /**************************************************************************/ 29 /**************************************************************************/
30 30
31 typedef enum _GaimConversationType GaimConversationType;
32 typedef enum _GaimUnseenState GaimUnseenState;
33 typedef enum _GaimConvUpdateType GaimConvUpdateType;
34 typedef enum _GaimTypingState GaimTypingState;
35 typedef struct _GaimWindowUiOps GaimWindowUiOps; 31 typedef struct _GaimWindowUiOps GaimWindowUiOps;
36 typedef struct _GaimWindow GaimWindow; 32 typedef struct _GaimWindow GaimWindow;
37 typedef struct _GaimConversationUiOps GaimConversationUiOps; 33 typedef struct _GaimConversationUiOps GaimConversationUiOps;
38 typedef struct _GaimConversation GaimConversation; 34 typedef struct _GaimConversation GaimConversation;
39 typedef struct _GaimIm GaimIm; 35 typedef struct _GaimIm GaimIm;
40 typedef struct _GaimChat GaimChat; 36 typedef struct _GaimChat GaimChat;
41 37
42 /** 38 /**
43 * A type of conversation. 39 * A type of conversation.
44 */ 40 */
45 enum _GaimConversationType 41 typedef enum
46 { 42 {
47 GAIM_CONV_UNKNOWN = 0, /**< Unknown conversation type. */ 43 GAIM_CONV_UNKNOWN = 0, /**< Unknown conversation type. */
48 GAIM_CONV_IM, /**< Instant Message. */ 44 GAIM_CONV_IM, /**< Instant Message. */
49 GAIM_CONV_CHAT, /**< Chat room. */ 45 GAIM_CONV_CHAT, /**< Chat room. */
50 GAIM_CONV_MISC /**< A misc. conversation. */ 46 GAIM_CONV_MISC /**< A misc. conversation. */
51 }; 47
48 } GaimConversationType;
52 49
53 /** 50 /**
54 * Unseen text states. 51 * Unseen text states.
55 */ 52 */
56 enum _GaimUnseenState 53 typedef enum
57 { 54 {
58 GAIM_UNSEEN_NONE = 0, /**< No unseen text in the conversation. */ 55 GAIM_UNSEEN_NONE = 0, /**< No unseen text in the conversation. */
59 GAIM_UNSEEN_TEXT, /**< Unseen text in the conversation. */ 56 GAIM_UNSEEN_TEXT, /**< Unseen text in the conversation. */
60 GAIM_UNSEEN_NICK, /**< Unseen text and the nick was said. */ 57 GAIM_UNSEEN_NICK, /**< Unseen text and the nick was said. */
61 }; 58
59 } GaimUnseenState;
62 60
63 /** 61 /**
64 * Conversation update type. 62 * Conversation update type.
65 */ 63 */
66 enum _GaimConvUpdateType 64 typedef enum
67 { 65 {
68 GAIM_CONV_UPDATE_ADD = 0, /**< The buddy associated with the conversation 66 GAIM_CONV_UPDATE_ADD = 0, /**< The buddy associated with the conversation
69 was added. */ 67 was added. */
70 GAIM_CONV_UPDATE_REMOVE, /**< The buddy associated with the conversation 68 GAIM_CONV_UPDATE_REMOVE, /**< The buddy associated with the conversation
71 was removed. */ 69 was removed. */
81 * system. 79 * system.
82 */ 80 */
83 GAIM_CONV_ACCOUNT_ONLINE, /**< One of the user's accounts went online. */ 81 GAIM_CONV_ACCOUNT_ONLINE, /**< One of the user's accounts went online. */
84 GAIM_CONV_ACCOUNT_OFFLINE, /**< One of the user's accounts went offline. */ 82 GAIM_CONV_ACCOUNT_OFFLINE, /**< One of the user's accounts went offline. */
85 GAIM_CONV_UPDATE_AWAY /**< The other user went away. */ 83 GAIM_CONV_UPDATE_AWAY /**< The other user went away. */
86 }; 84
85 } GaimConvUpdateType;
87 86
88 /** 87 /**
89 * The typing state of a user. 88 * The typing state of a user.
90 */ 89 */
91 enum _GaimTypingState 90 typedef enum
92 { 91 {
93 GAIM_NOT_TYPING = 0, /**< Not typing. */ 92 GAIM_NOT_TYPING = 0, /**< Not typing. */
94 GAIM_TYPING, /**< Currently typing. */ 93 GAIM_TYPING, /**< Currently typing. */
95 GAIM_TYPED /**< Stopped typing momentarily. */ 94 GAIM_TYPED /**< Stopped typing momentarily. */
96 }; 95
97 96 } GaimTypingState;
98 97
99 #include "account.h" 98 #include "account.h"
100 #include "server.h" 99 #include "server.h"
101
102 100
103 /** 101 /**
104 * Conversation window operations. 102 * Conversation window operations.
105 * 103 *
106 * Any UI representing a window must assign a filled-out gaim_window_ops 104 * Any UI representing a window must assign a filled-out gaim_window_ops
236 GHashTable *data; /**< Plugin-specific data. */ 234 GHashTable *data; /**< Plugin-specific data. */
237 }; 235 };
238 236
239 typedef void (*GaimConvPlacementFunc)(GaimConversation *); 237 typedef void (*GaimConvPlacementFunc)(GaimConversation *);
240 238
239 #ifdef __cplusplus
240 extern "C" {
241 #endif
242
241 /**************************************************************************/ 243 /**************************************************************************/
242 /** @name Conversation Window API */ 244 /** @name Conversation Window API */
243 /**************************************************************************/ 245 /**************************************************************************/
244 /*@{*/ 246 /*@{*/
245 247
1176 */ 1178 */
1177 void gaim_conversation_init(void); 1179 void gaim_conversation_init(void);
1178 1180
1179 /*@}*/ 1181 /*@}*/
1180 1182
1183 #ifdef __cplusplus
1184 }
1185 #endif
1186
1181 #endif /* _GAIM_CONVERSATION_H_ */ 1187 #endif /* _GAIM_CONVERSATION_H_ */