GUPnPAV.DIDLLiteParser

g GObject.Object GObject.Object GUPnPAV.DIDLLiteParser GUPnPAV.DIDLLiteParser GObject.Object->GUPnPAV.DIDLLiteParser

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

parse_didl (didl)

Virtual Methods

Inherited:

GObject.Object (7)

do_container_available (container)

do_item_available (item)

do_object_available (object)

Properties

None

Signals

Inherited:

GObject.Object (1)

Name

Short Description

container-available

The ::container-available signal is emitted each time a container is found in the DIDL-Lite XML being parsed.

item-available

The ::item-available signal is emitted each time an item is found in the DIDL-Lite XML being parsed.

object-available

The ::object-available signal is emitted each time an object is found in the DIDL-Lite XML being parsed.

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class GUPnPAV.DIDLLiteParser(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

GUPnPAV.DIDLLiteParserClass

classmethod new()
Returns:

A new GUPnPAV.DIDLLiteParser object.

Return type:

GUPnPAV.DIDLLiteParser

parse_didl(didl)
Parameters:

didl (str) – The DIDL-Lite XML string to be parsed

Raises:

GLib.Error

Returns:

True on success.

Return type:

bool

Parses DIDL-Lite XML string didl, emitting the ::object-available, ::item-available and ::container-available signals appropriately during the process.

do_container_available(container) virtual
Parameters:

container (GUPnPAV.DIDLLiteContainer) –

do_item_available(item) virtual
Parameters:

item (GUPnPAV.DIDLLiteItem) –

do_object_available(object) virtual
Parameters:

object (GUPnPAV.DIDLLiteObject) –

Signal Details

GUPnPAV.DIDLLiteParser.signals.container_available(d_i_d_l_lite_parser, container)
Signal Name:

container-available

Flags:

RUN_LAST

Parameters:

The ::container-available signal is emitted each time a container is found in the DIDL-Lite XML being parsed.

GUPnPAV.DIDLLiteParser.signals.item_available(d_i_d_l_lite_parser, item)
Signal Name:

item-available

Flags:

RUN_LAST

Parameters:

The ::item-available signal is emitted each time an item is found in the DIDL-Lite XML being parsed.

GUPnPAV.DIDLLiteParser.signals.object_available(d_i_d_l_lite_parser, object)
Signal Name:

object-available

Flags:

RUN_LAST

Parameters:

The ::object-available signal is emitted each time an object is found in the DIDL-Lite XML being parsed.