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

Public Functions

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

Properties

QAInterface m_interface
 
HIObjectRef object
 

Detailed Description

Definition at line 811 of file qaccessible_mac.mm.

Constructors and Destructors

◆ QStandardInterfaceFactory()

QStandardInterfaceFactory::QStandardInterfaceFactory ( const QAInterface interface)
inline

Definition at line 814 of file qaccessible_mac.mm.

815  : m_interface(interface), object(interface.hiObject())
816  {
817  CFRetain(object);
818  }
HIObjectRef hiObject() const

◆ ~QStandardInterfaceFactory()

QStandardInterfaceFactory::~QStandardInterfaceFactory ( )
inline

Definition at line 820 of file qaccessible_mac.mm.

821  {
822  CFRelease(object);
823  }

Functions

◆ element() [1/2]

QAElement QStandardInterfaceFactory::element ( int  id)
inlinevirtual

Implements QInterfaceFactory.

Definition at line 832 of file qaccessible_mac.mm.

833  {
834  return QAElement(object, id);
835  }

◆ element() [2/2]

QAElement QStandardInterfaceFactory::element ( const QAInterface interface)
inlinevirtual

Reimplemented from QInterfaceFactory.

Definition at line 837 of file qaccessible_mac.mm.

838  {
839  if (interface.object() == 0)
840  return QAElement();
841  return QAElement(object, interface.id());
842  }
QObject * object() const
int id() const

◆ interface()

QAInterface QStandardInterfaceFactory::interface ( UInt64  identifier)
inlinevirtual

Implements QInterfaceFactory.

Definition at line 826 of file qaccessible_mac.mm.

827  {
828  const int child = identifier;
829  return QAInterface(m_interface, child);
830  }

◆ registerChildren()

void QStandardInterfaceFactory::registerChildren ( )
inlinevirtual

Implements QInterfaceFactory.

Definition at line 844 of file qaccessible_mac.mm.

845  {
846  const int childCount = m_interface.childCount();
847  for (int i = 1; i <= childCount; ++i) {
848  accessibleHierarchyManager()->registerInterface(m_interface.navigate(QAccessible::Child, i));
849  }
850  }
QAInterface navigate(RelationFlag relation, int entry) const
int childCount() const

Properties

◆ m_interface

QAInterface QStandardInterfaceFactory::m_interface
private

Definition at line 853 of file qaccessible_mac.mm.

◆ object

HIObjectRef QStandardInterfaceFactory::object
private

Definition at line 854 of file qaccessible_mac.mm.


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