Mercurial > pidgin.yaz
comparison src/status.h @ 10337:682201b69107
[gaim-migrate @ 11545]
* Preliminary reading of status.xml using xmlnode.[h|c]
* I made a few changes the blist.xml readering code that I think makes
it cleaner
* "gaim_statuses_find_saved" makes more sense to me than
"gaim_statuses_find_stored"
* struct GaimStatus isn't really supposed to be used for keeping the
saved statuses, is it? I don't see how that would work. It seems
to make more sense to have a separate data structure for it. Maybe
I'm not seeing things clearly.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 09 Dec 2004 03:55:19 +0000 |
parents | 393f85d9f8dd |
children | 84d73473c019 |
comparison
equal
deleted
inserted
replaced
10336:114d3ac8ff5a | 10337:682201b69107 |
---|---|
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
24 */ | 24 */ |
25 #ifndef _GAIM_STATUS_H_ | 25 #ifndef _GAIM_STATUS_H_ |
26 #define _GAIM_STATUS_H_ | 26 #define _GAIM_STATUS_H_ |
27 | 27 |
28 typedef struct _GaimStatusType GaimStatusType; | 28 typedef struct _GaimStatusType GaimStatusType; |
29 typedef struct _GaimStatusAttr GaimStatusAttr; | 29 typedef struct _GaimStatusAttr GaimStatusAttr; |
30 typedef struct _GaimPresence GaimPresence; | 30 typedef struct _GaimPresence GaimPresence; |
31 typedef struct _GaimStatus GaimStatus; | 31 typedef struct _GaimStatus GaimStatus; |
32 typedef struct _GaimStatusSavedSub GaimStatusSavedSub; | |
33 typedef struct _GaimStatusSaved GaimStatusSaved; | |
32 | 34 |
33 /** | 35 /** |
34 * A context for a presence. | 36 * A context for a presence. |
35 * | 37 * |
36 * The context indicates what the presence applies to. | 38 * The context indicates what the presence applies to. |
877 gint gaim_presence_compare(const GaimPresence *presence1, | 879 gint gaim_presence_compare(const GaimPresence *presence1, |
878 const GaimPresence *presence2); | 880 const GaimPresence *presence2); |
879 | 881 |
880 /*@}*/ | 882 /*@}*/ |
881 | 883 |
882 | |
883 /**************************************************************************/ | 884 /**************************************************************************/ |
884 /** @name Status subsystem */ | 885 /** @name Status subsystem */ |
885 /**************************************************************************/ | 886 /**************************************************************************/ |
886 /*@{*/ | 887 /*@{*/ |
887 | 888 |
888 /** | 889 /** |
889 * Returns all stored statuses. | 890 * Returns all saved statuses. |
890 * | 891 * |
891 * @return A list of stored statuses. | 892 * @return A list of saved statuses. |
892 */ | 893 */ |
893 const GList *gaim_statuses_get_stored(void); | 894 const GList *gaim_statuses_get_saved(void); |
894 | 895 |
895 /** | 896 /** |
896 * Finds a stored status with the specified status type and primary ID. | 897 * Finds a saved status with the specified status type and primary ID. |
897 * | 898 * |
898 * @param status_type The status type of the status. | 899 * @param status_type The status type of the status. |
899 * @param id The primary attribute ID. | 900 * @param id The primary attribute ID. |
900 * | 901 * |
901 * @return The stored status if found, or NULL. | 902 * @return The saved status if found, or NULL. |
902 */ | 903 */ |
903 GaimStatus *gaim_statuses_find_stored(const GaimStatusType *status_type, | 904 GaimStatusSaved *gaim_statuses_find_saved(const GaimStatusType *status_type, |
904 const char *id); | 905 const char *id); |
906 | |
907 /** | |
908 * Return the name of a given saved status. | |
909 * | |
910 * @param saved_status The saved status. | |
911 * | |
912 * @return The name. | |
913 */ | |
914 const char *gaim_statuses_saved_get_name(const GaimStatusSaved *saved_status); | |
905 | 915 |
906 /** | 916 /** |
907 * Get the handle for the status subsystem. | 917 * Get the handle for the status subsystem. |
908 * | 918 * |
909 * @return the handle to the status subsystem | 919 * @return the handle to the status subsystem |