TelepathyGLib.SimpleApprover¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
w/co |
Function called when ApproverChannels is called |
||
w/co |
function called to destroy the user-data when destroying the approver |
||
w/co |
pointer passed as user-data when ApproverChannels is called |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class TelepathyGLib.SimpleApprover(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Data structure representing a simple Approver implementation.
New in version 0.11.5.
- classmethod new(dbus, name, uniquify, callback, *user_data)¶
- Parameters:
dbus (
TelepathyGLib.DBusDaemon
) – aTelepathyGLib.DBusDaemon
object, may not beNone
name (
str
) – the name of the Approver (seeTelepathyGLib.BaseClient
:name
for details)uniquify (
bool
) – the value of theTelepathyGLib.BaseClient
:uniquify-name
propertycallback (
TelepathyGLib.SimpleApproverAddDispatchOperationImpl
) – the function called when AddDispatchOperation is calleduser_data (
object
orNone
) – arbitrary user-supplied data passed to callback
- Returns:
- Return type:
Convenient function to create a new
TelepathyGLib.SimpleApprover
instance.If dbus is not the result of
TelepathyGLib.DBusDaemon.dup
(), you should callTelepathyGLib.SimpleApprover.new_with_am
() instead, so thatTelepathyGLib.Account
,TelepathyGLib.Connection
andTelepathyGLib.Contact
instances can be shared between modules.New in version 0.11.5.
Deprecated since version ???: New code should use
TelepathyGLib.SimpleApprover.new_with_am
() instead.
- classmethod new_with_am(account_manager, name, uniquify, callback, *user_data)¶
- Parameters:
account_manager (
TelepathyGLib.AccountManager
) – an account manager, which may not beNone
name (
str
) – the name of the Approver (seeTelepathyGLib.BaseClient
:name
for details)uniquify (
bool
) – the value of theTelepathyGLib.BaseClient
:uniquify-name
propertycallback (
TelepathyGLib.SimpleApproverAddDispatchOperationImpl
) – the function called when AddDispatchOperation is calleduser_data (
object
orNone
) – arbitrary user-supplied data passed to callback
- Returns:
- Return type:
Convenient function to create a new
TelepathyGLib.SimpleApprover
instance with a specifiedTelepathyGLib.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, name, uniquify, callback, *user_data)¶
- Parameters:
factory (
TelepathyGLib.SimpleClientFactory
) – anTelepathyGLib.SimpleClientFactory
, which may not beNone
name (
str
) – the name of the Approver (seeTelepathyGLib.BaseClient
:name
for details)uniquify (
bool
) – the value of theTelepathyGLib.BaseClient
:uniquify-name
propertycallback (
TelepathyGLib.SimpleApproverAddDispatchOperationImpl
) – the function called when AddDispatchOperation is calleduser_data (
object
orNone
) – arbitrary user-supplied data passed to callback
- Returns:
- Return type:
Convenient function to create a new
TelepathyGLib.SimpleApprover
instance with a specifiedTelepathyGLib.SimpleClientFactory
.New in version 0.15.5.
Property Details¶
- TelepathyGLib.SimpleApprover.props.callback¶
- Name:
callback
- Type:
- Default Value:
- Flags:
The
TelepathyGLib.SimpleApproverAddDispatchOperationImpl
callback implementing the AddDispatchOperation D-Bus method.This property can’t be
None
.New in version 0.11.5.
- TelepathyGLib.SimpleApprover.props.destroy¶
- Name:
destroy
- Type:
- Default Value:
- Flags:
The
GLib.DestroyNotify
function called to freeTelepathyGLib.SimpleApprover
:user-data
when theTelepathyGLib.SimpleApprover
is destroyed.New in version 0.11.5.
- TelepathyGLib.SimpleApprover.props.user_data¶
- Name:
user-data
- Type:
- Default Value:
- Flags:
The user-data pointer passed to
TelepathyGLib.SimpleApprover
:callback
.New in version 0.11.5.