GUPnPAV.DIDLLiteWriter

g GObject.Object GObject.Object GUPnPAV.DIDLLiteWriter GUPnPAV.DIDLLiteWriter GObject.Object->GUPnPAV.DIDLLiteWriter

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (language)

add_container ()

add_descriptor ()

add_item ()

filter (filter)

get_language ()

get_string ()

get_xml_node ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

language

str

r/w/co

The language the DIDL-Lite fragment is in.

xml-node

int

r

The pointer to root node in XML document.

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class GUPnPAV.DIDLLiteWriter(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

GUPnPAV.DIDLLiteWriterClass

classmethod new(language)
Parameters:

language (str or None) – The language the DIDL-Lite fragment is in, or None

Returns:

A new GUPnPAV.DIDLLiteWriter object.

Return type:

GUPnPAV.DIDLLiteWriter

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:

GUPnPAV.DIDLLiteContainer

Creates a new container, attaches it to self and returns it.

add_descriptor()
Returns:

A new GUPnPAV.DIDLLiteDescriptor object. Unref after usage.

Return type:

GUPnPAV.DIDLLiteDescriptor

Creates a new descriptor, attaches it to object and returns it.

add_item()
Returns:

A new GUPnPAV.DIDLLiteItem object. Unref after usage.

Return type:

GUPnPAV.DIDLLiteItem

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()
Returns:

The language of the self, or None.

Return type:

str

Get the language the DIDL-Lite fragment is in.

get_string()
Returns:

The DIDL-Lite XML string, or None. GLib.free after usage.

Return type:

str

Creates a string representation of the DIDL-Lite XML document.

get_xml_node()
Returns:

The pointer to root node in XML document.

Return type:

libxml2.Node

Get the pointer to root node in XML document.

Property Details

GUPnPAV.DIDLLiteWriter.props.language
Name:

language

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The language the DIDL-Lite fragment is in.

GUPnPAV.DIDLLiteWriter.props.xml_node
Name:

xml-node

Type:

int

Default Value:

None

Flags:

READABLE

The pointer to root node in XML document.