Package dtk :: Package ui :: Module unique_service :: Class UniqueService

Class UniqueService

source code


This class implement a dbus interface, which is used to ensure that the program or service is unique in the system.

Instance Methods
 
__init__(self, bus_name, app_dbus_name, app_object_name, unique_callback=None)
Initialise the class.
source code

Inherited from dbus.service.Object: Introspect, __dbus_object_path__, __repr__, __str__, add_to_connection, connection, locations, remove_from_connection

Class Variables

Inherited from dbus.service.Object: SUPPORTS_MULTIPLE_CONNECTIONS, SUPPORTS_MULTIPLE_OBJECT_PATHS

Method Details

__init__(self, bus_name, app_dbus_name, app_object_name, unique_callback=None)
(Constructor)

source code 

Initialise the class.

Parameters:
  • bus_name - the public service name of the service.
  • app_dbus_name - the public service name of the service.
  • app_object_name - the public service path of the service.
  • unique_callback - the callback which is invoked when the service is found already start. By default, it's None.
Overrides: dbus.service.Object.__init__