QAccessibleClient::Registry

Search for usage in LXR

QAccessibleClient::Registry Class Reference

#include <registry.h>

Inheritance diagram for QAccessibleClient::Registry:

Public Types

enum  EventListener {
  NoEventListeners = 0x0 , Window = 0x1 , Focus = 0x2 , StateChanged = 0x20 ,
  ChildrenChanged = 0x40 , VisibleDataChanged = 0x80 , SelectionChanged = 0x100 , ModelChanged = 0x200 ,
  TextCaretMoved = 0x400 , TextChanged = 0x800 , TextSelectionChanged = 0x1000 , PropertyChanged = 0x2000 ,
  AllEventListeners = 0xffffffff
}
 
typedef QFlags< EventListenerEventListeners
 

Signals

void accessibleDescriptionChanged (const QAccessibleClient::AccessibleObject &object)
 
void accessibleNameChanged (const QAccessibleClient::AccessibleObject &object)
 
void added (const QAccessibleClient::AccessibleObject &object)
 
void childAdded (const QAccessibleClient::AccessibleObject &parent, int childIndex)
 
void childRemoved (const QAccessibleClient::AccessibleObject &parent, int childIndex)
 
void defunct (const QAccessibleClient::AccessibleObject &object)
 
void enabledChanged (bool enabled)
 
void focusChanged (const QAccessibleClient::AccessibleObject &object)
 
void modelChanged (const QAccessibleClient::AccessibleObject &object)
 
void removed (const QAccessibleClient::AccessibleObject &object)
 
void screenReaderEnabledChanged (bool enabled)
 
void selectionChanged (const QAccessibleClient::AccessibleObject &object)
 
void stateChanged (const QAccessibleClient::AccessibleObject &object, const QString &state, bool active)
 
void textCaretMoved (const QAccessibleClient::AccessibleObject &object, int pos)
 
void textChanged (const QAccessibleClient::AccessibleObject &object, const QString &text, int startOffset, int endOffset)
 
void textInserted (const QAccessibleClient::AccessibleObject &object, const QString &text, int startOffset, int endOffset)
 
void textRemoved (const QAccessibleClient::AccessibleObject &object, const QString &text, int startOffset, int endOffset)
 
void textSelectionChanged (const QAccessibleClient::AccessibleObject &object)
 
void visibleDataChanged (const QAccessibleClient::AccessibleObject &object)
 
void windowActivated (const QAccessibleClient::AccessibleObject &object)
 
void windowClosed (const QAccessibleClient::AccessibleObject &object)
 
void windowCreated (const QAccessibleClient::AccessibleObject &object)
 
void windowDeactivated (const QAccessibleClient::AccessibleObject &object)
 
void windowDesktopCreated (const QAccessibleClient::AccessibleObject &object)
 
void windowDesktopDestroyed (const QAccessibleClient::AccessibleObject &object)
 
void windowDestroyed (const QAccessibleClient::AccessibleObject &object)
 
void windowLowered (const QAccessibleClient::AccessibleObject &object)
 
void windowMaximized (const QAccessibleClient::AccessibleObject &object)
 
void windowMinimized (const QAccessibleClient::AccessibleObject &object)
 
void windowMoved (const QAccessibleClient::AccessibleObject &object)
 
void windowRaised (const QAccessibleClient::AccessibleObject &object)
 
void windowReparented (const QAccessibleClient::AccessibleObject &object)
 
void windowResized (const QAccessibleClient::AccessibleObject &object)
 
void windowRestored (const QAccessibleClient::AccessibleObject &object)
 
void windowShaded (const QAccessibleClient::AccessibleObject &object)
 
void windowUnshaded (const QAccessibleClient::AccessibleObject &object)
 

Public Slots

AccessibleObject accessibleFromUrl (const QUrl &url) const
 
QList< AccessibleObjectapplications () const
 
bool isEnabled () const
 
bool isScreenReaderEnabled () const
 
void setEnabled (bool enable)
 
void setScreenReaderEnabled (bool enable)
 
EventListeners subscribedEventListeners () const
 
void subscribeEventListeners (const EventListeners &listeners) const
 

Public Member Functions

 Registry (QObject *parent=nullptr)
 
 ~Registry () override
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
QBindable< QStringbindableObjectName ()
 
bool blockSignals (bool block)
 
const QObjectListchildren () const const
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method) const const
 
bool disconnect (const QObject *receiver, const char *method) const const
 
void dumpObjectInfo () const const
 
void dumpObjectTree () const const
 
QList< QByteArraydynamicPropertyNames () const const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
findChild (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (Qt::FindChildOptions options) const const
 
bool inherits (const char *className) const const
 
void installEventFilter (QObject *filterObj)
 
bool isQuickItemType () const const
 
bool isWidgetType () const const
 
bool isWindowType () const const
 
void killTimer (int id)
 
virtual const QMetaObjectmetaObject () const const
 
void moveToThread (QThread *targetThread)
 
QString objectName () const const
 
void objectNameChanged (const QString &objectName)
 
QObjectparent () const const
 
QVariant property (const char *name) const const
 
 Q_CLASSINFO (Name, Value)
 
 Q_EMIT Q_EMIT
 
 Q_ENUM (...)
 
 Q_ENUM_NS (...)
 
 Q_ENUMS (...)
 
 Q_FLAG (...)
 
 Q_FLAG_NS (...)
 
 Q_FLAGS (...)
 
 Q_GADGET Q_GADGET
 
 Q_GADGET_EXPORT (EXPORT_MACRO)
 
 Q_INTERFACES (...)
 
 Q_INVOKABLE Q_INVOKABLE
 
 Q_MOC_INCLUDE Q_MOC_INCLUDE
 
 Q_NAMESPACE Q_NAMESPACE
 
 Q_NAMESPACE_EXPORT (EXPORT_MACRO)
 
 Q_OBJECT Q_OBJECT
 
 Q_PROPERTY (...)
 
 Q_REVISION Q_REVISION
 
 Q_SET_OBJECT_NAME (Object)
 
 Q_SIGNAL Q_SIGNAL
 
 Q_SIGNALS Q_SIGNALS
 
 Q_SLOT Q_SLOT
 
 Q_SLOTS Q_SLOTS
 
qobject_cast (const QObject *object)
 
qobject_cast (QObject *object)
 
 QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
 
void removeEventFilter (QObject *obj)
 
void setObjectName (const QString &name)
 
void setObjectName (QAnyStringView name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool setProperty (const char *name, QVariant &&value)
 
bool signalsBlocked () const const
 
int startTimer (int interval, Qt::TimerType timerType)
 
int startTimer (std::chrono::milliseconds interval, Qt::TimerType timerType)
 
QThreadthread () const const
 

Additional Inherited Members

- Properties inherited from QObject
 objectName
 
- Static Public Member Functions inherited from QObject
QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, Functor functor)
 
bool disconnect (const QMetaObject::Connection &connection)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
bool disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
- Public Attributes inherited from QObject
typedef QObjectList
 
- Protected Member Functions inherited from QObject
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
bool isSignalConnected (const QMetaMethod &signal) const const
 
int receivers (const char *signal) const const
 
QObjectsender () const const
 
int senderSignalIndex () const const
 
virtual void timerEvent (QTimerEvent *event)
 

Detailed Description

This class represents the global accessibility registry.

It provides information about running applications. All updates of accessible objects will result in signals emitted by this class.

Definition at line 29 of file registry.h.

Member Typedef Documentation

◆ EventListeners

Member Enumeration Documentation

◆ EventListener

This enum describes the different types of events that can be observed.

Enumerator
NoEventListeners 

No event listeners registered or wanted

Window 

Window changes, such as new applications being started

Focus 

Focus listener reacts to focus changes - see signal

See also
focusChanged
StateChanged 

State of the accessible changed - see signal

See also
stateChanged
ChildrenChanged 

Children changed - see signal

See also
childrenChanged
VisibleDataChanged 

Visibility of the accessible changed - see signal

See also
visibleDataChanged
SelectionChanged 

Selection changed - see signal

See also
selectionChanged
ModelChanged 

The model changed - see signal

See also
modelChanged
TextCaretMoved 

The text caret moved its position - see signal

See also
textCaretMoved
TextChanged 

The text changed - see signal

See also
textChanged
TextSelectionChanged 

The text selection changed - see signal

See also
textSelectionChanged
PropertyChanged 

A property changed. See signals

See also
accessibleNameChanged and
accessibleDescriptionChanged
AllEventListeners 

All possible event listeners

Definition at line 38 of file registry.h.

Constructor & Destructor Documentation

◆ Registry()

Registry::Registry ( QObject * parent = nullptr)
explicit

Construct a Registry object with parent as QObject parent.

Definition at line 14 of file registry.cpp.

◆ ~Registry()

Registry::~Registry ( )
override

Destroys this Registry.

Definition at line 20 of file registry.cpp.

Member Function Documentation

◆ accessibleDescriptionChanged

void QAccessibleClient::Registry::accessibleDescriptionChanged ( const QAccessibleClient::AccessibleObject & object)
signal

Emitted when an accessible description changes.

When subscribed to the PropertyChanged EventListener, this signal is emitted whenever the accessible-description property changes its value.

◆ accessibleFromUrl

AccessibleObject Registry::accessibleFromUrl ( const QUrl & url) const
slot

Creates the AccessibleObject for the url.

This can be used to deserialize an AccessibleObject after passing it around as string.

The returned QUrl returns a scheme of "accessibleobject".

Definition at line 60 of file registry.cpp.

◆ accessibleNameChanged

void QAccessibleClient::Registry::accessibleNameChanged ( const QAccessibleClient::AccessibleObject & object)
signal

Emitted when an accessible name changes.

When subscribed to the PropertyChanged EventListener, this signal is emitted whenever the accessible-name property changes its value.

◆ added

void QAccessibleClient::Registry::added ( const QAccessibleClient::AccessibleObject & object)
signal

Emitted if a AccessibleObject is created.

This signal indicates that the AccessibleObject instance was created and is going to be added/attached.

◆ applications

QList< AccessibleObject > Registry::applications ( ) const
slot

List of all currently running applications that expose an accessibility interface.

Definition at line 55 of file registry.cpp.

◆ childAdded

void QAccessibleClient::Registry::childAdded ( const QAccessibleClient::AccessibleObject & parent,
int childIndex )
signal

Notifies about a new AccessibleObject.

The childAdded signal is emitted when a new accessible object is created. This signal depends on the implementation of the server side and is not reliable for all applications. The parameter childIndex is the index of the child that has been added.

See also
AccessibleObject::child(), childRemoved()

◆ childRemoved

void QAccessibleClient::Registry::childRemoved ( const QAccessibleClient::AccessibleObject & parent,
int childIndex )
signal

Notifies that an AccessibleObject has been removed.

The parameter childIndex is the index of the child that has been removed.

See also
AccessibleObject::child(), childAdded()

◆ defunct

void QAccessibleClient::Registry::defunct ( const QAccessibleClient::AccessibleObject & object)
signal

Emitted if a AccessibleObject is marked defunct.

This signal indicates that the AccessibleObject became invalid and does not point any longer to any valid accessible object.

◆ enabledChanged

void QAccessibleClient::Registry::enabledChanged ( bool enabled)
signal

Emitted if the isEnabled state changed.

If the accessibility daemon got enabled or disabled either by us or ny someone else then this signal is emitted.

◆ focusChanged

void QAccessibleClient::Registry::focusChanged ( const QAccessibleClient::AccessibleObject & object)
signal

Emitted when the focus changed.

When subscribed to the Focus EventListener then this signal is emitted every time the focus changes. object is the newly focused AccessibleObject.

◆ isEnabled

bool Registry::isEnabled ( ) const
slot

Returns true if the accessibility stack is enabled.

This means that an atspi registry daemon is running and available as org.a11y.bus at the session dbus. The org.a11y.bus implments the org.a11y.Status dbus interface that offers the IsEnabled property. The isEnabled and setEnabled methods do read/write the boolean value of that org.a11y.Status.IsEnabled dbus property..

Definition at line 25 of file registry.cpp.

◆ isScreenReaderEnabled

bool Registry::isScreenReaderEnabled ( ) const
slot

Returns true if the screen reader is enabled.

This means that there is potentially a screen reader, if installed, that is enabled or disabled. This allows to enable system wide a screen reader with just one switch.

Definition at line 35 of file registry.cpp.

◆ modelChanged

void QAccessibleClient::Registry::modelChanged ( const QAccessibleClient::AccessibleObject & object)
signal

Notifies that the object's table model changed.

◆ removed

void QAccessibleClient::Registry::removed ( const QAccessibleClient::AccessibleObject & object)
signal

Emitted if a AccessibleObject is destroyed.

This signal indicates that the AccessibleObject instance was destroyed and ended its life-time.

◆ screenReaderEnabledChanged

void QAccessibleClient::Registry::screenReaderEnabledChanged ( bool enabled)
signal

Emitted if the isScreenReaderEnabled state changed.

If the screen reader enabled property got enabled or disabled either by us or by someone else then this signal is emitted.

◆ selectionChanged

void QAccessibleClient::Registry::selectionChanged ( const QAccessibleClient::AccessibleObject & object)
signal

Notifies that the object's selection changed.

◆ setEnabled

void Registry::setEnabled ( bool enable)
slot

Activates accessibility when enabled and tells toolkits to provide updates such as focus changes.

Definition at line 30 of file registry.cpp.

◆ setScreenReaderEnabled

void Registry::setScreenReaderEnabled ( bool enable)
slot

Tells the system that a screen reader is enabled.

Definition at line 40 of file registry.cpp.

◆ stateChanged

void QAccessibleClient::Registry::stateChanged ( const QAccessibleClient::AccessibleObject & object,
const QString & state,
bool active )
signal

Notifies about a state change in an object.

The state of object has change. If the state is now set active is true, otherwise the state was removed.

◆ subscribedEventListeners

Registry::EventListeners Registry::subscribedEventListeners ( ) const
slot

Returns the active event listeners.

Definition at line 50 of file registry.cpp.

◆ subscribeEventListeners

void Registry::subscribeEventListeners ( const EventListeners & listeners) const
slot

In order to get notified of changes in accessible applications it is neccessary to subscribe to the listeners that are relevant.

This will unsubscribe all previously subscribed event listeners.

Definition at line 45 of file registry.cpp.

◆ textCaretMoved

void QAccessibleClient::Registry::textCaretMoved ( const QAccessibleClient::AccessibleObject & object,
int pos )
signal

Emitted when the text cared moved.

When subscribed to the TextCaretMoved EventListener then this signal is emitted every time the caret in an accessible object that implements a text-interface (like QLineEdit, QTextArea and QComboBox) moved to another position.

◆ textChanged

void QAccessibleClient::Registry::textChanged ( const QAccessibleClient::AccessibleObject & object,
const QString & text,
int startOffset,
int endOffset )
signal

Emitted when an object's text was changed.

The new text will be text. The change starts at startOffset and goes to endOffset.

See also
textInserted, textRemoved

◆ textInserted

void QAccessibleClient::Registry::textInserted ( const QAccessibleClient::AccessibleObject & object,
const QString & text,
int startOffset,
int endOffset )
signal

Emitted when text was inserted in an object's text.

The new text will be text. The change starts at startOffset and goes to endOffset.

See also
textInserted, textRemoved

◆ textRemoved

void QAccessibleClient::Registry::textRemoved ( const QAccessibleClient::AccessibleObject & object,
const QString & text,
int startOffset,
int endOffset )
signal

Emitted when an object's text was removed.

The removed text will be text, but this string may be emtpy for some implementations. The removal starts at startOffset and goes to endOffset.

See also
textInserted, textRemoved

◆ textSelectionChanged

void QAccessibleClient::Registry::textSelectionChanged ( const QAccessibleClient::AccessibleObject & object)
signal

Emitted when the text selection changed.

When subscribed to the TextSelectionChanged EventListener then this signal is emitted every time the selection in an accessible object that implements a text-interface (like QLineEdit, QTextArea and QComboBox) changed.

◆ visibleDataChanged

void QAccessibleClient::Registry::visibleDataChanged ( const QAccessibleClient::AccessibleObject & object)
signal

Notifies that the object's visible data changed.

◆ windowActivated

void QAccessibleClient::Registry::windowActivated ( const QAccessibleClient::AccessibleObject & object)
signal

Emitted when a window is activated.

◆ windowClosed

void QAccessibleClient::Registry::windowClosed ( const QAccessibleClient::AccessibleObject & object)
signal

Emitted when a window is closed.

◆ windowCreated

void QAccessibleClient::Registry::windowCreated ( const QAccessibleClient::AccessibleObject & object)
signal

Emitted when a window is created.

◆ windowDeactivated

void QAccessibleClient::Registry::windowDeactivated ( const QAccessibleClient::AccessibleObject & object)
signal

Emitted when a window is deactivated.

◆ windowDesktopCreated

void QAccessibleClient::Registry::windowDesktopCreated ( const QAccessibleClient::AccessibleObject & object)
signal

Emitted when a desktop window is created.

◆ windowDesktopDestroyed

void QAccessibleClient::Registry::windowDesktopDestroyed ( const QAccessibleClient::AccessibleObject & object)
signal

Emitted when a desktop window is destroyed.

◆ windowDestroyed

void QAccessibleClient::Registry::windowDestroyed ( const QAccessibleClient::AccessibleObject & object)
signal

Emitted when a window is destroyed.

◆ windowLowered

void QAccessibleClient::Registry::windowLowered ( const QAccessibleClient::AccessibleObject & object)
signal

Emitted when a window is lowered.

◆ windowMaximized

void QAccessibleClient::Registry::windowMaximized ( const QAccessibleClient::AccessibleObject & object)
signal

Emitted when a window is maximized.

◆ windowMinimized

void QAccessibleClient::Registry::windowMinimized ( const QAccessibleClient::AccessibleObject & object)
signal

Emitted when a window is minimized.

◆ windowMoved

void QAccessibleClient::Registry::windowMoved ( const QAccessibleClient::AccessibleObject & object)
signal

Emitted when a window is moved.

◆ windowRaised

void QAccessibleClient::Registry::windowRaised ( const QAccessibleClient::AccessibleObject & object)
signal

Emitted when a window is raised.

◆ windowReparented

void QAccessibleClient::Registry::windowReparented ( const QAccessibleClient::AccessibleObject & object)
signal

Emitted when a window is reparented.

◆ windowResized

void QAccessibleClient::Registry::windowResized ( const QAccessibleClient::AccessibleObject & object)
signal

Emitted when a window is resized.

◆ windowRestored

void QAccessibleClient::Registry::windowRestored ( const QAccessibleClient::AccessibleObject & object)
signal

Emitted when a window is restored to normal size.

◆ windowShaded

void QAccessibleClient::Registry::windowShaded ( const QAccessibleClient::AccessibleObject & object)
signal

Emitted when a window is shaded.

◆ windowUnshaded

void QAccessibleClient::Registry::windowUnshaded ( const QAccessibleClient::AccessibleObject & object)
signal

Emitted when a window is unshaded.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:15:32 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.