diff options
author | Ted Gould <ted@canonical.com> | 2009-01-29 13:39:31 -0600 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-01-29 13:39:31 -0600 |
commit | 17bc0dab5a61d41e1a57755f7b2d1cdbe79e90da (patch) | |
tree | 76b90fa38c10ef625c86d2bf88bc10dd2014ccae /libindicate/listener.h | |
parent | b6c14253a035bdf06b1b84a1a6ccd04e87ae23b5 (diff) | |
parent | de80300e02efb93d3cf4bd06733dd8c691451de6 (diff) | |
download | libayatana-indicator-17bc0dab5a61d41e1a57755f7b2d1cdbe79e90da.tar.gz libayatana-indicator-17bc0dab5a61d41e1a57755f7b2d1cdbe79e90da.tar.bz2 libayatana-indicator-17bc0dab5a61d41e1a57755f7b2d1cdbe79e90da.zip |
* Fixing the handling of named DBus connections
* Moving most of the data in the objects to private sections
* Making the signal names defines for easier usage
* Having property changes actually work now.
Diffstat (limited to 'libindicate/listener.h')
-rw-r--r-- | libindicate/listener.h | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/libindicate/listener.h b/libindicate/listener.h index 511cdd3..bc2332f 100644 --- a/libindicate/listener.h +++ b/libindicate/listener.h @@ -5,8 +5,6 @@ #include <glib.h> #include <glib-object.h> -#include <dbus/dbus-glib.h> - #include "indicator.h" #include "server.h" @@ -20,24 +18,21 @@ G_BEGIN_DECLS #define INDICATE_IS_LISTENER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), INDICATE_TYPE_LISTENER)) #define INDICATE_LISTENER_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS((object), INDICATE_TYPE_LISTENER, IndicateListenerClass)) +#define INDICATE_LISTENER_SIGNAL_INDICATOR_ADDED "indicator-added" +#define INDICATE_LISTENER_SIGNAL_INDICATOR_REMOVED "indicator-removed" +#define INDICATE_LISTENER_SIGNAL_INDICATOR_MODIFIED "indicator-modified" +#define INDICATE_LISTENER_SIGNAL_SERVER_ADDED "server-added" +#define INDICATE_LISTENER_SIGNAL_SERVER_REMOVED "server-removed" + +#define INDICATE_LISTENER_SERVER_DBUS_NAME(server) ((gchar *)server) +#define INDICATE_LISTENER_INDICATOR_ID(indicator) (GPOINTER_TO_UINT(indicator)) + typedef gchar IndicateListenerServer; typedef guint IndicateListenerIndicator; typedef struct _IndicateListener IndicateListener; struct _IndicateListener { GObject parent; - - DBusGConnection * session_bus; - DBusGConnection * system_bus; - - DBusGProxy * dbus_proxy_session; - DBusGProxy * dbus_proxy_system; - - GHashTable * proxies_working; - GHashTable * proxies_possible; - - GArray * proxy_todo; - guint todo_idle; }; typedef struct _IndicateListenerClass IndicateListenerClass; |