Package dbus :: Module gobject_service
[hide private]
[frames] | no frames]

Module gobject_service

source code

Support code for implementing D-Bus services via GObjects.
Classes [hide private]
  ExportedGObjectType
A metaclass which inherits from both GObjectMeta and dbus.service.InterfaceType. Used as the metaclass for ExportedGObject.
Functions [hide private]
 
ExportedGObject__init__(self, conn=None, object_path=None, **kwargs)
Initialize an exported GObject.
source code
Variables [hide private]
  ExportedGObject__doc__ = 'A GObject which is exported on the D...
  ExportedGObject = ExportedGObjectType('ExportedGObject', (gobj...
Function Details [hide private]

ExportedGObject__init__(self, conn=None, object_path=None, **kwargs)

source code 
Initialize an exported GObject.
Parameters:
  • conn (dbus.connection.Connection) - The D-Bus connection or bus
  • object_path (str) - The object path at which to register this object.
  • bus_name (dbus.service.BusName) - A bus name to be held on behalf of this object, or None.
  • gobject_properties (dict) - GObject properties to be set on the constructed object.

    Any unrecognised keyword arguments will also be interpreted as GObject properties.


Variables Details [hide private]

ExportedGObject__doc__

Value:
'A GObject which is exported on the D-Bus.'

ExportedGObject

Value:
ExportedGObjectType('ExportedGObject', (gobject.GObject, dbus.service.\
Object), {'__init__': ExportedGObject__init__, '__doc__': ExportedGObj\
ect__doc__,})