ServiceProxy
Object Hierarchy:
Description:
This struct contains private data only, and should be accessed using the functions below.
Namespace: GUPnP
Package: gupnp-1.0
Content:
Properties:
- public bool subscribed { get; set; }
Whether we are subscribed to this service.
Creation methods:
- protected ServiceProxy ()
Methods:
- public bool add_notify (string variable, Type type, ServiceProxyNotifyCallback callback)
Sets up
callback
to be called whenever a change notification forvariable
is recieved. - public bool add_notify_full (string variable, Type type, owned ServiceProxyNotifyCallback callback)
Sets up
callback
to be called whenever a change notification forvariable
is recieved. - public bool add_raw_notify (owned ServiceProxyNotifyCallback callback)
Get a notification for anything that happens on the peer.
- public unowned ServiceProxyAction begin_action (string action, ServiceProxyActionCallback callback, ...)
Sends action
action
with parametersVarargs
to the service exposed by this asynchronously, callingcallback
on completion. - public unowned ServiceProxyAction begin_action_list (string action, List<string> in_names, List<Value?> in_values, ServiceProxyActionCallback callback)
A variant of begin_action that takes lists of in-parameter names, types and values.
- public void cancel_action (ServiceProxyAction action)
Cancels
action
, freeing theaction
handle. - public bool end_action (ServiceProxyAction action, ...) throws Error
Retrieves the result of
action
. - public bool end_action_hash (ServiceProxyAction action, HashTable<string,Value*> hash) throws Error
See end_action; this version takes a GenericSet for runtime generated parameter lists.
- public bool end_action_list (ServiceProxyAction action, List<string> out_names, List<Type?> out_types, out List<Value*> out_values) throws Error
A variant of end_action that takes lists of out-parameter names, types and place-holders for values.
- public bool get_subscribed ()
Returns if we are subscribed to this service.
- public bool remove_notify (string variable, ServiceProxyNotifyCallback callback)
Cancels the variable change notification for
callback
anduser_data
. - public bool remove_raw_notify (ServiceProxyNotifyCallback callback)
Cancels the variable change notification for
callback
anduser_data
. - public bool send_action (string action, ...) throws Error
Sends action
action
with parametersVarargs
to the service exposed by this synchronously. - public bool send_action_hash (string action, HashTable<string,Value?> in_hash, HashTable<string,Value*> out_hash) throws Error
See send_action; this version takes a pair of GenericSets for runtime determined parameter lists.
- public bool send_action_list (string action, List<string> in_names, List<unowned Value?> in_values, List<string> out_names, List<Type?> out_types, out List<Value*> out_values) throws Error
The synchronous variant of begin_action_list and end_action_list.
- public void set_subscribed (bool subscribed)
(Un)subscribes to this service.
Signals:
- public virtual signal void subscription_lost (Error reason)
Emitted whenever the subscription to this service has been lost due to an error condition.
Inherited Members:
All known members inherited from class GUPnP.ServiceInfo
All known members inherited from class GLib.Object