src/pluginpref.h

changeset 12712
21ea46d3dee9
parent 12323
f52908fb23b0
child 13107
704041197f4d
--- a/src/pluginpref.h	Wed Jan 04 03:01:32 2006 +0000
+++ b/src/pluginpref.h	Wed Jan 04 04:14:02 2006 +0000
@@ -33,6 +33,7 @@
 	GAIM_PLUGIN_PREF_NONE,
 	GAIM_PLUGIN_PREF_CHOICE,
 	GAIM_PLUGIN_PREF_INFO,   /**< no-value label */
+	GAIM_PLUGIN_PREF_STRING_FORMAT
 } GaimPluginPrefType;
 
 #include <glib.h>
@@ -231,6 +232,23 @@
  */
 gboolean gaim_plugin_pref_get_masked(GaimPluginPref *pref);
 
+/**
+ * Sets the format type for a formattable-string plugin pref. You need to set the
+ * pref type to GAIM_PLUGIN_PREF_STRING_FORMAT first before setting the format.
+ *
+ * @param pref	 The plugin pref
+ * @param format The format of the string
+ */
+void gaim_plugin_pref_set_format_type(GaimPluginPref *pref, GaimStringFormatType format);
+
+/**
+ * Gets the format type of the formattable-string plugin pref.
+ *
+ * @param pref The plugin pref
+ * @return The format of the pref
+ */
+GaimStringFormatType gaim_plugin_pref_get_format_type(GaimPluginPref *pref);
+
 /*@}*/
 
 #ifdef __cplusplus

mercurial