UnityWebappsService

UnityWebappsService — Unity Webapps Service client bindings.

Synopsis

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);

Description

Client bindings for the Unity Webapps Service daemon.

Details

struct UnityWebappsService

struct UnityWebappsService {
	GObject object;

	UnityWebappsServicePrivate *priv;
};

struct UnityWebappsServiceClass

struct UnityWebappsServiceClass {
	GObjectClass parent_class;
};

unity_webapps_service_new ()

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]

unity_webapps_service_get_connection ()

GDBusConnection *   unity_webapps_service_get_connection
                                                        (UnityWebappsService *service);

Returns the GDBusConnection used by service.

service :

A UnityWebappsService object.

Returns :

The GDBusConnection used by service. [transfer none]

unity_webapps_service_get_proxy ()

GDBusProxy *        unity_webapps_service_get_proxy     (UnityWebappsService *service);

Returns the internal GDBusProxy used by service.

service :

A UnityWebappsService object.

Returns :

The GDBusProxy used by service. [transfer none]

UnityWebappsServiceContextNotifyCallback ()

void                (*UnityWebappsServiceContextNotifyCallback)
                                                        (UnityWebappsService *service,
                                                         const gchar *name,
                                                         gpointer user_data);

unity_webapps_service_on_context_appeared ()

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 service.

user_data :

User supplied data to be passed to callback.

unity_webapps_service_on_context_vanished ()

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 service.

user_data :

User supplied data to be passed to callback.

unity_webapps_service_list_contexts ()

gchar **            unity_webapps_service_list_contexts (UnityWebappsService *service);

Returns a list of context names (unique DBus names), registered with the remote service.

service :

A UnityWebappsService object.

Returns :

A list of context names. [transfer full]

unity_webapps_service_activate_application ()

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).

service :

A UnityWebappsService object.

name :

Application name.

domain :

Applicatoin domain.