Top | ![]() |
![]() |
![]() |
![]() |
|
(*HudClientConnectionNewQueryCallback) () |
HudClientConnection * | hud_client_connection_get_ref () |
HudClientConnection * | hud_client_connection_new () |
|
hud_client_connection_new_query () |
const |
hud_client_connection_get_address () |
|
hud_client_connection_connected () |
The connection is an object to maintain a connection to the default objects on the HUD service. It provides access to the functionality there and can be used to create queries.
Most users should not bother with a connection, it will be created by the HudClientQuery if one is not provided. Most usage is for testing and using custom HUD services.
void (*HudClientConnectionNewQueryCallback) (HudClientConnection *connection
,const
,gchar *query_pathconst
,gchar *results_nameconst
,gchar *appstack_name);
gpointer user_data
Callback for the async call to create a new query
connection |
HudClientConnection for the request |
|
query_path |
Path to the query object on DBus |
|
results_name |
DBus name for the results |
|
appstack_name |
DBus name for the appstack |
|
user_data |
Passed in user data |
HudClientConnection *
hud_client_connection_get_ref (void
);
Gets a reference to the default object that connects to the default HUD service.
HudClientConnection * hud_client_connection_new (const
,gchar *dbus_addressconst
);gchar *dbus_path
Builds a HUD Connection object that can be used to connect to a
custom HUD service. For the most part, this should only be used
in testing, though there might be other uses. It is likely if you're
using this function you'd also be interested in
hud_client_query_new_for_connection()
void hud_client_connection_new_query (HudClientConnection *connection
,const
,gchar *queryHudClientConnectionNewQueryCallback cb
,);
gpointer user_data
Function to create a new query in the HUD service and pass back the information needed to create a HudClientQuery object.
constgchar * hud_client_connection_get_address (HudClientConnection *connection
);
Accessor to get the address of the HUD service.
gboolean hud_client_connection_connected (HudClientConnection *connection
);
Accessor to get the connected status of the connection
#define HUD_CLIENT_CONNECTION_SIGNAL_CONNECTION_STATUS "connection-status"
Signal to notify on a change in the connection status
struct HudClientConnectionClass { GObjectClass parent_class; };
Class information for HudClientConnection
struct HudClientConnection;
Object to make a generic connection to a HUD service. For the most part people should just create a HudClientQuery and that'll use the default HUD service. For most folks that should be enough.
typedef struct _HudClientConnectionPrivate HudClientConnectionPrivate;
Private data for HudClientConnection.
“address”
property“address”gchar *
The DBus address of the HUD service we should connect to.
Flags: Read / Write / Construct Only
Default value: "com.canonical.hud"
“connection-status”
signalvoid user_function (HudClientConnection *arg0,gboolean arg1,gpointer user_data)
Called when the connection status changes in some way.
Flags: