pyLinAcc :: Event :: EventObserver :: Class EventObserver
[hide private]
[frames] | no frames]

Class EventObserver

source code

                      object --+    
                               |    
                        Observer --+
                                   |
Accessibility__POA.EventListener --+
                                   |
                                  EventObserver

Observes all non-keyboard AT-SPI events.

Instance Methods [hide private]
 
register(self, registry, name)
Starts monitoring for the given event.
source code
 
unregister(self, registry, name)
Stops monitoring for the given event.
source code
Accessibility.EventListener
queryInterface(self, repo_id)
Reports that this class only implements the AT-SPI DeviceEventListener interface.
source code
 
notifyEvent(self, event)
Notifies the Manager that an event has occurred.
source code

Inherited from Observer: __init__, clientRef, clientUnref, getClientRefCount, ref, unref

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Instance Variables [hide private]

Inherited from Observer: manager, ref_count

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

register(self, registry, name)

source code 

Starts monitoring for the given event. See Manager.addClient for possible event names.

Parameters:
  • registry (Accessibility.Registry) - Registry on which the listener will be registered
  • name (string) - AT-SPI event name

unregister(self, registry, name)

source code 

Stops monitoring for the given event. See Manager.addClient for possible event names.

Parameters:
  • registry (Accessibility.Registry) - Registry on which the listener will be registered
  • name (string) - AT-SPI event name

queryInterface(self, repo_id)

source code 

Reports that this class only implements the AT-SPI DeviceEventListener interface. Required by AT-SPI.

Parameters:
  • repo_id (string) - Request for an interface
Returns: Accessibility.EventListener
The underlying CORBA object for the device event listener

notifyEvent(self, event)

source code 

Notifies the Manager that an event has occurred. Wraps the raw event object in our Event class to support automatic ref and unref calls. Aborts on any exception indicating the event could not be wrapped.

Parameters:
  • event (Accessibility.Event) - High-level AT-SPI event (anything but keyboard, mouse)