TelepathyGLib.SimpleObserver¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
class  | 
  | 
class  | 
  | 
class  | 
  | 
Virtual Methods¶
- Inherited:
 
Properties¶
- Inherited:
 
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
w/co  | 
Function called when ObserveChannels is called  | 
||
w/co  | 
function called to destroy the user-data when destroying the observer  | 
||
w/co  | 
Observer.Recover  | 
||
w/co  | 
pointer passed as user-data when ObserveChannels is called  | 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent  | 
r  | 
Class Details¶
- class TelepathyGLib.SimpleObserver(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
Data structure representing a simple Observer implementation.
New in version 0.11.5.
- classmethod new(dbus, recover, name, uniquify, callback, *user_data)¶
 - Parameters:
 dbus (
TelepathyGLib.DBusDaemon) – aTelepathyGLib.DBusDaemonobject, may not beNonerecover (
bool) – the value of the Observer.Recover D-Bus propertyname (
str) – the name of the Observer (seeTelepathyGLib.BaseClient:name: for details)uniquify (
bool) – the value of theTelepathyGLib.BaseClient:uniquify-name: propertycallback (
TelepathyGLib.SimpleObserverObserveChannelsImpl) – the function called when ObserveChannels is calleduser_data (
objectorNone) – arbitrary user-supplied data passed to callback
- Returns:
 - Return type:
 
Convenient function to create a new
TelepathyGLib.SimpleObserverinstance.If dbus is not the result of
TelepathyGLib.DBusDaemon.dup(), you should callTelepathyGLib.SimpleObserver.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.SimpleObserver.new_with_am() instead.
- classmethod new_with_am(account_manager, recover, name, uniquify, callback, *user_data)¶
 - Parameters:
 account_manager (
TelepathyGLib.AccountManager) – an account manager, which may not beNonerecover (
bool) – the value of the Observer.Recover D-Bus propertyname (
str) – the name of the Observer (seeTelepathyGLib.BaseClient:name: for details)uniquify (
bool) – the value of theTelepathyGLib.BaseClient:uniquify-name: propertycallback (
TelepathyGLib.SimpleObserverObserveChannelsImpl) – the function called when ObserveChannels is calleduser_data (
objectorNone) – arbitrary user-supplied data passed to callback
- Returns:
 - Return type:
 
Convenient function to create a new
TelepathyGLib.SimpleObserverinstance 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, recover, name, uniquify, callback, *user_data)¶
 - Parameters:
 factory (
TelepathyGLib.SimpleClientFactory) – aTelepathyGLib.SimpleClientFactory, which may not beNonerecover (
bool) – the value of the Observer.Recover D-Bus propertyname (
str) – the name of the Observer (seeTelepathyGLib.BaseClient:name: for details)uniquify (
bool) – the value of theTelepathyGLib.BaseClient:uniquify-name: propertycallback (
TelepathyGLib.SimpleObserverObserveChannelsImpl) – the function called when ObserveChannels is calleduser_data (
objectorNone) – arbitrary user-supplied data passed to callback
- Returns:
 - Return type:
 
Convenient function to create a new
TelepathyGLib.SimpleObserverinstance with a specifiedTelepathyGLib.SimpleClientFactory.New in version 0.15.5.
Property Details¶
- TelepathyGLib.SimpleObserver.props.callback¶
 - Name:
 callback- Type:
 - Default Value:
 - Flags:
 
The
TelepathyGLib.SimpleObserverObserveChannelsImplcallback 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:
 - Default Value:
 - Flags:
 
The
GLib.DestroyNotifyfunction called to free the user-data pointer when theTelepathyGLib.SimpleObserveris destroyed.New in version 0.11.5.
- TelepathyGLib.SimpleObserver.props.recover¶
 - Name:
 recover- Type:
 - Default Value:
 - Flags:
 
The value of the Observer.Recover D-Bus property.
New in version 0.11.5.
- TelepathyGLib.SimpleObserver.props.user_data¶
 - Name:
 user-data- Type:
 - Default Value:
 - Flags:
 
The user-data pointer passed to the callback implementing the ObserveChannels D-Bus method.
New in version 0.11.5.