GUPnPAV.ProtocolInfo

g GObject.Object GObject.Object GUPnPAV.ProtocolInfo GUPnPAV.ProtocolInfo GObject.Object->GUPnPAV.ProtocolInfo

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

class

new_from_string (protocol_info)

get_dlna_conversion ()

get_dlna_flags ()

get_dlna_operation ()

get_dlna_profile ()

get_mime_type ()

get_network ()

get_play_speeds ()

get_protocol ()

is_compatible (info2)

set_dlna_conversion (conversion)

set_dlna_flags (flags)

set_dlna_operation (operation)

set_dlna_profile (profile)

set_mime_type (mime_type)

set_network (network)

set_play_speeds (speeds)

set_protocol (protocol)

to_string ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

dlna-conversion

GUPnPAV.DLNAConversion

r/w/c

The DLNA conversion flags.

dlna-flags

GUPnPAV.DLNAFlags

r/w/c

Various generic DLNA flags.

dlna-operation

GUPnPAV.DLNAOperation

r/w/c

The DLNA operation flags.

dlna-profile

str

r/w

The DLNA profile of this info.

mime-type

str

r/w

The MIME-type of this info.

network

str

r/w

The network this info is associated with.

play-speeds

[str]

r/w

The allowed play speeds on this info in the form of array of strings.

protocol

str

r/w

The protocol of this info.

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class GUPnPAV.ProtocolInfo(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

GUPnPAV.ProtocolInfoClass

classmethod new()
Returns:

A new GUPnPAV.ProtocolInfo object. Unref after usage.

Return type:

GUPnPAV.ProtocolInfo

classmethod new_from_string(protocol_info)
Parameters:

protocol_info (str) – The protocol info string

Raises:

GLib.Error

Returns:

A new GUPnPAV.ProtocolInfo object. Unref after usage.

Return type:

GUPnPAV.ProtocolInfo

Parses the protocol_info string and creates a new GUPnPAV.ProtocolInfo object as a result.

get_dlna_conversion()
Returns:

The DLNA conversion flags.

Return type:

GUPnPAV.DLNAConversion

Get the DLNA conversion flags.

get_dlna_flags()
Returns:

The generic DLNA flags.

Return type:

GUPnPAV.DLNAFlags

Get the gereric DLNA flags.

get_dlna_operation()
Returns:

The DLNA operation flags.

Return type:

GUPnPAV.DLNAOperation

Get the DLNA operation flags.

get_dlna_profile()
Returns:

The DLNA profile of this info or None. This string should not be freed.

Return type:

str or None

Get the DLNA profile of this info.

get_mime_type()
Returns:

The MIME-type of this info or None. This string should not be freed.

Return type:

str or None

Get the MIME-type of this info.

get_network()
Returns:

The network string or None. This string should not be freed.

Return type:

str or None

Get the network this info is associated with.

get_play_speeds()
Returns:

The allowed play speeds as array of strings or None. This return array and it’s content must not be modified or freed.

Return type:

[str] or None

Get the allowed play speeds on this info in the form of array of strings.

get_protocol()
Returns:

The protocol of this info or None. This string should not be freed.

Return type:

str or None

Get the protocol of this info.

is_compatible(info2)
Parameters:

info2 (GUPnPAV.ProtocolInfo) – The second GUPnPAV.ProtocolInfo

Returns:

True if protocol_info is compatible with info, otherwise False.

Return type:

bool

Checks if the given protocolInfo string is compatible with info.

set_dlna_conversion(conversion)
Parameters:

conversion (GUPnPAV.DLNAConversion) – The bitwise OR of one or more DLNA conversion flags

Set the DLNA conversion flags.

set_dlna_flags(flags)
Parameters:

flags (GUPnPAV.DLNAFlags) – The bitwise OR of one or more generic DLNA flags

Set the gereric DLNA flags.

set_dlna_operation(operation)
Parameters:

operation (GUPnPAV.DLNAOperation) – The bitwise OR of one or more DLNA operation flags

Set the DLNA operation flags.

set_dlna_profile(profile)
Parameters:

profile (str) – The DLNA profile string

Set the DLNA profile of this info.

set_mime_type(mime_type)
Parameters:

mime_type (str) – The MIME-type string

Set the MIME-type of this info.

set_network(network)
Parameters:

network (str) – The network string

Set the network this info is associated with.

set_play_speeds(speeds)
Parameters:

speeds (str) – The allowed play speeds

Set the allowed play speeds on this info in the form of array of strings.

set_protocol(protocol)
Parameters:

protocol (str) – The protocol string

Set the protocol of this info.

to_string()
Returns:

String representation of self. GLib.free after usage.

Return type:

str or None

Provides the string representation of self.

Property Details

GUPnPAV.ProtocolInfo.props.dlna_conversion
Name:

dlna-conversion

Type:

GUPnPAV.DLNAConversion

Default Value:

GUPnPAV.DLNAConversion.NONE

Flags:

READABLE, WRITABLE, CONSTRUCT

The DLNA conversion flags.

GUPnPAV.ProtocolInfo.props.dlna_flags
Name:

dlna-flags

Type:

GUPnPAV.DLNAFlags

Default Value:

GUPnPAV.DLNAFlags.NONE

Flags:

READABLE, WRITABLE, CONSTRUCT

Various generic DLNA flags.

GUPnPAV.ProtocolInfo.props.dlna_operation
Name:

dlna-operation

Type:

GUPnPAV.DLNAOperation

Default Value:

GUPnPAV.DLNAOperation.NONE

Flags:

READABLE, WRITABLE, CONSTRUCT

The DLNA operation flags.

GUPnPAV.ProtocolInfo.props.dlna_profile
Name:

dlna-profile

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

The DLNA profile of this info.

GUPnPAV.ProtocolInfo.props.mime_type
Name:

mime-type

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

The MIME-type of this info.

GUPnPAV.ProtocolInfo.props.network
Name:

network

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

The network this info is associated with.

GUPnPAV.ProtocolInfo.props.play_speeds
Name:

play-speeds

Type:

[str]

Default Value:

[]

Flags:

READABLE, WRITABLE

The allowed play speeds on this info in the form of array of strings.

GUPnPAV.ProtocolInfo.props.protocol
Name:

protocol

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

The protocol of this info.