TelepathyGLib.SimpleHandler¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
class  | 
  | 
class  | 
  | 
class  | 
  | 
Virtual Methods¶
- Inherited:
 
Properties¶
- Inherited:
 
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
w/co  | 
Handler.BypassApproval  | 
||
w/co  | 
Function called when HandleChannels is called  | 
||
w/co  | 
function called to destroy the user-data when destroying the handler  | 
||
w/co  | 
Requests  | 
||
w/co  | 
pointer passed as user-data when HandleChannels is called  | 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent  | 
r  | 
Class Details¶
- class TelepathyGLib.SimpleHandler(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
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:
 dbus (
TelepathyGLib.DBusDaemon) – aTelepathyGLib.DBusDaemonobject, may not beNonebypass_approval (
bool) – the value of the Handler.BypassApproval D-Bus property (seeTelepathyGLib.BaseClient.set_handler_bypass_approval() for details)requests (
bool) – whether this handler should implement Requests (seeTelepathyGLib.BaseClient.set_handler_request_notification() for details)name (
str) – the name of the Handler (seeTelepathyGLib.BaseClient:namefor details)uniquify (
bool) – the value of theTelepathyGLib.BaseClient:uniquify-namepropertycallback (
TelepathyGLib.SimpleHandlerHandleChannelsImpl) – the function called when HandleChannels is calleduser_data (
objectorNone) – arbitrary user-supplied data passed to callback
- Returns:
 - Return type:
 
Convenient function to create a new
TelepathyGLib.SimpleHandlerinstance.If dbus is not the result of
TelepathyGLib.DBusDaemon.dup(), you should callTelepathyGLib.SimpleHandler.new_with_am() instead, so thatTelepathyGLib.Account,TelepathyGLib.ConnectionandTelepathyGLib.Contactinstances 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:
 account_manager (
TelepathyGLib.AccountManager) – an account manager, which may not beNonebypass_approval (
bool) – the value of the Handler.BypassApproval D-Bus property (seeTelepathyGLib.BaseClient.set_handler_bypass_approval() for details)requests (
bool) – whether this handler should implement Requests (seeTelepathyGLib.BaseClient.set_handler_request_notification() for details)name (
str) – the name of the Handler (seeTelepathyGLib.BaseClient:namefor details)uniquify (
bool) – the value of theTelepathyGLib.BaseClient:uniquify-namepropertycallback (
TelepathyGLib.SimpleHandlerHandleChannelsImpl) – the function called when HandleChannels is calleduser_data (
objectorNone) – arbitrary user-supplied data passed to callback
- Returns:
 - Return type:
 
Convenient function to create a new
TelepathyGLib.SimpleHandlerinstance 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, bypass_approval, requests, name, uniquify, callback, *user_data)¶
 - Parameters:
 factory (
TelepathyGLib.SimpleClientFactory) – aTelepathyGLib.SimpleClientFactory, which may not beNonebypass_approval (
bool) – the value of the Handler.BypassApproval D-Bus property (seeTelepathyGLib.BaseClient.set_handler_bypass_approval() for details)requests (
bool) – whether this handler should implement Requests (seeTelepathyGLib.BaseClient.set_handler_request_notification() for details)name (
str) – the name of the Handler (seeTelepathyGLib.BaseClient:namefor details)uniquify (
bool) – the value of theTelepathyGLib.BaseClient:uniquify-namepropertycallback (
TelepathyGLib.SimpleHandlerHandleChannelsImpl) – the function called when HandleChannels is calleduser_data (
objectorNone) – arbitrary user-supplied data passed to callback
- Returns:
 - Return type:
 
Convenient function to create a new
TelepathyGLib.SimpleHandlerinstance with a specifiedTelepathyGLib.SimpleClientFactory.New in version 0.15.5.
Property Details¶
- TelepathyGLib.SimpleHandler.props.bypass_approval¶
 - Name:
 bypass-approval- Type:
 - Default Value:
 - Flags:
 
The value of the Handler.BypassApproval D-Bus property.
New in version 0.11.6.
- TelepathyGLib.SimpleHandler.props.callback¶
 - Name:
 callback- Type:
 - Default Value:
 - Flags:
 
The
TelepathyGLib.SimpleHandlerHandleChannelsImplcallback 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:
 - Default Value:
 - Flags:
 
The
GLib.DestroyNotifyfunction called to freeTelepathyGLib.SimpleHandler:user-datawhen theTelepathyGLib.SimpleHandleris destroyed.New in version 0.11.6.
- TelepathyGLib.SimpleHandler.props.requests¶
 - Name:
 requests- Type:
 - Default Value:
 - Flags:
 
If
True, the Handler will implement the Requests interfaceNew in version 0.11.6.
- TelepathyGLib.SimpleHandler.props.user_data¶
 - Name:
 user-data- Type:
 - Default Value:
 - Flags:
 
The user-data pointer passed to
TelepathyGLib.SimpleHandler:callback.New in version 0.11.6.