| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
_dbus_bindings.Connection --+
|
connection.Connection --+
|
bus.BusConnection --+
|
Bus
A connection to one of three possible standard buses, the SESSION, SYSTEM, or STARTER bus. This class manages shared connections to those buses.
If you're trying to subclass Bus, you may be better off subclassing BusConnection, which doesn't have all this magic.
|
|||
|
Inherited from |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
_shared_instances =
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
|
_connection self._connection == self, for backwards compatibility with earlier dbus-python versions where Bus was not a subclass of Connection. |
|||
|
Inherited from |
|||
|
|||
Constructor, returning an existing instance where appropriate.
The returned instance is actually always an instance of `SessionBus`,
`SystemBus` or `StarterBus`.
:Parameters:
`bus_type` : cls.TYPE_SESSION, cls.TYPE_SYSTEM or cls.TYPE_STARTER
Connect to the appropriate bus
`private` : bool
If true, never return an existing shared instance, but instead
return a private connection.
:Deprecated: since 0.82.3. Use dbus.bus.BusConnection for
private connections.
`mainloop` : dbus.mainloop.NativeMainLoop
The main loop to use. The default is to use the default
main loop if one has been set up, or raise an exception
if none has been.
:Changed: in dbus-python 0.80:
converted from a wrapper around a Connection to a Connection
subclass.
|
|
Deprecated: since 0.80.0 |
|
|
|
|
|
|
|||
_connectionself._connection == self, for backwards compatibility with earlier dbus-python versions where Bus was not a subclass of Connection.
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0beta1 on Fri Jan 18 16:02:40 2008 | http://epydoc.sourceforge.net |