comparison 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
comparison
equal deleted inserted replaced
12215:31b91bfab029 12216:4d3119205a33
32 typedef struct _GaimPluginProtocolInfo GaimPluginProtocolInfo; 32 typedef struct _GaimPluginProtocolInfo GaimPluginProtocolInfo;
33 33
34 /**************************************************************************/ 34 /**************************************************************************/
35 /** @name Basic Protocol Information */ 35 /** @name Basic Protocol Information */
36 /**************************************************************************/ 36 /**************************************************************************/
37
38 /**
39 * Flags applicable to outgoing/incoming IMs from prpls.
40 */
41 typedef enum
42 {
43 GAIM_CONV_IM_AUTO_RESP = 0x0001, /**< Auto response. */
44 GAIM_CONV_IM_IMAGES = 0x0002 /**< Contains images. */
45 } GaimConvImFlags;
46
47 typedef enum
48 {
49 GAIM_CONV_CHAT_WHISPER = 0x0001, /**< Whispered message.*/
50 GAIM_CONV_CHAT_DELAYED = 0x0002, /**< Delayed message. */
51 GAIM_CONV_CHAT_ALERT = 0x0004 /**< Alert message. */
52 } GaimConvChatFlags;
53 37
54 typedef enum { 38 typedef enum {
55 GAIM_ICON_SCALE_DISPLAY = 0x01, /**< We scale the icon when we display it */ 39 GAIM_ICON_SCALE_DISPLAY = 0x01, /**< We scale the icon when we display it */
56 GAIM_ICON_SCALE_SEND = 0x02 /**< We scale the icon before we send it to the server */ 40 GAIM_ICON_SCALE_SEND = 0x02 /**< We scale the icon before we send it to the server */
57 } GaimIconScaleRules; 41 } GaimIconScaleRules;
78 * field in the prpl info struct for protocols that couldn't care less. 62 * field in the prpl info struct for protocols that couldn't care less.
79 */ 63 */
80 #define NO_BUDDY_ICONS {NULL, 0, 0, 0, 0, 0} 64 #define NO_BUDDY_ICONS {NULL, 0, 0, 0, 0, 0}
81 65
82 #include "blist.h" 66 #include "blist.h"
67 #include "conversation.h"
83 #include "ft.h" 68 #include "ft.h"
84 #include "proxy.h" 69 #include "proxy.h"
85 #include "plugin.h" 70 #include "plugin.h"
86 #include "media.h" 71 #include "media.h"
87 #include "roomlist.h" 72 #include "roomlist.h"
235 * errno values, or just big something. If the message should 220 * errno values, or just big something. If the message should
236 * not be echoed to the conversation window, return 0. 221 * not be echoed to the conversation window, return 0.
237 */ 222 */
238 int (*send_im)(GaimConnection *, const char *who, 223 int (*send_im)(GaimConnection *, const char *who,
239 const char *message, 224 const char *message,
240 GaimConvImFlags flags); 225 GaimMessageFlags flags);
241 226
242 void (*set_info)(GaimConnection *, const char *info); 227 void (*set_info)(GaimConnection *, const char *info);
243 int (*send_typing)(GaimConnection *, const char *name, int typing); 228 int (*send_typing)(GaimConnection *, const char *name, int typing);
244 void (*get_info)(GaimConnection *, const char *who); 229 void (*get_info)(GaimConnection *, const char *who);
245 void (*set_status)(GaimAccount *account, GaimStatus *status); 230 void (*set_status)(GaimAccount *account, GaimStatus *status);
262 void (*chat_invite)(GaimConnection *, int id, 247 void (*chat_invite)(GaimConnection *, int id,
263 const char *who, const char *message); 248 const char *who, const char *message);
264 void (*chat_leave)(GaimConnection *, int id); 249 void (*chat_leave)(GaimConnection *, int id);
265 void (*chat_whisper)(GaimConnection *, int id, 250 void (*chat_whisper)(GaimConnection *, int id,
266 const char *who, const char *message); 251 const char *who, const char *message);
267 int (*chat_send)(GaimConnection *, int id, const char *message); 252 int (*chat_send)(GaimConnection *, int id, const char *message, GaimMessageFlags flags);
268 void (*keepalive)(GaimConnection *); 253 void (*keepalive)(GaimConnection *);
269 254
270 /* new user registration */ 255 /* new user registration */
271 void (*register_user)(GaimAccount *); 256 void (*register_user)(GaimAccount *);
272 257