src/pluginpref.h

changeset 12712
21ea46d3dee9
parent 12323
f52908fb23b0
child 13107
704041197f4d
equal deleted inserted replaced
12711:2d8f2c9b761d 12712:21ea46d3dee9
31 31
32 typedef enum { 32 typedef enum {
33 GAIM_PLUGIN_PREF_NONE, 33 GAIM_PLUGIN_PREF_NONE,
34 GAIM_PLUGIN_PREF_CHOICE, 34 GAIM_PLUGIN_PREF_CHOICE,
35 GAIM_PLUGIN_PREF_INFO, /**< no-value label */ 35 GAIM_PLUGIN_PREF_INFO, /**< no-value label */
36 GAIM_PLUGIN_PREF_STRING_FORMAT
36 } GaimPluginPrefType; 37 } GaimPluginPrefType;
37 38
38 #include <glib.h> 39 #include <glib.h>
39 #include "prefs.h" 40 #include "prefs.h"
40 41
229 * @param pref The plugin pref 230 * @param pref The plugin pref
230 * @return The masking 231 * @return The masking
231 */ 232 */
232 gboolean gaim_plugin_pref_get_masked(GaimPluginPref *pref); 233 gboolean gaim_plugin_pref_get_masked(GaimPluginPref *pref);
233 234
235 /**
236 * Sets the format type for a formattable-string plugin pref. You need to set the
237 * pref type to GAIM_PLUGIN_PREF_STRING_FORMAT first before setting the format.
238 *
239 * @param pref The plugin pref
240 * @param format The format of the string
241 */
242 void gaim_plugin_pref_set_format_type(GaimPluginPref *pref, GaimStringFormatType format);
243
244 /**
245 * Gets the format type of the formattable-string plugin pref.
246 *
247 * @param pref The plugin pref
248 * @return The format of the pref
249 */
250 GaimStringFormatType gaim_plugin_pref_get_format_type(GaimPluginPref *pref);
251
234 /*@}*/ 252 /*@}*/
235 253
236 #ifdef __cplusplus 254 #ifdef __cplusplus
237 } 255 }
238 #endif 256 #endif

mercurial