Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
10418:bed2c96bc1fb | 10419:c9b1f3fac753 |
---|---|
63 | 63 |
64 #include "account.h" | 64 #include "account.h" |
65 #include "blist.h" | 65 #include "blist.h" |
66 #include "conversation.h" | 66 #include "conversation.h" |
67 #include "value.h" | 67 #include "value.h" |
68 | |
69 /**************************************************************************/ | |
70 /** @name GaimStatusPrimtive API */ | |
71 /**************************************************************************/ | |
72 /*@{*/ | |
73 | |
74 /** | |
75 * Lookup the id of a primitive status type based on the type. This | |
76 * ID is a unique plain-text name of the status, without spaces. | |
77 * | |
78 * @param type A primitive status type. | |
79 * | |
80 * @return The unique ID for this type. | |
81 */ | |
82 const char *gaim_primitive_get_id_from_type(GaimStatusPrimitive type); | |
83 | |
84 /** | |
85 * Lookup the name of a primitive status type based on the type. This | |
86 * name is the plain-English name of the status type. It is usually one | |
87 * or two works. | |
88 * | |
89 * @param type A primitive status type. | |
90 * | |
91 * @return The name of this type, suitable for users to see. | |
92 */ | |
93 const char *gaim_primitive_get_name_from_type(GaimStatusPrimitive type); | |
94 | |
95 /** | |
96 * Lookup the value of a primitive status type based on the id. The | |
97 * ID is a unique plain-text name of the status, without spaces. | |
98 * | |
99 * @param type The unique ID of a primitive status type. | |
100 * | |
101 * @return The GaimStatusPrimitive value. | |
102 */ | |
103 GaimStatusPrimitive gaim_primitive_get_type_from_id(const char *id); | |
104 | |
105 /*@}*/ | |
68 | 106 |
69 /**************************************************************************/ | 107 /**************************************************************************/ |
70 /** @name GaimStatusType API */ | 108 /** @name GaimStatusType API */ |
71 /**************************************************************************/ | 109 /**************************************************************************/ |
72 /*@{*/ | 110 /*@{*/ |