| 56 GAIM_STATUS_ONLINE, |
56 GAIM_STATUS_ONLINE, |
| 57 GAIM_STATUS_AVAILABLE, |
57 GAIM_STATUS_AVAILABLE, |
| 58 GAIM_STATUS_UNAVAILABLE, |
58 GAIM_STATUS_UNAVAILABLE, |
| 59 GAIM_STATUS_HIDDEN, |
59 GAIM_STATUS_HIDDEN, |
| 60 GAIM_STATUS_AWAY, |
60 GAIM_STATUS_AWAY, |
| 61 GAIM_STATUS_EXTENDED_AWAY |
61 GAIM_STATUS_EXTENDED_AWAY, |
| |
62 GAIM_STATUS_NUM_PRIMITIVES |
| 62 |
63 |
| 63 } GaimStatusPrimitive; |
64 } GaimStatusPrimitive; |
| 64 |
65 |
| 65 #include "account.h" |
66 #include "account.h" |
| 66 #include "blist.h" |
67 #include "blist.h" |
| 294 * |
295 * |
| 295 * @return The list of attributes. |
296 * @return The list of attributes. |
| 296 */ |
297 */ |
| 297 const GList *gaim_status_type_get_attrs(const GaimStatusType *status_type); |
298 const GList *gaim_status_type_get_attrs(const GaimStatusType *status_type); |
| 298 |
299 |
| |
300 /** |
| |
301 * Find the GaimStatusType with the given id. |
| |
302 * |
| |
303 * @param status_types A list of status types. Often account->status_types. |
| |
304 * @param id The unique ID of the status type you wish to find. |
| |
305 * |
| |
306 * @return The status type with the given ID, or NULL if one could |
| |
307 * not be found. |
| |
308 */ |
| |
309 const GaimStatusType *gaim_status_type_find_with_id(GList *status_types, |
| |
310 const char *id); |
| |
311 |
| 299 /*@}*/ |
312 /*@}*/ |
| 300 |
313 |
| 301 /**************************************************************************/ |
314 /**************************************************************************/ |
| 302 /** @name GaimStatusAttr API */ |
315 /** @name GaimStatusAttr API */ |
| 303 /**************************************************************************/ |
316 /**************************************************************************/ |
| 894 const GList *gaim_statuses_get_saved(void); |
907 const GList *gaim_statuses_get_saved(void); |
| 895 |
908 |
| 896 /** |
909 /** |
| 897 * Finds a saved status with the specified title. |
910 * Finds a saved status with the specified title. |
| 898 * |
911 * |
| 899 * @param name The name of the saved status. |
912 * @param title The name of the saved status. |
| 900 * |
913 * |
| 901 * @return The saved status if found, or NULL. |
914 * @return The saved status if found, or NULL. |
| 902 */ |
915 */ |
| 903 GaimStatusSaved *gaim_statuses_find_saved(const char *name); |
916 GaimStatusSaved *gaim_statuses_find_saved(const char *title); |
| 904 |
917 |
| 905 /** |
918 /** |
| 906 * Return the name of a given saved status. |
919 * Return the name of a given saved status. |
| 907 * |
920 * |
| 908 * @param saved_status The saved status. |
921 * @param saved_status The saved status. |
| 909 * |
922 * |
| |
923 * @return The title. |
| |
924 */ |
| |
925 const char *gaim_statuses_saved_get_title(const GaimStatusSaved *saved_status); |
| |
926 |
| |
927 /** |
| |
928 * Return the name of a given saved status. |
| |
929 * |
| |
930 * @param saved_status The saved status. |
| |
931 * |
| 910 * @return The name. |
932 * @return The name. |
| 911 */ |
933 */ |
| 912 const char *gaim_statuses_saved_get_name(const GaimStatusSaved *saved_status); |
934 GaimStatusPrimitive gaim_statuses_saved_get_type(const GaimStatusSaved *saved_status); |
| 913 |
935 |
| 914 /** |
936 /** |
| 915 * Return the name of a given saved status. |
937 * Return the name of a given saved status. |
| 916 * |
938 * |
| 917 * @param saved_status The saved status. |
939 * @param saved_status The saved status. |
| 918 * |
940 * |
| 919 * @return The name. |
941 * @return The name. |
| 920 */ |
942 */ |
| 921 const GaimStatusType *gaim_statuses_saved_get_type(const GaimStatusSaved *saved_status); |
|
| 922 |
|
| 923 /** |
|
| 924 * Return the name of a given saved status. |
|
| 925 * |
|
| 926 * @param saved_status The saved status. |
|
| 927 * |
|
| 928 * @return The name. |
|
| 929 */ |
|
| 930 const char *gaim_statuses_saved_get_message(const GaimStatusSaved *saved_status); |
943 const char *gaim_statuses_saved_get_message(const GaimStatusSaved *saved_status); |
| 931 |
944 |
| 932 /** |
945 /** |
| 933 * Get the handle for the status subsystem. |
946 * Get the handle for the status subsystem. |
| 934 * |
947 * |
| 945 * Uninitializes the status subsystem. |
958 * Uninitializes the status subsystem. |
| 946 */ |
959 */ |
| 947 void gaim_statuses_uninit(void); |
960 void gaim_statuses_uninit(void); |
| 948 |
961 |
| 949 /** |
962 /** |
| |
963 * Syncs status information from a file. |
| |
964 */ |
| |
965 void gaim_statuses_load(void); |
| |
966 |
| |
967 /** |
| 950 * Syncs status information to the file. |
968 * Syncs status information to the file. |
| 951 */ |
969 */ |
| 952 void gaim_statuses_sync(void); |
970 void gaim_statuses_sync(void); |
| 953 |
971 |
| 954 /** |
|
| 955 * Syncs status information from a file. |
|
| 956 */ |
|
| 957 void gaim_statuses_load(void); |
|
| 958 |
|
| 959 /*@}*/ |
972 /*@}*/ |
| 960 |
973 |
| 961 #endif /* _GAIM_STATUS_H_ */ |
974 #endif /* _GAIM_STATUS_H_ */ |