GUPnP.ServiceAction¶
Fields¶
None
Methods¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class GUPnP.ServiceAction¶
Opaque structure for holding in-progress action data.
- get_argument_count()¶
- Returns:
The number of IN arguments from the self.
- Return type:
Get the number of IN arguments from the self and return it.
New in version 0.18.0.
- get_locales()¶
-
Get an ordered (preferred first)
GLib.Listof locales preferred by the client. Free list and elements after use.
- get_message()¶
- Returns:
Soup.ServerMessageassociated with self. Unref after using it.- Return type:
Get the
Soup.Messageassociated with self. Mainly intended for applications to be able to read HTTP headers received from clients.New in version 0.14.0.
- get_value(argument, type)¶
- Parameters:
argument (
str) – The name of the argument to retrievetype (
GObject.GType) – The type of argument to retrieve
- Returns:
Value as
GObject.Valueassociated with self.GObject.Value.unset() and g_slice_free() it after usage.- Return type:
Retrieves the value of argument into a
GObject.Valueof type type and returns it. The method exists only and only to satify PyGI, please useGUPnP.ServiceAction.get_value() and ignore this if possible.New in version 0.14.0.
- get_values(arg_names, arg_types)¶
- Parameters:
arg_types ([
GObject.GType]) – AGLib.Listof argument types asGObject.GType
- Returns:
The values as
GLib.ListofGObject.Value. g_list_free() the returned list andGObject.Value.unset() and g_slice_free() each element.- Return type:
A variant of #gupnp_service_action_get that uses
GLib.Listinstead of varargs.New in version 0.14.0.
- return_error(error_code, error_description)¶
- Parameters:
error_code (
int) – The error codeerror_description (
str) – The error description, orNoneif error_code is one ofGUPnP.ControlError.INVALID_ACTION,GUPnP.ControlError.INVALID_ARGS,GUPnP.ControlError.OUT_OF_SYNCorGUPnP.ControlError.ACTION_FAILED, in which case a description is provided automatically.
Return error_code.
- return_success()¶
Return successfully.
New in version 1.4.2.
- set_value(argument, value)¶
- Parameters:
argument (
str) – The name of the return value to retrievevalue (
GObject.Value) – TheGObject.Valueto store the return value
Sets the value of argument to value.
- set_values(arg_names, arg_values)¶
- Parameters:
arg_values ([
GObject.Value]) – TheGLib.Listof values (asGObject.Values) that line up with arg_names.
Sets the specified action return values.
New in version 0.14.0.