| Top |
| UnityWebappsService * | unity_webapps_service_new () |
| GDBusConnection * | unity_webapps_service_get_connection () |
| GDBusProxy * | unity_webapps_service_get_proxy () |
| void | (*UnityWebappsServiceContextNotifyCallback) () |
| void | unity_webapps_service_on_context_appeared () |
| void | unity_webapps_service_on_context_vanished () |
| gchar ** | unity_webapps_service_list_contexts () |
| void | unity_webapps_service_activate_application () |
UnityWebappsService * unity_webapps_service_new ();
Creates a new UnityWebappsService proxy object. If 'com.canonical.Unity.Webapps.Service' is unowned, the daemon will be started following method invocation by this proxy.
GDBusConnection *
unity_webapps_service_get_connection (UnityWebappsService *service);
Returns the GDBusConnection used by service
.
GDBusProxy *
unity_webapps_service_get_proxy (UnityWebappsService *service);
Returns the internal GDBusProxy used by service
.
void (*UnityWebappsServiceContextNotifyCallback) (UnityWebappsService *service,const gchar *name,gpointer user_data);
void unity_webapps_service_on_context_appeared (UnityWebappsService *service,UnityWebappsServiceContextNotifyCallback callback,gpointer user_data);
Registers callback
to be invoked when the "ContextAppeared" signal is emitted from the
remote service instance. This indicates a new application context has come online.
service |
A UnityWebappsService object. |
|
callback |
A callback to be invoked when a new context is registered with |
|
user_data |
User supplied data to be passed to |
void unity_webapps_service_on_context_vanished (UnityWebappsService *service,UnityWebappsServiceContextNotifyCallback callback,gpointer user_data);
Registers callback
to be invoked when the "ContextVanished" signal is emitted from the
remote service instance. This indicates an application context has gone offline.
service |
A UnityWebappsService object. |
|
callback |
A callback to be invoked when a new context is registered with |
|
user_data |
User supplied data to be passed to |
gchar **
unity_webapps_service_list_contexts (UnityWebappsService *service);
Returns a list of context names (unique DBus names), registered with the remote service.
void unity_webapps_service_activate_application (UnityWebappsService *service,const gchar *name,const gchar *domain,const gchar *const *files);
Invokes the ActivateApplication method of the UnityWebappsService object. This will
activate the application uniquely idenfied by the pair (name
, domain
).