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.DBusDaemonobject, may not beNonename (
str) – the name of the Approver (seeTelepathyGLib.BaseClient:namefor details)uniquify (
bool) – the value of theTelepathyGLib.BaseClient:uniquify-namepropertycallback (
TelepathyGLib.SimpleApproverAddDispatchOperationImpl) – the function called when AddDispatchOperation is calleduser_data (
objectorNone) – arbitrary user-supplied data passed to callback
- Returns:
- Return type:
Convenient function to create a new
TelepathyGLib.SimpleApproverinstance.If dbus is not the result of
TelepathyGLib.DBusDaemon.dup(), you should callTelepathyGLib.SimpleApprover.new_with_am() instead, so thatTelepathyGLib.Account,TelepathyGLib.ConnectionandTelepathyGLib.Contactinstances 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 beNonename (
str) – the name of the Approver (seeTelepathyGLib.BaseClient:namefor details)uniquify (
bool) – the value of theTelepathyGLib.BaseClient:uniquify-namepropertycallback (
TelepathyGLib.SimpleApproverAddDispatchOperationImpl) – the function called when AddDispatchOperation is calleduser_data (
objectorNone) – arbitrary user-supplied data passed to callback
- Returns:
- Return type:
Convenient function to create a new
TelepathyGLib.SimpleApproverinstance 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 beNonename (
str) – the name of the Approver (seeTelepathyGLib.BaseClient:namefor details)uniquify (
bool) – the value of theTelepathyGLib.BaseClient:uniquify-namepropertycallback (
TelepathyGLib.SimpleApproverAddDispatchOperationImpl) – the function called when AddDispatchOperation is calleduser_data (
objectorNone) – arbitrary user-supplied data passed to callback
- Returns:
- Return type:
Convenient function to create a new
TelepathyGLib.SimpleApproverinstance with a specifiedTelepathyGLib.SimpleClientFactory.New in version 0.15.5.
Property Details¶
- TelepathyGLib.SimpleApprover.props.callback¶
- Name:
callback- Type:
- Default Value:
- Flags:
The
TelepathyGLib.SimpleApproverAddDispatchOperationImplcallback 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.DestroyNotifyfunction called to freeTelepathyGLib.SimpleApprover:user-datawhen theTelepathyGLib.SimpleApproveris 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.