![]() |
![]() |
![]() |
libunity-webapps Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
struct UnityWebappsService; struct UnityWebappsServiceClass; UnityWebappsService * unity_webapps_service_new (); GDBusConnection * unity_webapps_service_get_connection (UnityWebappsService *service
); GDBusProxy * unity_webapps_service_get_proxy (UnityWebappsService *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
); void unity_webapps_service_on_context_vanished (UnityWebappsService *service
,UnityWebappsServiceContextNotifyCallback callback
,gpointer user_data
); gchar ** unity_webapps_service_list_contexts (UnityWebappsService *service
); void unity_webapps_service_activate_application (UnityWebappsService *service
,const gchar *name
,const gchar *domain
,const gchar *const *files
);
struct UnityWebappsService { GObject object; UnityWebappsServicePrivate *priv; };
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.
Returns : |
The newly constructed UnityWebappsService objec,tg. [transfer full] |
GDBusConnection * unity_webapps_service_get_connection
(UnityWebappsService *service
);
Returns the GDBusConnection used by service
.
|
A UnityWebappsService object. |
Returns : |
The GDBusConnection used by service . [transfer none]
|
GDBusProxy * unity_webapps_service_get_proxy (UnityWebappsService *service
);
Returns the internal GDBusProxy used by service
.
|
A UnityWebappsService object. |
Returns : |
The GDBusProxy used by service . [transfer none]
|
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.
|
A UnityWebappsService object. |
|
A callback to be invoked when a new context is registered with service . |
|
User supplied data to be passed to callback . |
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.
|
A UnityWebappsService object. |
|
A callback to be invoked when a new context is registered with service . |
|
User supplied data to be passed to callback . |
gchar ** unity_webapps_service_list_contexts (UnityWebappsService *service
);
Returns a list of context names (unique DBus names), registered with the remote service.
|
A UnityWebappsService object. |
Returns : |
A list of context names. [transfer full] |
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
).
|
A UnityWebappsService object. |
|
Application name. |
|
Applicatoin domain. |