Package gwibber :: Package microblog :: Module dispatcher :: Class ConnectionMonitor
[hide private]
[frames] | no frames]

Class ConnectionMonitor

source code

            object --+        
                     |        
dbus.service.Interface --+    
                         |    
       dbus.service.Object --+
                             |
                            ConnectionMonitor

Nested Classes [hide private]

Inherited from dbus.service.Interface: __metaclass__

Instance Methods [hide private]
 
__init__(self)
Constructor. Either conn or bus_name is required; object_path is also required.
source code
 
on_connection_changed(self, state) source code
 
ConnectionOnline(self, *args, **keywords)
 
ConnectionOffline(self, *args, **keywords)
 
isConnected(self) source code

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

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

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]
  __dbus_object_path__ = '/com/gwibber/Connection'
The object-path at which this object is available. Access raises AttributeError if there is no object path, or more than one object path.

Inherited from dbus.service.Object: SUPPORTS_MULTIPLE_CONNECTIONS, SUPPORTS_MULTIPLE_OBJECT_PATHS

Inherited from dbus.service.Interface (private): _dbus_class_table

Properties [hide private]

Inherited from dbus.service.Object: connection, locations

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Constructor. Either conn or bus_name is required; object_path is also required.
Parameters:
  • conn - The connection on which to export this object.

    If None, use the Bus associated with the given bus_name. If there is no bus_name either, the object is not initially available on any Connection.

    For backwards compatibility, if an instance of dbus.service.BusName is passed as the first parameter, this is equivalent to passing its associated Bus as conn, and passing the BusName itself as bus_name.

  • object_path - A D-Bus object path at which to make this Object available immediately. If this is not None, a conn or bus_name must also be provided.
  • bus_name - Represents a well-known name claimed by this process. A reference to the BusName object will be held by this Object, preventing the name from being released during this Object's lifetime (unless it's released manually).
Overrides: object.__init__
(inherited documentation)

ConnectionOnline(self, *args, **keywords)

 
Decorators:
  • @dbus.service.signal("com.Gwibber.Connetion", signature= "u")

ConnectionOffline(self, *args, **keywords)

 
Decorators:
  • @dbus.service.signal("com.Gwibber.Connection", signature= "u")

isConnected(self)

source code 
Decorators:
  • @dbus.service.method("com.Gwibber.Connection")