Qt 4.8
Public Functions | Public Variables | Properties | List of all members
QAccessibleInterfaceWrapper Class Reference

#include <qaccessible_mac_p.h>

Public Functions

void operator= (const QAccessibleInterfaceWrapper &other)
 
 QAccessibleInterfaceWrapper ()
 
 QAccessibleInterfaceWrapper (QAccessibleInterface *interface)
 
 QAccessibleInterfaceWrapper (const QAccessibleInterfaceWrapper &other)
 
 ~QAccessibleInterfaceWrapper ()
 

Public Variables

bool * childrenIsRegistered
 
QAccessibleInterfaceinterface
 

Properties

int * refCount
 

Detailed Description

Definition at line 71 of file qaccessible_mac_p.h.

Constructors and Destructors

◆ QAccessibleInterfaceWrapper() [1/3]

QAccessibleInterfaceWrapper::QAccessibleInterfaceWrapper ( )
inline

Definition at line 74 of file qaccessible_mac_p.h.

75  : interface(0), childrenIsRegistered(new bool(false)), refCount(new int(1)) { }
QAccessibleInterface * interface

◆ QAccessibleInterfaceWrapper() [2/3]

QAccessibleInterfaceWrapper::QAccessibleInterfaceWrapper ( QAccessibleInterface interface)
inline

Definition at line 77 of file qaccessible_mac_p.h.

78  :interface(interface), childrenIsRegistered(new bool(false)), refCount(new int(1)) { }
QAccessibleInterface * interface

◆ ~QAccessibleInterfaceWrapper()

QAccessibleInterfaceWrapper::~QAccessibleInterfaceWrapper ( )
inline

Definition at line 80 of file qaccessible_mac_p.h.

81  {
82  if (--(*refCount) == 0) {
83  delete interface;
84  delete refCount;
85  delete childrenIsRegistered;
86  }
87  }
QAccessibleInterface * interface

◆ QAccessibleInterfaceWrapper() [3/3]

QAccessibleInterfaceWrapper::QAccessibleInterfaceWrapper ( const QAccessibleInterfaceWrapper other)
inline

Definition at line 89 of file qaccessible_mac_p.h.

91  {
92  ++(*refCount);
93  }
QAccessibleInterface * interface

Functions

◆ operator=()

void QAccessibleInterfaceWrapper::operator= ( const QAccessibleInterfaceWrapper other)
inline

Definition at line 95 of file qaccessible_mac_p.h.

96  {
97  if (other.interface == interface)
98  return;
99 
100  if (--(*refCount) == 0) {
101  delete interface;
102  delete refCount;
103  delete childrenIsRegistered;
104  }
105 
106  interface = other.interface;
108  refCount = other.refCount;
109  ++(*refCount);
110  }
QAccessibleInterface * interface

Properties

◆ childrenIsRegistered

bool* QAccessibleInterfaceWrapper::childrenIsRegistered

Definition at line 113 of file qaccessible_mac_p.h.

Referenced by operator=().

◆ interface

QAccessibleInterface* QAccessibleInterfaceWrapper::interface

Definition at line 112 of file qaccessible_mac_p.h.

Referenced by QAInterface::indexOfChild(), and operator=().

◆ refCount

int* QAccessibleInterfaceWrapper::refCount
private

Definition at line 115 of file qaccessible_mac_p.h.

Referenced by operator=().


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