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.RootDeviceallows for implementing root devices.- classmethod new(context, description_path, description_folder)¶
- Parameters:
context (
GUPnP.Context) – TheGUPnP.Contextdescription_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.RootDeviceobject, 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.Contextfactory (
GUPnP.ResourceFactory) – AGUPnP.ResourceFactorydescription_doc (
GUPnP.XMLDoc) – Device description document, orNonedescription_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.RootDeviceobject.- 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.ResourceGroupof self.- Return type:
Gets the
GSSDP.ResourceGroupused 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.