| Top |
| void | indicate_listener_display () |
| void | indicate_listener_get_property () |
| void | (*indicate_listener_get_property_cb) () |
| IndicateListener * | indicate_listener_new () |
| void | indicator-added | Run Last |
| void | indicator-modified | Run Last |
| void | indicator-removed | Run Last |
| void | indicator-servers-report | Run Last |
| void | server-added | Run Last |
| void | server-count-changed | Run Last |
| void | server-removed | Run Last |
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,void (*callback) (IndicateListener * listener, IndicateListenerServer * server, IndicateListenerIndicator * indicator, gchar * property, const gchar * propertydata, gpointer data),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.
listener |
The IndicateListener representing the connection |
|
server |
The server that the indicator is on |
|
indicator |
Which indicator is being queried |
|
property |
Name of the property to get |
|
callback |
The callback function to call with the data |
|
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.
struct IndicateListenerClass {
/* 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);
};
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 {
guint id;
} IndicateListenerIndicator;
A private structure used to identify a specific Indicate Indicator that exists on a IndicateListenerServer. Used as a paramaeter and a signal parameter.
typedef struct {
gchar * name;
GDBusProxy * proxy;
GDBusConnection * connection;
gboolean interests[INDICATE_INTEREST_LAST];
gint max_indicators;
} IndicateListenerServer;
A private structure used to identify a specific Indicate server that exists on the bus. Used as a paramaeter and a signal parameter.
“indicator-added” signalvoid user_function (IndicateListener *indicatelistener, IndicateListenerServer *arg1, IndicateListenerIndicator *arg2, gpointer user_data)
indicatelistener |
the object which received the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“indicator-modified” signalvoid user_function (IndicateListener *indicatelistener, IndicateListenerServer *arg1, IndicateListenerIndicator *arg2, gchar *arg3, gpointer user_data)
indicatelistener |
the object which received the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“indicator-removed” signalvoid user_function (IndicateListener *indicatelistener, IndicateListenerServer *arg1, IndicateListenerIndicator *arg2, gpointer user_data)
indicatelistener |
the object which received the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“indicator-servers-report” signalvoid user_function (IndicateListener *indicatelistener, gpointer user_data)
indicatelistener |
the object which received the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“server-added” signalvoid user_function (IndicateListener *indicatelistener, IndicateListenerServer *arg1, gchar *arg2, gpointer user_data)
indicatelistener |
the object which received the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“server-count-changed” signalvoid user_function (IndicateListener *indicatelistener, IndicateListenerServer *arg1, guint arg2, gpointer user_data)
indicatelistener |
the object which received the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“server-removed” signalvoid user_function (IndicateListener *indicatelistener, IndicateListenerServer *arg1, gchar *arg2, gpointer user_data)
indicatelistener |
the object which received the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last