TelepathyGLib.SimpleObserver

g GObject.Object GObject.Object TelepathyGLib.BaseClient TelepathyGLib.BaseClient GObject.Object->TelepathyGLib.BaseClient TelepathyGLib.SimpleObserver TelepathyGLib.SimpleObserver TelepathyGLib.BaseClient->TelepathyGLib.SimpleObserver

Subclasses:

None

Methods

Inherited:

TelepathyGLib.BaseClient (32), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (dbus, recover, name, uniquify, callback, *user_data)

class

new_with_am (account_manager, recover, name, uniquify, callback, *user_data)

class

new_with_factory (factory, recover, name, uniquify, callback, *user_data)

Virtual Methods

Inherited:

TelepathyGLib.BaseClient (3), GObject.Object (7)

Properties

Inherited:

TelepathyGLib.BaseClient (6)

Name

Type

Flags

Short Description

callback

int

w/co

Function called when ObserveChannels is called

destroy

int

w/co

function called to destroy the user-data when destroying the observer

recover

bool

w/co

Observer.Recover

user-data

int

w/co

pointer passed as user-data when ObserveChannels is called

Signals

Inherited:

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

Fields

Inherited:

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

Name

Type

Access

Description

parent

TelepathyGLib.BaseClient

r

Class Details

class TelepathyGLib.SimpleObserver(**kwargs)
Bases:

TelepathyGLib.BaseClient

Abstract:

No

Structure:

TelepathyGLib.SimpleObserverClass

Data structure representing a simple Observer implementation.

New in version 0.11.5.

classmethod new(dbus, recover, name, uniquify, callback, *user_data)
Parameters:
Returns:

a new TelepathyGLib.SimpleObserver

Return type:

TelepathyGLib.SimpleObserver

Convenient function to create a new TelepathyGLib.SimpleObserver instance.

If dbus is not the result of TelepathyGLib.DBusDaemon.dup(), you should call TelepathyGLib.SimpleObserver.new_with_am() instead, so that TelepathyGLib.Account, TelepathyGLib.Connection and TelepathyGLib.Contact instances can be shared between modules.

New in version 0.11.5.

Deprecated since version ???: New code should use TelepathyGLib.SimpleObserver.new_with_am() instead.

classmethod new_with_am(account_manager, recover, name, uniquify, callback, *user_data)
Parameters:
Returns:

a new TelepathyGLib.SimpleObserver

Return type:

TelepathyGLib.SimpleObserver

Convenient function to create a new TelepathyGLib.SimpleObserver instance with a specified TelepathyGLib.AccountManager.

It is not necessary to prepare any features on account_manager before calling this function.

New in version 0.11.14.

classmethod new_with_factory(factory, recover, name, uniquify, callback, *user_data)
Parameters:
Returns:

a new TelepathyGLib.SimpleObserver

Return type:

TelepathyGLib.SimpleObserver

Convenient function to create a new TelepathyGLib.SimpleObserver instance with a specified TelepathyGLib.SimpleClientFactory.

New in version 0.15.5.

Property Details

TelepathyGLib.SimpleObserver.props.callback
Name:

callback

Type:

int

Default Value:

None

Flags:

WRITABLE, CONSTRUCT_ONLY

The TelepathyGLib.SimpleObserverObserveChannelsImpl callback implementing the ObserveChannels D-Bus method.

This property can’t be None.

New in version 0.11.5.

TelepathyGLib.SimpleObserver.props.destroy
Name:

destroy

Type:

int

Default Value:

None

Flags:

WRITABLE, CONSTRUCT_ONLY

The GLib.DestroyNotify function called to free the user-data pointer when the TelepathyGLib.SimpleObserver is destroyed.

New in version 0.11.5.

TelepathyGLib.SimpleObserver.props.recover
Name:

recover

Type:

bool

Default Value:

False

Flags:

WRITABLE, CONSTRUCT_ONLY

The value of the Observer.Recover D-Bus property.

New in version 0.11.5.

TelepathyGLib.SimpleObserver.props.user_data
Name:

user-data

Type:

int

Default Value:

None

Flags:

WRITABLE, CONSTRUCT_ONLY

The user-data pointer passed to the callback implementing the ObserveChannels D-Bus method.

New in version 0.11.5.