![]() |
![]() |
![]() |
libindicate Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Signals |
#include <indicator.h> IndicateListener; IndicateListenerClass; IndicateListenerIndicator; IndicateListenerServer; void indicate_listener_display (IndicateListener *listener
,IndicateListenerServer *server
,IndicateListenerIndicator *indicator
,guint timestamp
); void indicate_listener_get_property (IndicateListener *listener
,IndicateListenerServer *server
,IndicateListenerIndicator *indicator
,gchar *property
,indicate_listener_get_property_cb callback
,gpointer data
); void (*indicate_listener_get_property_cb) (IndicateListener *listener
,IndicateListenerServer *server
,IndicateListenerIndicator *indicator
,gchar *property
,const gchar *propertydata
,gpointer data
); IndicateListener * indicate_listener_new (void
);
"indicator-added" : Run Last "indicator-modified" : Run Last "indicator-removed" : Run Last "indicator-servers-report" : Run Last "server-added" : Run Last "server-count-changed" : Run Last "server-removed" : Run Last
typedef struct { /* Parent */ GObjectClass parent; /* Signals */ void (* indicator_added) (IndicateListenerServer * server, IndicateListenerIndicator * indicator); void (* indicator_removed) (IndicateListenerServer * server, IndicateListenerIndicator * indicator); void (* indicator_modified) (IndicateListenerServer * server, IndicateListenerIndicator * indicator, gchar * property); void (* server_added) (IndicateListenerServer * server, gchar * type); void (* server_removed) (IndicateListenerServer * server, gchar * type); void (* server_count_changed) (IndicateListenerServer * server, guint count); void (* indicator_servers_report) (void); /* Future Use */ void (*indicate_listener_reserved1)(void); void (*indicate_listener_reserved2)(void); void (*indicate_listener_reserved3)(void); } IndicateListenerClass;
The class has all of the signals that are supplied by the listener about what is happening on the server.
Parent class GObjectClass. | |
Slot for IndicateListener::indicator-added. | |
Slot for IndicateListener::indicator-removed. | |
Slot for IndicateListener::indicator-modified. | |
Slot for IndicateListener::server-added. | |
Slot for IndicateListener::server-removed. | |
Slot for IndicateListener::server-count-changed. | |
Slot for IndicateListener::indicator-servers-report. | |
Reserved for future use | |
Reserved for future use | |
Reserved for future use |
typedef struct { gchar * name; DBusGProxy * proxy; DBusGConnection * connection; gboolean interests[INDICATE_INTEREST_LAST]; gint max_indicators; } IndicateListenerServer;
void indicate_listener_display (IndicateListener *listener
,IndicateListenerServer *server
,IndicateListenerIndicator *indicator
,guint timestamp
);
|
|
|
|
|
|
|
void indicate_listener_get_property (IndicateListener *listener
,IndicateListenerServer *server
,IndicateListenerIndicator *indicator
,gchar *property
,indicate_listener_get_property_cb callback
,gpointer data
);
A function to get a property from an indicator on a server and bring it back locally. This wraps all the hassle of using the DBus API and makes it pretty easy to get properties.
|
The IndicateListener representing the connection |
|
The server that the indicator is on |
|
Which indicator is being queried |
|
Name of the property to get |
|
The callback function to call with the data |
|
Arbitrary data to give the callback |
void (*indicate_listener_get_property_cb) (IndicateListener *listener
,IndicateListenerServer *server
,IndicateListenerIndicator *indicator
,gchar *property
,const gchar *propertydata
,gpointer data
);
|
|
|
|
|
|
|
|
|
|
|
IndicateListener * indicate_listener_new (void
);
Creates a new Listener object. Does not set this to the default listener object.
Returns : |
A new listener object. |
"indicator-added"
signalvoid user_function (IndicateListener *indicatelistener, IndicateListenerServer *arg1, IndicateListenerIndicator *arg2, gpointer user_data) : Run Last
|
the object which received the signal. |
|
|
|
|
|
user data set when the signal handler was connected. |
"indicator-modified"
signalvoid user_function (IndicateListener *indicatelistener, IndicateListenerServer *arg1, IndicateListenerIndicator *arg2, gchar *arg3, gpointer user_data) : Run Last
|
the object which received the signal. |
|
|
|
|
|
|
|
user data set when the signal handler was connected. |
"indicator-removed"
signalvoid user_function (IndicateListener *indicatelistener, IndicateListenerServer *arg1, IndicateListenerIndicator *arg2, gpointer user_data) : Run Last
|
the object which received the signal. |
|
|
|
|
|
user data set when the signal handler was connected. |
"indicator-servers-report"
signalvoid user_function (IndicateListener *indicatelistener, gpointer user_data) : Run Last
|
the object which received the signal. |
|
user data set when the signal handler was connected. |
"server-added"
signalvoid user_function (IndicateListener *indicatelistener, IndicateListenerServer *arg1, gchar *arg2, gpointer user_data) : Run Last
|
the object which received the signal. |
|
|
|
|
|
user data set when the signal handler was connected. |
"server-count-changed"
signalvoid user_function (IndicateListener *indicatelistener, IndicateListenerServer *arg1, guint arg2, gpointer user_data) : Run Last
|
the object which received the signal. |
|
|
|
|
|
user data set when the signal handler was connected. |
"server-removed"
signalvoid user_function (IndicateListener *indicatelistener, IndicateListenerServer *arg1, gchar *arg2, gpointer user_data) : Run Last
|
the object which received the signal. |
|
|
|
|
|
user data set when the signal handler was connected. |