Package dbus :: Module gi_service :: Class ExportedGObject
[hide private]
[frames] | no frames]

Class ExportedGObject

source code

                  object --+    
                           |    
gi._gobject._gobject.GObject --+
                               |
              object --+       |
                       |       |
       service.Interface --+   |
                           |   |
              service.Object --+
                               |
                              ExportedGObject

A GObject which is exported on the D-Bus.
Instance Methods [hide private]
 
__init__(self, conn=None, object_path=None, **kwargs)
Initialize an exported GObject.
source code

Inherited from gi._gobject._gobject.GObject: __copy__, __deepcopy__, __delattr__, __eq__, __gdoc__, __ge__, __gt__, __hash__, __le__, __lt__, __ne__, __new__, __repr__, __setattr__, bind_property, chain, connect, connect_after, connect_object, connect_object_after, disconnect, disconnect_by_func, emit, emit_stop_by_name, freeze_notify, get_data, get_properties, get_property, handler_block, handler_block_by_func, handler_disconnect, handler_is_connected, handler_unblock, handler_unblock_by_func, notify, props, set_data, set_properties, set_property, stop_emission, thaw_notify, weak_ref

Inherited from service.Object: Introspect, __str__, add_to_connection, remove_from_connection

Inherited from service.Object (private): _message_cb, _unregister_cb

Inherited from object: __format__, __getattribute__, __reduce__, __reduce_ex__, __sizeof__, __subclasshook__

Class Variables [hide private]
  __gtype__ = <GType dbus+gi_service+ExportedGObject (167036344)>

Inherited from service.Object: SUPPORTS_MULTIPLE_CONNECTIONS, SUPPORTS_MULTIPLE_OBJECT_PATHS

Inherited from service.Interface (private): _dbus_class_table

Instance Variables [hide private]
Properties [hide private]

Inherited from gi._gobject._gobject.GObject: __grefcount__

Inherited from service.Object: __dbus_object_path__, connection, locations

Inherited from object: __class__

Method Details [hide private]

__init__(self, conn=None, object_path=None, **kwargs)
(Constructor)

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.

Overrides: object.__init__