GUPnP.RootDevice¶
- Subclasses:
None
Methods¶
- Inherited:
GUPnP.DeviceInfo (28), GObject.Object (37), Gio.Initable (2)
- Structs:
class |
|
class |
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Whether this device is available |
||
r/w/co |
The path to directory where description documents are provided |
||
r/w/co |
The path to device description document |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class GUPnP.RootDevice(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Implementation of an UPnP root device.
GUPnP.RootDevice
allows for implementing root devices.- classmethod new(context, description_path, description_folder)¶
- Parameters:
context (
GUPnP.Context
) – TheGUPnP.Context
description_path (
str
) – Path to device description document. This could either be an absolute path or path relative to description_folder.description_folder (
str
) – Path to directory where description documents are provided.
- Raises:
- Returns:
A new GUPnPRootDevice object.
- Return type:
Create a new
GUPnP.RootDevice
object, automatically loading and parsing device description document from description_path.
- classmethod new_full(context, factory, description_doc, description_path, description_folder)¶
- Parameters:
context (
GUPnP.Context
) – AGUPnP.Context
factory (
GUPnP.ResourceFactory
) – AGUPnP.ResourceFactory
description_doc (
GUPnP.XMLDoc
) – Device description document, orNone
description_path (
str
) – Path to device description document. This could either be an absolute path or path relative to description_dir.description_folder (
str
) – Path to folder where description documents are provided.
- Raises:
- Returns:
A new
GUPnP.RootDevice
object.- Return type:
Create a new
GUPnP.RootDevice
, automatically loading and parsing device description document from description_path if description_doc isNone
.
- get_available()¶
-
Checks whether self is available on the network (announcing its presence).
- get_description_dir()¶
- Returns:
The path to description document directory of self.
- Return type:
Gets the path to the directory containing description documents related to self.
- get_description_document_name()¶
- Returns:
The relative location of self.
- Return type:
Gets the name of the description document as hosted via HTTP.
- get_description_path()¶
- Returns:
The path to device description document of self.
- Return type:
Gets the path to the device description document of self.
- get_ssdp_resource_group()¶
- Returns:
The
GSSDP.ResourceGroup
of self.- Return type:
Gets the
GSSDP.ResourceGroup
used by self.New in version 0.20.0.
Property Details¶
- GUPnP.RootDevice.props.description_dir¶
- Name:
description-dir
- Type:
- Default Value:
- Flags:
The path to a folder where description documents are provided.
- GUPnP.RootDevice.props.description_path¶
- Name:
description-path
- Type:
- Default Value:
- Flags:
The path to device description document. This could either be an absolute path or path relative to
GUPnP.RootDevice
:description-dir
.New in version 0.13.0.