TelepathyGLib.SimpleHandler

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

Subclasses:

None

Methods

Inherited:

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

Structs:

GObject.ObjectClass (5)

class

new (dbus, bypass_approval, requests, name, uniquify, callback, *user_data)

class

new_with_am (account_manager, bypass_approval, requests, name, uniquify, callback, *user_data)

class

new_with_factory (factory, bypass_approval, requests, name, uniquify, callback, *user_data)

Virtual Methods

Inherited:

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

Properties

Inherited:

TelepathyGLib.BaseClient (6)

Name

Type

Flags

Short Description

bypass-approval

bool

w/co

Handler.BypassApproval

callback

int

w/co

Function called when HandleChannels is called

destroy

int

w/co

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

requests

bool

w/co

Requests

user-data

int

w/co

pointer passed as user-data when HandleChannels 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.SimpleHandler(**kwargs)
Bases:

TelepathyGLib.BaseClient

Abstract:

No

Structure:

TelepathyGLib.SimpleHandlerClass

Data structure representing a simple Handler implementation.

New in version 0.11.6.

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

a new TelepathyGLib.SimpleHandler

Return type:

TelepathyGLib.SimpleHandler

Convenient function to create a new TelepathyGLib.SimpleHandler instance.

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

New in version 0.11.6.

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

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

a new TelepathyGLib.SimpleHandler

Return type:

TelepathyGLib.SimpleHandler

Convenient function to create a new TelepathyGLib.SimpleHandler 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, bypass_approval, requests, name, uniquify, callback, *user_data)
Parameters:
Returns:

a new TelepathyGLib.SimpleHandler

Return type:

TelepathyGLib.SimpleHandler

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

New in version 0.15.5.

Property Details

TelepathyGLib.SimpleHandler.props.bypass_approval
Name:

bypass-approval

Type:

bool

Default Value:

False

Flags:

WRITABLE, CONSTRUCT_ONLY

The value of the Handler.BypassApproval D-Bus property.

New in version 0.11.6.

TelepathyGLib.SimpleHandler.props.callback
Name:

callback

Type:

int

Default Value:

None

Flags:

WRITABLE, CONSTRUCT_ONLY

The TelepathyGLib.SimpleHandlerHandleChannelsImpl callback implementing the HandleChannels D-Bus method.

This property can’t be None.

New in version 0.11.6.

TelepathyGLib.SimpleHandler.props.destroy
Name:

destroy

Type:

int

Default Value:

None

Flags:

WRITABLE, CONSTRUCT_ONLY

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

New in version 0.11.6.

TelepathyGLib.SimpleHandler.props.requests
Name:

requests

Type:

bool

Default Value:

False

Flags:

WRITABLE, CONSTRUCT_ONLY

If True, the Handler will implement the Requests interface

New in version 0.11.6.

TelepathyGLib.SimpleHandler.props.user_data
Name:

user-data

Type:

int

Default Value:

None

Flags:

WRITABLE, CONSTRUCT_ONLY

The user-data pointer passed to TelepathyGLib.SimpleHandler :callback.

New in version 0.11.6.