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.List
of locales preferred by the client. Free list and elements after use.
- get_message()¶
- Returns:
Soup.ServerMessage
associated with self. Unref after using it.- Return type:
Get the
Soup.Message
associated 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.Value
associated with self.GObject.Value.unset
() and g_slice_free() it after usage.- Return type:
Retrieves the value of argument into a
GObject.Value
of 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.List
of argument types asGObject.GType
- Returns:
The values as
GLib.List
ofGObject.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.List
instead 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, orNone
if error_code is one ofGUPnP.ControlError.INVALID_ACTION
,GUPnP.ControlError.INVALID_ARGS
,GUPnP.ControlError.OUT_OF_SYNC
orGUPnP.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.Value
to store the return value
Sets the value of argument to value.
- set_values(arg_names, arg_values)¶
- Parameters:
arg_values ([
GObject.Value
]) – TheGLib.List
of values (asGObject.Value
s) that line up with arg_names.
Sets the specified action return values.
New in version 0.14.0.