comparison src/status.h @ 10418:bed2c96bc1fb

[gaim-migrate @ 11669] I split the status-saving code into it's own little API, because it really is separate from the other status.c savedstatuses.c sits on top of the rest of the status API. And you can delete saved statuses now. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 26 Dec 2004 00:46:26 +0000
parents 64bc206c7473
children c9b1f3fac753
comparison
equal deleted inserted replaced
10417:823ad21cd95a 10418:bed2c96bc1fb
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;
34 32
35 /** 33 /**
36 * A context for a presence. 34 * A context for a presence.
37 * 35 *
38 * The context indicates what the presence applies to. 36 * The context indicates what the presence applies to.
898 /** @name Status subsystem */ 896 /** @name Status subsystem */
899 /**************************************************************************/ 897 /**************************************************************************/
900 /*@{*/ 898 /*@{*/
901 899
902 /** 900 /**
903 * Returns all saved statuses.
904 *
905 * @return A list of saved statuses.
906 */
907 const GList *gaim_statuses_get_saved(void);
908
909 /**
910 * Finds a saved status with the specified title.
911 *
912 * @param title The name of the saved status.
913 *
914 * @return The saved status if found, or NULL.
915 */
916 GaimStatusSaved *gaim_statuses_find_saved(const char *title);
917
918 /**
919 * Return the name of a given saved status.
920 *
921 * @param saved_status The saved status.
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 *
932 * @return The name.
933 */
934 GaimStatusPrimitive gaim_statuses_saved_get_type(const GaimStatusSaved *saved_status);
935
936 /**
937 * Return the name of a given saved status.
938 *
939 * @param saved_status The saved status.
940 *
941 * @return The name.
942 */
943 const char *gaim_statuses_saved_get_message(const GaimStatusSaved *saved_status);
944
945 /**
946 * Get the handle for the status subsystem. 901 * Get the handle for the status subsystem.
947 * 902 *
948 * @return the handle to the status subsystem 903 * @return the handle to the status subsystem
949 */ 904 */
950 void *gaim_statuses_get_handle(); 905 void *gaim_status_get_handle();
951 906
952 /** 907 /**
953 * Initializes the status subsystem. 908 * Initializes the status subsystem.
954 */ 909 */
955 void gaim_statuses_init(void); 910 void gaim_status_init(void);
956 911
957 /** 912 /**
958 * Uninitializes the status subsystem. 913 * Uninitializes the status subsystem.
959 */ 914 */
960 void gaim_statuses_uninit(void); 915 void gaim_status_uninit(void);
961
962 /**
963 * Syncs status information from a file.
964 */
965 void gaim_statuses_load(void);
966
967 /**
968 * Syncs status information to the file.
969 */
970 void gaim_statuses_sync(void);
971 916
972 /*@}*/ 917 /*@}*/
973 918
974 #endif /* _GAIM_STATUS_H_ */ 919 #endif /* _GAIM_STATUS_H_ */