aboutsummaryrefslogtreecommitdiff
path: root/libindicate
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-04-01 15:23:31 -0500
committerTed Gould <ted@canonical.com>2009-04-01 15:23:31 -0500
commitbae37d985580c258a0244a0a43bd634e2ecb5dd3 (patch)
tree668f2ab556bfad96f69dffbd9db199dc86fa11b5 /libindicate
parente6287abdcb5c67f31ca0fd5c717217d6f885da9f (diff)
downloadlibayatana-indicator-bae37d985580c258a0244a0a43bd634e2ecb5dd3.tar.gz
libayatana-indicator-bae37d985580c258a0244a0a43bd634e2ecb5dd3.tar.bz2
libayatana-indicator-bae37d985580c258a0244a0a43bd634e2ecb5dd3.zip
Change the API so it's more like we're keeping a list of what, and who are interested in. This'll make it easier for us to manage all the DBus nastyness.
Diffstat (limited to 'libindicate')
-rw-r--r--libindicate/server.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/libindicate/server.h b/libindicate/server.h
index d5ba9a6..969e280 100644
--- a/libindicate/server.h
+++ b/libindicate/server.h
@@ -54,7 +54,8 @@ G_BEGIN_DECLS
#define INDICATE_SERVER_SIGNAL_SERVER_SHOW "server-show"
#define INDICATE_SERVER_SIGNAL_SERVER_HIDE "server-hide"
#define INDICATE_SERVER_SIGNAL_SERVER_DISPLAY "server-display"
-#define INDICATE_SERVER_SIGNAL_LISTENER_INTERESTED "listener-interested"
+#define INDICATE_SERVER_SIGNAL_INTEREST_ADDED "interest-added"
+#define INDICATE_SERVER_SIGNAL_INTEREST_REMOVED "interest-removed"
typedef struct _IndicateServer IndicateServer;
struct _IndicateServer {
@@ -72,7 +73,8 @@ struct _IndicateServerClass {
void (* server_show) (IndicateServer * server, gchar * type);
void (* server_hide) (IndicateServer * server, gchar * type);
void (* server_display) (IndicateServer * server);
- void (* listener_interested) (IndicateServer * server, IndicateServerInterests * interests);
+ void (* interest_added) (IndicateServer * server, IndicateServerInterests interest);
+ void (* interest_removed) (IndicateServer * server, IndicateServerInterests interest);
/* Virtual Functions */
gboolean (*get_indicator_count) (IndicateServer * server, guint * count, GError **error);
@@ -119,6 +121,9 @@ void indicate_server_remove_indicator (IndicateServer * server, IndicateIndicato
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);
+
/* DBus API */
gboolean indicate_server_get_indicator_count (IndicateServer * server, guint * count, GError **error);