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

#include <qeventdispatcher_blackberry_p.h>

Inheritance diagram for QEventDispatcherBlackberryPrivate:
QEventDispatcherUNIXPrivate QAbstractEventDispatcherPrivate QObjectPrivate QObjectData

Public Functions

int initThreadWakeUp ()
 
int processThreadWakeUp (int nsel)
 
 QEventDispatcherBlackberryPrivate ()
 
 ~QEventDispatcherBlackberryPrivate ()
 
- Public Functions inherited from QEventDispatcherUNIXPrivate
int doSelect (QEventLoop::ProcessEventsFlags flags, timeval *timeout)
 
 QEventDispatcherUNIXPrivate ()
 
 ~QEventDispatcherUNIXPrivate ()
 
- Public Functions inherited from QAbstractEventDispatcherPrivate
void init ()
 
 QAbstractEventDispatcherPrivate ()
 
- Public Functions inherited from QObjectPrivate
void _q_reregisterTimers (void *pointer)
 
void addConnection (int signal, Connection *c)
 
void cleanConnectionLists ()
 
void connectNotify (const char *signal)
 
void deleteChildren ()
 
void disconnectNotify (const char *signal)
 
bool isSender (const QObject *receiver, const char *signal) const
 
bool isSignalConnected (uint signalIdx) const
 Returns true if the signal with index signal_index from object sender is connected. More...
 
void moveToThread_helper ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
QObjectList receiverList (const char *signal) const
 
QObjectList senderList () const
 
void setParent_helper (QObject *)
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData)
 
int signalIndex (const char *signalName) const
 Returns the signal index used in the internal connectionLists vector. More...
 
virtual ~QObjectPrivate ()
 
- Public Functions inherited from QObjectData
virtual ~QObjectData ()=0
 

Public Variables

int bps_channel
 
int holding_channel
 
QScopedPointer< bpsIOHandlerDataioData
 
int loop_level
 
- Public Variables inherited from QEventDispatcherUNIXPrivate
bool interrupt
 
bool mainThread
 
int sn_highest
 
QSockNotType::List sn_pending_list
 
QSockNotType sn_vec [3]
 
int thread_pipe [2]
 
QTimerInfoList timerList
 
QAtomicInt wakeUps
 
- Public Variables inherited from QAbstractEventDispatcherPrivate
QAbstractEventDispatcher::EventFilter event_filter
 
- Public Variables inherited from QObjectPrivate
union {
   QObject *   currentChildBeingDeleted
 
   QAbstractDeclarativeData *   declarativeData
 
}; 
 
quint32 connectedSignals [2]
 
QObjectConnectionListVectorconnectionLists
 
SendercurrentSender
 
QList< QPointer< QObject > > eventFilters
 
ExtraDataextraData
 
QString objectName
 
Connectionsenders
 
QAtomicPointer< QtSharedPointer::ExternalRefCountData > sharedRefcount
 
QThreadDatathreadData
 
void * unused
 
- Public Variables inherited from QObjectData
uint blockSig: 1
 
QObjectList children
 
uint hasGuards: 1
 
uint inEventHandler: 1
 
uint inThreadChangeEvent: 1
 
uint isWidget: 1
 
QMetaObjectmetaObject
 
uint ownObjectName: 1
 
QObjectparent
 
uint pendTimer: 1
 
int postedEvents
 
QObjectq_ptr
 
uint receiveChildEvents: 1
 
uint sendChildEvents: 1
 
uint unused: 22
 
uint wasDeleted: 1
 

Additional Inherited Members

- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
- Static Public Functions inherited from QAbstractEventDispatcherPrivate
static int allocateTimerId ()
 
static void releaseTimerId (int id)
 
- Static Public Functions inherited from QObjectPrivate
static void clearGuards (QObject *)
 
static QObjectPrivateget (QObject *o)
 
static void resetCurrentSender (QObject *receiver, Sender *currentSender, Sender *previousSender)
 
static SendersetCurrentSender (QObject *receiver, Sender *sender)
 
static void signalSignature (const QMetaMethod &signal, QVarLengthArray< char > *result)
 

Detailed Description

Definition at line 86 of file qeventdispatcher_blackberry_p.h.

Constructors and Destructors

◆ QEventDispatcherBlackberryPrivate()

QEventDispatcherBlackberryPrivate::QEventDispatcherBlackberryPrivate ( )

Definition at line 161 of file qeventdispatcher_blackberry.cpp.

162  : loop_level(0)
163  , ioData(new bpsIOHandlerData)
164 {
165  // prepare to use BPS
166  int result = bps_initialize();
167  if (Q_UNLIKELY(result != BPS_SUCCESS))
168  qFatal("QEventDispatcherBlackberry: bps_initialize failed");
169 
170  bps_channel = bps_channel_get_active();
171 
172  if (bps_channel_create(&holding_channel, 0) != BPS_SUCCESS) {
173  qWarning("QEventDispatcherBlackberry: bps_channel_create failed");
174  holding_channel = -1;
175  }
176 
177  // get domain for IO ready and wake up events - ignoring race condition here for now
178  if (bpsUnblockDomain == -1) {
179  bpsUnblockDomain = bps_register_domain();
180  if (Q_UNLIKELY(bpsUnblockDomain == -1))
181  qWarning("QEventDispatcherBlackberry: bps_register_domain failed");
182  }
183 }
static int bpsUnblockDomain
Q_CORE_EXPORT void qWarning(const char *,...)
Q_CORE_EXPORT void qFatal(const char *,...)
#define Q_UNLIKELY(x)
Hints to the compiler that the enclosed condition, expr, is likely to evaluate to false...
Definition: qglobal.h:823
QScopedPointer< bpsIOHandlerData > ioData

◆ ~QEventDispatcherBlackberryPrivate()

QEventDispatcherBlackberryPrivate::~QEventDispatcherBlackberryPrivate ( )

Definition at line 185 of file qeventdispatcher_blackberry.cpp.

186 {
187  if ((holding_channel != -1) &&
188  (bps_channel_destroy(holding_channel) != BPS_SUCCESS)) {
189  qWarning("QEventDispatcherBlackberry: bps_channel_destroy failed");
190  }
191 
192  // we're done using BPS
193  bps_shutdown();
194 }
Q_CORE_EXPORT void qWarning(const char *,...)

Functions

◆ initThreadWakeUp()

int QEventDispatcherBlackberryPrivate::initThreadWakeUp ( )
virtual

Reimplemented from QEventDispatcherUNIXPrivate.

Definition at line 196 of file qeventdispatcher_blackberry.cpp.

197 {
198  return -1; // no fd's used
199 }

◆ processThreadWakeUp()

int QEventDispatcherBlackberryPrivate::processThreadWakeUp ( int  nsel)
virtual

Reimplemented from QEventDispatcherUNIXPrivate.

Definition at line 201 of file qeventdispatcher_blackberry.cpp.

202 {
203  Q_UNUSED(nsel);
204  return wakeUps.fetchAndStoreRelaxed(0);
205 }
int fetchAndStoreRelaxed(int newValue)
Atomic fetch-and-store.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Definition: qglobal.h:1729

Properties

◆ bps_channel

int QEventDispatcherBlackberryPrivate::bps_channel

Definition at line 97 of file qeventdispatcher_blackberry_p.h.

Referenced by QEventDispatcherBlackberryPrivate().

◆ holding_channel

int QEventDispatcherBlackberryPrivate::holding_channel

◆ ioData

QScopedPointer<bpsIOHandlerData> QEventDispatcherBlackberryPrivate::ioData

Definition at line 100 of file qeventdispatcher_blackberry_p.h.

◆ loop_level

int QEventDispatcherBlackberryPrivate::loop_level

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