GUPnP.ServiceIntrospection¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
w/co |
Pointer to SCPD |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class GUPnP.ServiceIntrospection(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Introspection of local and remote services..
The
GUPnP.ServiceIntrospection
class provides methods for service introspection based on information contained in its service description document (SCPD). There is no constructor provided for this class, please use [method`GUPnP`.ServiceInfo.introspect_async] to create aGUPnP.ServiceIntrospection
object for a specific service.Note that all the introspection information is retrieved from the service description document (SCPD) provided by the service and hence can not be guaranteed to be complete. An UPnP service is required to provide a SCPD but unfortunately, many services either do not provide this document or the document does not provide any or all of the introspection information.
This class exposes internals of the UPnP protocol and should not need to be used for regular device or control point development.
- get_action(action_name)¶
- Parameters:
action_name (
str
) – The name of the action to retrieve- Returns:
the action or
None
. Do not modify or free it.- Return type:
Returns the action by the name action_name in this service.
- get_state_variable(variable_name)¶
- Parameters:
variable_name (
str
) – The name of the variable to retrieve- Returns:
the state variable or
None
. Do not modify or free it.- Return type:
Returns the state variable by the name variable_name in this service.
- list_action_names()¶
- Returns:
A
GLib.List
of names of all the actions orNone
. Do not modify or free it or its contents.- Return type:
[
str
]
Returns a
GLib.List
of names of all the actions in this service.
- list_actions()¶
- Returns:
A
GLib.List
of all the actions orNone
. Do not modify or free it or its contents.- Return type:
Returns a
GLib.List
of all the actions (of typeGUPnP.ServiceActionInfo
) in this service.
- list_state_variable_names()¶
- Returns:
A
GLib.List
of names of all the state variables orNone
. Do not modify or free it or its contents.- Return type:
[
str
]
Returns a
GLib.List
of names of all the state variables in this service.
- list_state_variables()¶
- Returns:
A
GLib.List
of all the state variables orNone
. Do not modify or free it or its contents.- Return type:
Returns a
GLib.List
of all the state variables (of typeGUPnP.ServiceStateVariableInfo
) in this service.
Property Details¶
- GUPnP.ServiceIntrospection.props.scpd¶
- Name:
scpd
- Type:
- Default Value:
- Flags:
The scpd of the device description file.