diff src/conversation.h @ 5872:059d95c67cda

[gaim-migrate @ 6304] The legendary Header File Cleanup! Files now only include what they need. This should reduce the number of files that must recompile when a header file changes. It's a lot nicer. Trust me on it. I also added a couple new header files. I hope I didn't break TOO much! committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sat, 14 Jun 2003 23:21:02 +0000
parents 96e5b32e75ad
children 158196b2db19
line wrap: on
line diff
--- a/src/conversation.h	Sat Jun 14 21:34:31 2003 +0000
+++ b/src/conversation.h	Sat Jun 14 23:21:02 2003 +0000
@@ -24,8 +24,6 @@
 #ifndef _GAIM_CONVERSATION_H_
 #define _GAIM_CONVERSATION_H_
 
-#include "account.h"
-
 /**************************************************************************/
 /** Data Structures                                                       */
 /**************************************************************************/
@@ -33,6 +31,7 @@
 typedef enum   _GaimConversationType  GaimConversationType;
 typedef enum   _GaimUnseenState       GaimUnseenState;
 typedef enum   _GaimConvUpdateType    GaimConvUpdateType;
+typedef enum   _GaimTypingState       GaimTypingState;
 typedef struct _GaimWindowUiOps       GaimWindowUiOps;
 typedef struct _GaimWindow            GaimWindow;
 typedef struct _GaimConversationUiOps GaimConversationUiOps;
@@ -87,6 +86,21 @@
 };
 
 /**
+ * The typing state of a user.
+ */
+enum _GaimTypingState
+{
+	GAIM_NOT_TYPING = 0,  /**< Not typing.                 */
+	GAIM_TYPING,          /**< Currently typing.           */
+	GAIM_TYPED            /**< Stopped typing momentarily. */
+};
+
+
+#include "account.h"
+#include "server.h"
+
+
+/**
  * Conversation window operations.
  *
  * Any UI representing a window must assign a filled-out gaim_window_ops
@@ -161,7 +175,7 @@
 {
 	GaimConversation *conv;            /**< The parent conversation.     */
 
-	int    typing_state;               /**< The current typing state.    */
+	GaimTypingState typing_state;      /**< The current typing state.    */
 	guint  typing_timeout;             /**< The typing timer handle.     */
 	time_t type_again;                 /**< The type again time.         */
 	guint  type_again_timeout;         /**< The type again timer handle. */
@@ -1157,6 +1171,11 @@
  */
 GaimWindowUiOps *gaim_get_win_ui_ops(void);
 
+/**
+ * Initializes the conversation subsystem.
+ */
+void gaim_conversation_init(void);
+
 /*@}*/
 
 #endif /* _GAIM_CONVERSATION_H_ */