diff src/status.h @ 10419:c9b1f3fac753

[gaim-migrate @ 11670] Added some GaimStatusPrimitive<-->text mapping functions Renamed the GaimStatusSaved data types to GaimSavedStatus Modifying a status will now bring up an editor thing with the correct values set committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 26 Dec 2004 02:03:14 +0000
parents bed2c96bc1fb
children 51b87da4e9f0
line wrap: on
line diff
--- a/src/status.h	Sun Dec 26 00:46:26 2004 +0000
+++ b/src/status.h	Sun Dec 26 02:03:14 2004 +0000
@@ -67,6 +67,44 @@
 #include "value.h"
 
 /**************************************************************************/
+/** @name GaimStatusPrimtive API                                          */
+/**************************************************************************/
+/*@{*/
+
+/**
+ * Lookup the id of a primitive status type based on the type.  This
+ * ID is a unique plain-text name of the status, without spaces.
+ *
+ * @param type A primitive status type.
+ *
+ * @return The unique ID for this type.
+ */
+const char *gaim_primitive_get_id_from_type(GaimStatusPrimitive type);
+
+/**
+ * Lookup the name of a primitive status type based on the type.  This
+ * name is the plain-English name of the status type.  It is usually one
+ * or two works.
+ *
+ * @param type A primitive status type.
+ *
+ * @return The name of this type, suitable for users to see.
+ */
+const char *gaim_primitive_get_name_from_type(GaimStatusPrimitive type);
+
+/**
+ * Lookup the value of a primitive status type based on the id.  The
+ * ID is a unique plain-text name of the status, without spaces.
+ *
+ * @param type The unique ID of a primitive status type.
+ *
+ * @return The GaimStatusPrimitive value.
+ */
+GaimStatusPrimitive gaim_primitive_get_type_from_id(const char *id);
+
+/*@}*/
+
+/**************************************************************************/
 /** @name GaimStatusType API                                              */
 /**************************************************************************/
 /*@{*/