GUPnP.ServiceInfo¶
- Subclasses:
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
The |
||
w/co |
The XML document related to this service |
||
w/co |
The XML element related to this device |
||
r/w/co |
The location of the device description file |
||
r/w/co |
The service type |
||
r/w/co |
The UDN of the containing device |
||
r/w/co |
The URL base |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class GUPnP.ServiceInfo(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
Service information shared by local and remote services.
A class that contains the common parts between local and remote services.
- get_context()¶
- Returns:
- Return type:
Get the
GUPnP.Context
associated with self.
- get_id()¶
-
Get the serviceID of this service, or
None
if there is no ID.The serviceID should be unique to a device. This makes it possible to provide the same serviceType multiple times on one device
Example:
org:serviceId:RenderingControl
- get_location()¶
- Returns:
A constant string.
- Return type:
Get the location of the device description file.
- get_service_type()¶
- Returns:
A constant string.
- Return type:
Get the UPnP service type, or
None
.Example:
urn:schemas-upnp-org:service:RenderingControl:1
- get_udn()¶
- Returns:
A constant string.
- Return type:
Get the Unique Device Name of the containing device.
- get_url_base()¶
- Returns:
A constant #SoupURI.
- Return type:
Get the URL base of this service.
- introspect_async(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
that can be used to cancel the call.callback (
Gio.AsyncReadyCallback
orNone
) – callback to be called when introspection object is ready.user_data (
object
orNone
) – user_data to be passed to the callback.
Note that introspection object is created from the information in service description document (SCPD) provided by the service so it can not be created if the service does not provide a SCPD.
If cancellable is used to cancel the call, callback will be called with error code
Gio.IOErrorEnum.CANCELLED
.New in version 1.2.2.
- introspect_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – AGio.AsyncResult
- Raises:
- Returns:
None
, if the call had an error, aGUPnP.ServiceIntrospection
object otherwise.- Return type:
Finish an asynchronous call initiated with
GUPnP.ServiceInfo.introspect_async
().New in version 1.2.2.
Property Details¶
- GUPnP.ServiceInfo.props.context¶
- Name:
context
- Type:
- Default Value:
- Flags:
The
GUPnP.Context
to use.
- GUPnP.ServiceInfo.props.document¶
- Name:
document
- Type:
- Default Value:
- Flags:
Private property.
- GUPnP.ServiceInfo.props.element¶
- Name:
element
- Type:
- Default Value:
- Flags:
Private property.
- GUPnP.ServiceInfo.props.location¶
- Name:
location
- Type:
- Default Value:
- Flags:
The location of the device description file.
- GUPnP.ServiceInfo.props.service_type¶
- Name:
service-type
- Type:
- Default Value:
- Flags:
The service type.
- GUPnP.ServiceInfo.props.udn¶
- Name:
udn
- Type:
- Default Value:
- Flags:
The UDN of the containing device.