diff options
author | Ted Gould <ted@canonical.com> | 2009-01-14 10:26:09 -0600 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-01-14 10:26:09 -0600 |
commit | 89bf87a36bb6e71b205d1d447d75dc0727065ff0 (patch) | |
tree | 25bc2e9aa7b2f2dc18e9df8cdf9d9e0a97e05026 /libindicate/indicator.h | |
parent | 71820cb18ffb779c39e15e758515c6bcad8ac455 (diff) | |
parent | c14592279f3feaad53e397155ecc515e5623d940 (diff) | |
download | libayatana-indicator-89bf87a36bb6e71b205d1d447d75dc0727065ff0.tar.gz libayatana-indicator-89bf87a36bb6e71b205d1d447d75dc0727065ff0.tar.bz2 libayatana-indicator-89bf87a36bb6e71b205d1d447d75dc0727065ff0.zip |
Merging in code from yesterday. Got many of the functions working with
real IDs and making lists. The basis for all the properties stuff is there
but it still needs a touch of fleshing out. Also a new test for debugging.
Diffstat (limited to 'libindicate/indicator.h')
-rw-r--r-- | libindicate/indicator.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libindicate/indicator.h b/libindicate/indicator.h index 2a15e3b..91f08a7 100644 --- a/libindicate/indicator.h +++ b/libindicate/indicator.h @@ -33,6 +33,7 @@ struct _IndicateIndicator { guint id; gboolean is_visible; IndicateServer * server; + GHashTable * properties; }; struct _IndicateIndicatorClass { @@ -43,6 +44,9 @@ struct _IndicateIndicatorClass { void (*user_display) (IndicateIndicator * indicator, gpointer data); const gchar * (*get_type) (IndicateIndicator * indicator); + void (*set_property) (IndicateIndicator * indicator, const gchar * key, const gchar * data); + const gchar * (*get_property) (IndicateIndicator * indicator, const gchar * key); + GPtrArray * (*list_properties) (IndicateIndicator * indicator); }; GType indicate_indicator_get_type(void) G_GNUC_CONST; @@ -65,6 +69,13 @@ guint indicate_indicator_get_id (IndicateIndicator * indicator); * subclass and exported through this pretty function */ const gchar * indicate_indicator_get_indicator_type (IndicateIndicator * indicator); +void indicate_indicator_user_display (IndicateIndicator * indicator); + +/* Properties handling */ +void indicate_indicator_set_property (IndicateIndicator * indicator, const gchar * key, const gchar * data); +const gchar * indicate_indicator_get_property (IndicateIndicator * indicator, const gchar * key); +GPtrArray * indicate_indicator_list_properties (IndicateIndicator * indicator); + G_END_DECLS #endif /* INDICATE_INDICATOR_H_INCLUDED__ */ |