ServiceProxy
Object Hierarchy:
Description:
[
CCode ( type_id =
"gupnp_service_proxy_get_type ()" ) ]
public class ServiceProxy :
ServiceInfo
This struct contains private data only, and should be accessed using the functions below.
Content:
Properties:
Creation methods:
Methods:
- public bool add_notify (string variable, Type type, ServiceProxyNotifyCallback callback)
Sets up callback
to be called whenever a change
notification for variable
is recieved.
- public bool add_notify_full (string variable, Type type, owned ServiceProxyNotifyCallback callback)
Sets up callback
to be called whenever a change
notification for variable
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 parameters Varargs
to the service exposed by this asynchronously, calling callback
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 the action
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
and
user_data
.
- public bool remove_raw_notify (ServiceProxyNotifyCallback callback)
Cancels the variable change notification for callback
and
user_data
.
- public bool send_action (string action, ...) throws Error
Sends action action
with parameters Varargs
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
- public void set_subscribed (bool subscribed)
(Un)subscribes to this service.
Signals:
Inherited Members:
All known members inherited from class GUPnP.ServiceInfo
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref