UnityWebappsService

UnityWebappsService — Unity Webapps Service client bindings.

Functions

Types and Values

Description

Client bindings for the Unity Webapps Service daemon.

Functions

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 .

Parameters

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 .

Parameters

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.

Parameters

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.

Parameters

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.

Parameters

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

Parameters

service

A UnityWebappsService object.

 

name

Application name.

 

domain

Applicatoin domain.

 

Types and Values

struct UnityWebappsService

struct UnityWebappsService {
	GObject object;

	UnityWebappsServicePrivate *priv;
};

struct UnityWebappsServiceClass

struct UnityWebappsServiceClass {
	GObjectClass parent_class;
};