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

Class Dispatcher

source code

            object --+        
                     |        
dbus.service.Interface --+    
                         |    
       dbus.service.Object --+
                             |
            object --+       |
                     |       |
    threading._Verbose --+   |
                         |   |
          threading.Thread --+
                             |
                            Dispatcher

Nested Classes [hide private]

Inherited from dbus.service.Interface: __metaclass__

Instance Methods [hide private]
 
__init__(self, loop, autorefresh=True)
Constructor. Either conn or bus_name is required; object_path is also required.
source code
 
LoadingComplete(self, *args, **keywords)
 
LoadingStarted(self, *args, **keywords)
 
Refresh(self)
Calls the Gwibber Service to trigger a refresh operation
source code
 
PerformOp(self, opdata) source code
 
SendMessage(self, message)
Posts a message/status update to all accounts with send_enabled = True.
source code
 
Send(self, opdata) source code
 
GetServices(self)
Returns a list of services available as json string
source code
 
GetFeatures(self) source code
 
GetAccounts(self)
Returns a list of accounts as json string
source code
 
Quit(self) source code
 
loading_complete(self, output) source code
 
loading_failed(self, exception, tb) source code
 
send(self, operations) source code
 
refresh(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 threading.Thread: getName, isAlive, isDaemon, is_alive, join, run, setDaemon, setName, start

Inherited from threading.Thread (private): _set_daemon, _set_ident

Inherited from threading._Verbose (private): _note

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

Class Variables [hide private]
  __dbus_object_path__ = '/com/gwibber/Service'
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 threading.Thread: daemon, ident, name

Inherited from object: __class__

Method Details [hide private]

__init__(self, loop, autorefresh=True)
(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)

LoadingComplete(self, *args, **keywords)

 
Decorators:
  • @dbus.service.signal("com.Gwibber.Service")

LoadingStarted(self, *args, **keywords)

 
Decorators:
  • @dbus.service.signal("com.Gwibber.Service")

Refresh(self)

source code 

Calls the Gwibber Service to trigger a refresh operation

Decorators:
  • @dbus.service.method("com.Gwibber.Service")

PerformOp(self, opdata)

source code 
Decorators:
  • @dbus.service.method("com.Gwibber.Service", in_signature= "s")

SendMessage(self, message)

source code 

Posts a message/status update to all accounts with send_enabled = True. It takes one argument, which is a message formated as a string.

Decorators:
  • @dbus.service.method("com.Gwibber.Service", in_signature= "s")

Send(self, opdata)

source code 
Decorators:
  • @dbus.service.method("com.Gwibber.Service", in_signature= "s")

GetServices(self)

source code 

Returns a list of services available as json string

Decorators:
  • @dbus.service.method("com.Gwibber.Service", out_signature= "s")

GetFeatures(self)

source code 
Decorators:
  • @dbus.service.method("com.Gwibber.Service", out_signature= "s")

GetAccounts(self)

source code 

Returns a list of accounts as json string

Decorators:
  • @dbus.service.method("com.Gwibber.Service", out_signature= "s")

Quit(self)

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