diff src/prpl.h @ 12216:4d3119205a33

[gaim-migrate @ 14518] Remove GaimConvImFlags and GaimConvChatFlags - use GaimMessageFlags everywhere instead. Add a new GAIM_MESSAGE_IMAGES flag, and set it when sending a message containing images. When sending a message, the core will now always send "html" to the prpls, just like it expects to receive html from the prpls for received messages. This will allow text prpls such as SILC to support IM images and differentiate them from user input. Previously gaim_unescape_html() was used before passing the message to the prpl, now the prpl does this itself if it needs it. I think I updated all the prpls correctly, but I'm not so sure about sametime. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Thu, 24 Nov 2005 20:47:46 +0000
parents cbebda5f019c
children fc28451f5d96
line wrap: on
line diff
--- a/src/prpl.h	Thu Nov 24 20:38:24 2005 +0000
+++ b/src/prpl.h	Thu Nov 24 20:47:46 2005 +0000
@@ -35,22 +35,6 @@
 /** @name Basic Protocol Information                                      */
 /**************************************************************************/
 
-/**
- * Flags applicable to outgoing/incoming IMs from prpls.
- */
-typedef enum
-{
-	GAIM_CONV_IM_AUTO_RESP = 0x0001,    /**< Auto response.    */
-	GAIM_CONV_IM_IMAGES    = 0x0002     /**< Contains images.  */
-} GaimConvImFlags;
-
-typedef enum
-{
-	GAIM_CONV_CHAT_WHISPER = 0x0001,    /**< Whispered message.*/
-	GAIM_CONV_CHAT_DELAYED = 0x0002,    /**< Delayed message.  */
-	GAIM_CONV_CHAT_ALERT   = 0x0004     /**< Alert message.    */
-} GaimConvChatFlags;
-
 typedef enum {
 	GAIM_ICON_SCALE_DISPLAY = 0x01,		/**< We scale the icon when we display it */
 	GAIM_ICON_SCALE_SEND = 0x02			/**< We scale the icon before we send it to the server */
@@ -80,6 +64,7 @@
 #define NO_BUDDY_ICONS {NULL, 0, 0, 0, 0, 0}
 
 #include "blist.h"
+#include "conversation.h"
 #include "ft.h"
 #include "proxy.h"
 #include "plugin.h"
@@ -237,7 +222,7 @@
 	 */
 	int  (*send_im)(GaimConnection *, const char *who,
 					const char *message,
-					GaimConvImFlags flags);
+					GaimMessageFlags flags);
 
 	void (*set_info)(GaimConnection *, const char *info);
 	int  (*send_typing)(GaimConnection *, const char *name, int typing);
@@ -264,7 +249,7 @@
 	void (*chat_leave)(GaimConnection *, int id);
 	void (*chat_whisper)(GaimConnection *, int id,
 						 const char *who, const char *message);
-	int  (*chat_send)(GaimConnection *, int id, const char *message);
+	int  (*chat_send)(GaimConnection *, int id, const char *message, GaimMessageFlags flags);
 	void (*keepalive)(GaimConnection *);
 
 	/* new user registration */