TelepathyGLib.CallContent

g GObject.Object GObject.Object TelepathyGLib.Proxy TelepathyGLib.Proxy GObject.Object->TelepathyGLib.Proxy TelepathyGLib.CallContent TelepathyGLib.CallContent TelepathyGLib.Proxy->TelepathyGLib.CallContent

Subclasses:

None

Methods

Inherited:

TelepathyGLib.Proxy (11), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

get_feature_quark_core ()

class

init_known_interfaces ()

get_disposition ()

get_media_type ()

get_name ()

get_streams ()

remove_async (callback, *user_data)

remove_finish (result)

send_tones_async (tones, cancellable, callback, *user_data)

send_tones_finish (result)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

TelepathyGLib.Proxy (5)

Name

Type

Flags

Short Description

channel

TelepathyGLib.CallChannel

r/w/co

The channel of this content

connection

TelepathyGLib.Connection

r/w/co

The connection of this content

disposition

int

r

The disposition of this content

media-type

int

r

The media type of this content

name

str

r

The name of this content, if any

streams

GLib.PtrArray

r

The streams of this content

Signals

Inherited:

TelepathyGLib.Proxy (2), GObject.Object (1)

Name

Short Description

removed

The ::removed signal is emitted when self is removed from a TelepathyGLib.CallChannel.

streams-added

The ::streams-added signal is emitted whenever TelepathyGLib.CallStream are added to self.

streams-removed

The ::streams-removed signal is emitted whenever TelepathyGLib.CallStreams are removed from self.

Fields

Inherited:

TelepathyGLib.Proxy (2), GObject.Object (1)

Name

Type

Access

Description

parent

TelepathyGLib.Proxy

r

Class Details

class TelepathyGLib.CallContent(**kwargs)
Bases:

TelepathyGLib.Proxy

Abstract:

No

Structure:

TelepathyGLib.CallContentClass

Data structure representing a TelepathyGLib.CallContent.

New in version 0.17.5.

classmethod get_feature_quark_core()
Return type:

int

classmethod init_known_interfaces()

Ensure that the known interfaces for TelepathyGLib.CallContent have been set up. This is done automatically when necessary, but for correct overriding of library interfaces by local extensions, you should call this function before calling tp_proxy_or_subclass_hook_on_interface_add() with first argument %TP_TYPE_CALL_CONTENT.

New in version 0.17.5.

get_disposition()
Returns:

the value of TelepathyGLib.CallContent :disposition

Return type:

TelepathyGLib.CallContentDisposition

New in version 0.17.5.

get_media_type()
Returns:

the value of TelepathyGLib.CallContent :name

Return type:

TelepathyGLib.MediaStreamType

New in version 0.17.5.

get_name()
Returns:

the value of TelepathyGLib.CallContent :name

Return type:

str

New in version 0.17.5.

get_streams()
Returns:

the value of TelepathyGLib.CallContent :streams

Return type:

[TelepathyGLib.CallStream]

New in version 0.17.5.

remove_async(callback, *user_data)
Parameters:

Remove the content from the call. This will cause TelepathyGLib.CallContent ::removed to be emitted.

New in version 0.17.5.

remove_finish(result)
Parameters:

result (Gio.AsyncResult) – a Gio.AsyncResult

Raises:

GLib.Error

Return type:

bool

Finishes TelepathyGLib.CallContent.remove_async().

New in version 0.17.5.

send_tones_async(tones, cancellable, callback, *user_data)
Parameters:

Send tones DTMF code on self content. self must have the TelepathyGLib.IFACE_CALL_CONTENT_INTERFACE_DTMF interface.

If DTMF tones are already being played, this request is queued.

New in version 0.17.5.

send_tones_finish(result)
Parameters:

result (Gio.AsyncResult) – a Gio.AsyncResult

Raises:

GLib.Error

Returns:

True on success, False otherwise.

Return type:

bool

Finishes TelepathyGLib.CallContent.send_tones_async().

New in version 0.17.5.

Signal Details

TelepathyGLib.CallContent.signals.removed(call_content)
Signal Name:

removed

Flags:

RUN_LAST

Parameters:

call_content (TelepathyGLib.CallContent) – The object which received the signal

The ::removed signal is emitted when self is removed from a TelepathyGLib.CallChannel.

New in version 0.17.5.

TelepathyGLib.CallContent.signals.streams_added(call_content, streams)
Signal Name:

streams-added

Flags:

RUN_LAST

Parameters:

The ::streams-added signal is emitted whenever TelepathyGLib.CallStream are added to self.

It is NOT guaranteed that %TP_CALL_STREAM_FEATURE_CORE is prepared on stream objects.

New in version 0.17.5.

TelepathyGLib.CallContent.signals.streams_removed(call_content, streams, reason)
Signal Name:

streams-removed

Flags:

RUN_LAST

Parameters:

The ::streams-removed signal is emitted whenever TelepathyGLib.CallStreams are removed from self.

It is NOT guaranteed that %TP_CALL_STREAM_FEATURE_CORE is prepared on stream objects.

New in version 0.17.5.

Property Details

TelepathyGLib.CallContent.props.channel
Name:

channel

Type:

TelepathyGLib.CallChannel

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The parent TelepathyGLib.CallChannel of the content.

New in version 0.17.6.

TelepathyGLib.CallContent.props.connection
Name:

connection

Type:

TelepathyGLib.Connection

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The TelepathyGLib.Connection of the call.

New in version 0.17.5.

TelepathyGLib.CallContent.props.disposition
Name:

disposition

Type:

int

Default Value:

0

Flags:

READABLE

The disposition of this content, from TelepathyGLib.CallContentDisposition.

New in version 0.17.5.

TelepathyGLib.CallContent.props.media_type
Name:

media-type

Type:

int

Default Value:

0

Flags:

READABLE

The media type of this content, from TelepathyGLib.MediaStreamType.

New in version 0.17.5.

TelepathyGLib.CallContent.props.name
Name:

name

Type:

str

Default Value:

''

Flags:

READABLE

The name of this content.

New in version 0.17.5.

TelepathyGLib.CallContent.props.streams
Name:

streams

Type:

GLib.PtrArray

Default Value:

None

Flags:

READABLE

GLib.PtrArray of TelepathyGLib.CallStream objects. The list of stream objects that are part of this content.

It is NOT guaranteed that %TP_CALL_STREAM_FEATURE_CORE is prepared on those objects.

New in version 0.17.5.