• Modules
  • AtSpiAdaptor
  • Contents

    AtSpiAdaptor Class Reference

    AtSpiAdaptor is the main class to forward between QAccessibleInterface and AT-SPI DBus More...

        #include <AtSpiAdaptor>

    Public Functions

    AtSpiAdaptor ( DBusConnection * connection, QObject * parent = 0 )
    ~AtSpiAdaptor ()
    bool handleMessage ( const QDBusMessage & message, const QDBusConnection & connection )
    QString introspect ( const QString & path ) const
    void notify ( int reason, QAccessibleInterface * interface, int child )
    void registerApplication ()
    void setInitialized ( bool init )

    Public Slots

    void eventListenerDeregistered ( const QString & bus, const QString & path )
    void eventListenerRegistered ( const QString & bus, const QString & path )
    void windowActivated ( QObject * window, bool active )

    Detailed Description

    AtSpiAdaptor is the main class to forward between QAccessibleInterface and AT-SPI DBus

    AtSpiAdaptor implements the functions specified in all at-spi interfaces. It sends notifications comming from Qt via dbus and listens to incoming dbus requests.

    Member Function Documentation

    AtSpiAdaptor::AtSpiAdaptor ( DBusConnection * connection, QObject * parent = 0 )

    AtSpiAdaptor::~AtSpiAdaptor ()

    void AtSpiAdaptor::eventListenerDeregistered ( const QString & bus, const QString & path ) [slot]

    void AtSpiAdaptor::eventListenerRegistered ( const QString & bus, const QString & path ) [slot]

    bool AtSpiAdaptor::handleMessage ( const QDBusMessage & message, const QDBusConnection & connection )

    Handle incoming DBus message. This function dispatches the dbus message to the right interface handler.

    QString AtSpiAdaptor::introspect ( const QString & path ) const

    Provide DBus introspection.

    void AtSpiAdaptor::notify ( int reason, QAccessibleInterface * interface, int child )

    This function gets called when Qt notifies about accessibility updates.

    void AtSpiAdaptor::registerApplication ()

    Register this application as accessible on the accessibility DBus.

    void AtSpiAdaptor::setInitialized ( bool init )

    When initialized we will send updates, not before this.

    This function also checks which event listeners are registered in the at-spi registry.

    void AtSpiAdaptor::windowActivated ( QObject * window, bool active ) [slot]

    This slot needs to get called when a window has be activated or deactivated (become focused). When active is true, the window just received focus, otherwise it lost the focus.