comparison src/prpl.h @ 9308:b3bda982996b

[gaim-migrate @ 10116] Yikes. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Sat, 19 Jun 2004 04:57:43 +0000
parents 3d5519a84d02
children d9d4b987e194
comparison
equal deleted inserted replaced
9307:2138b3a07cb8 9308:b3bda982996b
98 GAIM_CONV_IM_AUTO_RESP = 0x0001, /**< Auto response. */ 98 GAIM_CONV_IM_AUTO_RESP = 0x0001, /**< Auto response. */
99 GAIM_CONV_IM_IMAGES = 0x0002 /**< Contains images. */ 99 GAIM_CONV_IM_IMAGES = 0x0002 /**< Contains images. */
100 100
101 } GaimConvImFlags; 101 } GaimConvImFlags;
102 102
103 /**
104 * A description of a Buddy Icon specification. This tells Gaim what kind of image file
105 * it should give this prpl, and what kind of image file it should expect back.
106 */
107 typedef struct {
108 char *format; /**< This is a comma-delimited list of image formats or NULL if icons are not supported.
109 * The core nor the prpl will actually check to see if the data it's given matches this, it's entirely
110 * up to the UI to do what it wants */
111 int width; /**< The width of this icon */
112 int height; /**< The height of this icon */
113 } GaimBuddyIconSpec;
114
115 /* This #define exists just to make it easier to fill out the buddy icon field in he prpl info struct for protocols that couldn't care less. */
116 #define NO_BUDDY_ICONS {NULL, 0, 0}
117
103 #include "blist.h" 118 #include "blist.h"
104 #include "proxy.h" 119 #include "proxy.h"
105 #include "plugin.h" 120 #include "plugin.h"
106 121
107 /** 122 /**
144 159
145 /** 160 /**
146 * Buddy icon support. 161 * Buddy icon support.
147 * 162 *
148 * Oscar and Jabber have buddy icons. 163 * Oscar and Jabber have buddy icons.
149 */ 164 *
150 OPT_PROTO_BUDDY_ICON = 0x00000040, 165 * *We'll do this a bit more sophisticated like, now.
166 *
167 * OPT_PROTO_BUDDY_ICON = 0x00000040,
168 */
151 169
152 /** 170 /**
153 * Images in IMs. 171 * Images in IMs.
154 * 172 *
155 * Oscar lets you send images in direct IMs. 173 * Oscar lets you send images in direct IMs.
192 210
193 GaimProtocolOptions options; /**< Protocol options. */ 211 GaimProtocolOptions options; /**< Protocol options. */
194 212
195 GList *user_splits; /* A GList of GaimAccountUserSplit */ 213 GList *user_splits; /* A GList of GaimAccountUserSplit */
196 GList *protocol_options; /* A GList of GaimAccountOption */ 214 GList *protocol_options; /* A GList of GaimAccountOption */
197 215
216 GaimBuddyIconSpec icon_spec; /* The icon spec. */
217
198 /** 218 /**
199 * Returns the base icon name for the given buddy and account. 219 * Returns the base icon name for the given buddy and account.
200 * If buddy is NULL, it will return the name to use for the account's icon 220 * If buddy is NULL, it will return the name to use for the account's icon
201 */ 221 */
202 const char *(*list_icon)(GaimAccount *account, GaimBuddy *buddy); 222 const char *(*list_icon)(GaimAccount *account, GaimBuddy *buddy);