aboutsummaryrefslogtreecommitdiff
path: root/libindicate/server.h
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-04-01 15:54:55 -0500
committerTed Gould <ted@canonical.com>2009-04-01 15:54:55 -0500
commit58403a8f18f9463ed95446a1ae227fdb97441900 (patch)
tree5a55a281d9fa0b2a4ee6c1cab2c481c56d96ebff /libindicate/server.h
parent966a1e53a3544b748d25a4679a8d085bcd916cbd (diff)
downloadlibayatana-indicator-58403a8f18f9463ed95446a1ae227fdb97441900.tar.gz
libayatana-indicator-58403a8f18f9463ed95446a1ae227fdb97441900.tar.bz2
libayatana-indicator-58403a8f18f9463ed95446a1ae227fdb97441900.zip
Adding new functions show_interest and remove_interest into the API. Now to fill in the backend.
Diffstat (limited to 'libindicate/server.h')
-rw-r--r--libindicate/server.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/libindicate/server.h b/libindicate/server.h
index 969e280..4d6bbc5 100644
--- a/libindicate/server.h
+++ b/libindicate/server.h
@@ -73,8 +73,8 @@ struct _IndicateServerClass {
void (* server_show) (IndicateServer * server, gchar * type);
void (* server_hide) (IndicateServer * server, gchar * type);
void (* server_display) (IndicateServer * server);
- void (* interest_added) (IndicateServer * server, IndicateServerInterests interest);
- void (* interest_removed) (IndicateServer * server, IndicateServerInterests interest);
+ void (* interest_added) (IndicateServer * server, IndicateInterests interest);
+ void (* interest_removed) (IndicateServer * server, IndicateInterests interest);
/* Virtual Functions */
gboolean (*get_indicator_count) (IndicateServer * server, guint * count, GError **error);
@@ -86,6 +86,8 @@ struct _IndicateServerClass {
gboolean (*get_indicator_properties) (IndicateServer * server, guint id, gchar *** properties, GError **error);
gboolean (*show_indicator_to_user) (IndicateServer * server, guint id, GError ** error);
guint (*get_next_id) (IndicateServer * server);
+ gboolean (*show_interest) (IndicateServer * server, IndicateInterests interest);
+ gboolean (*remove_interest) (IndicateServer * server, IndicateInterests interest);
/* Reserver for future use */
void (*indicate_server_reserved1)(void);
@@ -122,7 +124,7 @@ IndicateServer * indicate_server_ref_default (void);
void indicate_server_set_default (IndicateServer * server);
/* Check to see if there is someone, out there, who likes this */
-gboolean indicate_server_check_interest (IndicateServer * server, IndicateServerInterests interest);
+gboolean indicate_server_check_interest (IndicateServer * server, IndicateInterests interest);
/* DBus API */
@@ -134,6 +136,8 @@ gboolean indicate_server_get_indicator_property (IndicateServer * server, guint
gboolean indicate_server_get_indicator_property_group (IndicateServer * server, guint id, GPtrArray * properties, gchar *** value, GError **error);
gboolean indicate_server_get_indicator_properties (IndicateServer * server, guint id, gchar *** properties, GError **error);
gboolean indicate_server_show_indicator_to_user (IndicateServer * server, guint id, GError ** error);
+gboolean indicate_server_show_interest (IndicateServer * server, gchar * interest, GError ** error);
+gboolean indicate_server_remove_interest (IndicateServer * server, gchar * interest, GError ** error);
/* Signal emission functions for sub-classes of the server */
void indicate_server_emit_indicator_added (IndicateServer *server, guint id, const gchar *type);