GUPnPAV.DIDLLiteWriter¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
The language the DIDL-Lite fragment is in. |
||
r |
The pointer to root node in XML document. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class GUPnPAV.DIDLLiteWriter(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(language)¶
- Parameters:
language (
str
orNone
) – The language the DIDL-Lite fragment is in, orNone
- Returns:
A new
GUPnPAV.DIDLLiteWriter
object.- Return type:
Note: language should always be set to
None
, DLNA does not support the language parameter.
- add_container()¶
- Returns:
A new
GUPnPAV.DIDLLiteContainer
object. Unref after usage.- Return type:
Creates a new container, attaches it to self and returns it.
- add_descriptor()¶
- Returns:
A new
GUPnPAV.DIDLLiteDescriptor
object. Unref after usage.- Return type:
Creates a new descriptor, attaches it to object and returns it.
- add_item()¶
- Returns:
A new
GUPnPAV.DIDLLiteItem
object. Unref after usage.- Return type:
Creates a new item, attaches it to self and returns it.
- filter(filter)¶
- Parameters:
filter (
str
) – A filter string
Clears the DIDL-Lite XML document of the properties not specified in the filter. The passed filter string would typically come from the ‘Filter’ argument of Browse or Search actions from a ContentDirectory control point. Please refer to Section 2.3.15 of UPnP AV ContentDirectory version 3 specification for details on this string.
- get_language()¶
-
Get the language the DIDL-Lite fragment is in.
- get_string()¶
-
Creates a string representation of the DIDL-Lite XML document.
- get_xml_node()¶
- Returns:
The pointer to root node in XML document.
- Return type:
Get the pointer to root node in XML document.
Property Details¶
- GUPnPAV.DIDLLiteWriter.props.language¶
- Name:
language
- Type:
- Default Value:
- Flags:
The language the DIDL-Lite fragment is in.