Package common :: Module dbus_support
[hide private]
[frames] | no frames]

Module dbus_support

source code

Classes [hide private]
  SystemBus
A Singleton for the DBus SystemBus
  SessionBus
A Singleton for the D-Bus SessionBus
  MissingArgument
  InvalidArgument
Raised when one of the provided arguments is invalid.
Functions [hide private]
 
get_interface(interface, path, start_service=True)
Get an interface on the current SessionBus.
source code
 
get_notifications_interface(notif=None)
Get the notifications interface
source code
Variables [hide private]
  _GAJIM_ERROR_IFACE = 'org.gajim.dbus.Error'
  bus = dbus.SessionBus()
  supported = False
  system_bus = SystemBus()
  session_bus = SessionBus()

Imports: os, sys, gajim, exceptions, dbus


Function Details [hide private]

get_interface(interface, path, start_service=True)

source code 
Get an interface on the current SessionBus. If the interface isn't running, try to start it first

get_notifications_interface(notif=None)

source code 
Get the notifications interface
Parameters:
  • notif - DesktopNotification instance

Variables Details [hide private]

_GAJIM_ERROR_IFACE

Value:
'org.gajim.dbus.Error'

bus

Value:
dbus.SessionBus()

supported

Value:
False

system_bus

Value:
SystemBus()

session_bus

Value:
SessionBus()