Qt 4.8
Public Functions | Properties | List of all members
QMultipleHIObjectFactory Class Reference
Inheritance diagram for QMultipleHIObjectFactory:
QInterfaceFactory

Public Functions

QAElement element (int child)
 
QAInterface interface (UInt64 identifier)
 
 QMultipleHIObjectFactory (const QAInterface &interface)
 
void registerChildren ()
 
 ~QMultipleHIObjectFactory ()
 
- Public Functions inherited from QInterfaceFactory
virtual QAElement element (const QAInterface &interface)
 
virtual ~QInterfaceFactory ()
 

Properties

QAInterface m_interface
 
QList< HIObjectRefobjects
 

Detailed Description

Definition at line 860 of file qaccessible_mac.mm.

Constructors and Destructors

◆ QMultipleHIObjectFactory()

QMultipleHIObjectFactory::QMultipleHIObjectFactory ( const QAInterface interface)
inline

Definition at line 863 of file qaccessible_mac.mm.

864  : m_interface(interface)
865  { }

◆ ~QMultipleHIObjectFactory()

QMultipleHIObjectFactory::~QMultipleHIObjectFactory ( )
inline

Definition at line 867 of file qaccessible_mac.mm.

868  {
869  foreach (HIObjectRef object, objects) {
870  CFRelease(object);
871  }
872  }
QList< HIObjectRef > objects
struct OpaqueHIObjectRef * HIObjectRef

Functions

◆ element()

QAElement QMultipleHIObjectFactory::element ( int  child)
inlinevirtual

Implements QInterfaceFactory.

Definition at line 880 of file qaccessible_mac.mm.

881  {
882  if (child == 0)
883  return QAElement(m_interface.hiObject(), 0);
884 
885  if (child > objects.count())
886  return QAElement();
887 
888  return QAElement(objects.at(child - 1), child);
889  }
HIObjectRef hiObject() const
QList< HIObjectRef > objects
int count(const T &t) const
Returns the number of occurrences of value in the list.
Definition: qlist.h:891
const T & at(int i) const
Returns the item at index position i in the list.
Definition: qlist.h:468

◆ interface()

QAInterface QMultipleHIObjectFactory::interface ( UInt64  identifier)
inlinevirtual

Implements QInterfaceFactory.

Definition at line 874 of file qaccessible_mac.mm.

875  {
876  const int child = identifier;
877  return QAInterface(m_interface, child);
878  }

◆ registerChildren()

void QMultipleHIObjectFactory::registerChildren ( )
inlinevirtual

Implements QInterfaceFactory.

Definition at line 891 of file qaccessible_mac.mm.

892  {
893 #ifndef QT_MAC_USE_COCOA
894  const int childCount = m_interface.childCount();
895  for (int i = 1; i <= childCount; ++i) {
896  HIObjectRef hiobject;
897  HIObjectCreate(kObjectQtAccessibility, 0, &hiobject);
898  objects.append(hiobject);
899  accessibleHierarchyManager()->registerInterface(m_interface.object(), hiobject, this);
900  HIObjectSetAccessibilityIgnored(hiobject, !isItInteresting(m_interface.navigate(QAccessible::Child, i)));
901  }
902 #endif
903  }
static CFStringRef kObjectQtAccessibility
QList< HIObjectRef > objects
QAInterface navigate(RelationFlag relation, int entry) const
void append(const T &t)
Inserts value at the end of the list.
Definition: qlist.h:507
int childCount() const
QObject * object() const
struct OpaqueHIObjectRef * HIObjectRef
bool isItInteresting(const QAInterface &interface)

Properties

◆ m_interface

QAInterface QMultipleHIObjectFactory::m_interface
private

Definition at line 906 of file qaccessible_mac.mm.

◆ objects

QList<HIObjectRef> QMultipleHIObjectFactory::objects
private

Definition at line 907 of file qaccessible_mac.mm.


The documentation for this class was generated from the following file: