TelepathyGLib.ObserveChannelsContext

g GObject.Object GObject.Object TelepathyGLib.ObserveChannelsContext TelepathyGLib.ObserveChannelsContext GObject.Object->TelepathyGLib.ObserveChannelsContext

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

accept ()

delay ()

fail (error)

get_requests ()

is_recovering ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

account

TelepathyGLib.Account

r/w/co

The TelepathyGLib.Account that has been passed to ObserveChannels

channels

GLib.PtrArray

r/w/co

The TpChannels that have been passed to ObserveChannels

connection

TelepathyGLib.Connection

r/w/co

The TelepathyGLib.Connection that has been passed to ObserveChannels

dispatch-operation

TelepathyGLib.ChannelDispatchOperation

r/w/co

The TelepathyGLib.ChannelDispatchOperation that has been passed to ObserveChannels

requests

GLib.PtrArray

r/w/co

The TelepathyGLib.ChannelRequest that have been passed to ObserveChannels

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class TelepathyGLib.ObserveChannelsContext(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

TelepathyGLib.ObserveChannelsContextClass

Data structure representing the context of a Observer.ObserveChannels() call.

New in version 0.11.5.

accept()

Called by TelepathyGLib.BaseClientClassObserveChannelsImpl when it’s done so the D-Bus method can return.

New in version 0.11.5.

delay()

Called by TelepathyGLib.BaseClientClassObserveChannelsImpl to indicate that it implements the method in an async way. The caller must take a reference to the TelepathyGLib.ObserveChannelsContext before calling this function, and is responsible for calling either TelepathyGLib.ObserveChannelsContext.accept() or TelepathyGLib.ObserveChannelsContext.fail() later.

New in version 0.11.5.

fail(error)
Parameters:

error (GLib.Error) – the error to return from the method

Called by TelepathyGLib.BaseClientClassObserveChannelsImpl to raise a D-Bus error.

New in version 0.11.5.

get_requests()
Returns:

a newly allocated GLib.List of reffed TelepathyGLib.ChannelRequest.

Return type:

[TelepathyGLib.ChannelRequest]

Return a list of the TelepathyGLib.ChannelRequest which have been satisfied by the channels associated with #self.

New in version 0.13.14.

is_recovering()
Returns:

True for pre-existing channels, False for new channels

Return type:

bool

If this call to ObserveChannels is for channels that already existed before this observer started (because the observer used TelepathyGLib.BaseClient.set_observer_recover()), return True.

In most cases, the result is False.

New in version 0.11.5.

Property Details

TelepathyGLib.ObserveChannelsContext.props.account
Name:

account

Type:

TelepathyGLib.Account

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

A TelepathyGLib.Account object representing the Account that has been passed to ObserveChannels. Read-only except during construction.

This property can’t be None.

New in version 0.11.5.

TelepathyGLib.ObserveChannelsContext.props.channels
Name:

channels

Type:

GLib.PtrArray

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

A GLib.PtrArray containing TelepathyGLib.Channel objects representing the channels that have been passed to ObserveChannels. Read-only except during construction.

This property can’t be None.

New in version 0.11.5.

TelepathyGLib.ObserveChannelsContext.props.connection
Name:

connection

Type:

TelepathyGLib.Connection

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

A TelepathyGLib.Connection object representing the Connection that has been passed to ObserveChannels. Read-only except during construction.

This property can’t be None.

New in version 0.11.5.

TelepathyGLib.ObserveChannelsContext.props.dispatch_operation
Name:

dispatch-operation

Type:

TelepathyGLib.ChannelDispatchOperation

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

A TelepathyGLib.ChannelDispatchOperation object representing the ChannelDispatchOperation that has been passed to ObserveChannels, or None if none has been passed. Read-only except during construction.

New in version 0.11.5.

TelepathyGLib.ObserveChannelsContext.props.requests
Name:

requests

Type:

GLib.PtrArray

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

A GLib.PtrArray containing TelepathyGLib.ChannelRequest objects representing the requests that have been passed to ObserveChannels. Read-only except during construction.

This property can’t be None.

New in version 0.11.5.