diff options
author | Ted Gould <ted@canonical.com> | 2009-01-09 16:12:45 -0600 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-01-09 16:12:45 -0600 |
commit | f8ca55562f8b06ac5358cc54ffd1b272db7110de (patch) | |
tree | bf3d5aac55d6682b9e251b6775b7c45a0064bf96 /libindicate/server.h | |
parent | 5ed10dfc4cb460190959667a93846c6c091b4b0b (diff) | |
download | libayatana-indicator-f8ca55562f8b06ac5358cc54ffd1b272db7110de.tar.gz libayatana-indicator-f8ca55562f8b06ac5358cc54ffd1b272db7110de.tar.bz2 libayatana-indicator-f8ca55562f8b06ac5358cc54ffd1b272db7110de.zip |
Fleshing out the server some in adding function and prototypes.
Diffstat (limited to 'libindicate/server.h')
-rw-r--r-- | libindicate/server.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libindicate/server.h b/libindicate/server.h index 28529dd..19a92a4 100644 --- a/libindicate/server.h +++ b/libindicate/server.h @@ -5,6 +5,8 @@ #include <glib.h> #include <glib-object.h> +#include "indicator.h" + /* Boilerplate */ #define INDICATE_TYPE_SERVER (indicate_server_get_type ()) #define INDICATE_SERVER(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), INDICATE_TYPE_SERVER, IndicateServer)) @@ -17,6 +19,8 @@ typedef struct _IndicateServer IndicateServer; struct _IndicateServer { GObject parent; + gchar * path; + GSList * indicators; }; typedef struct _IndicateServerClass IndicateServerClass; @@ -51,6 +55,9 @@ void indicate_server_set_desktop_file (const gchar * path); void indicate_server_show (IndicateServer * server); void indicate_server_hide (IndicateServer * server); +void indicator_server_add_indicator (IndicateServer * server, IndicateIndicator * indicator); +void indicator_server_remove_indicator (IndicateServer * server, IndicateIndicator * indicator); + /* DBus API */ gboolean indicate_server_get_desktop (IndicateServer * server, gchar ** desktop_path, GError **error); gboolean indicate_server_get_indicator_count (IndicateServer * server, guint * count, GError **error); |