QtBase  v6.3.1
Public Types | Public Slots | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
tst_QDBusThreading Class Reference
Inheritance diagram for tst_QDBusThreading:
Inheritance graph
[legend]
Collaboration diagram for tst_QDBusThreading:
Collaboration graph
[legend]

Public Types

enum  FunctionSpy { NoMethod = 0 , Adaptor_method , Object_method }
 

Public Slots

void cleanup ()
 
void signalSpySlot ()
 
void threadStarted ()
 
void threadFinished ()
 
void dyingThread_thread ()
 
void lastInstanceInOtherThread_thread ()
 
void concurrentCreation_thread ()
 
void disconnectAnothersConnection_thread ()
 
void accessMainsConnection_thread ()
 
void accessOthersConnection_thread ()
 
void registerObjectInOtherThread_thread ()
 
void registerAdaptorInOtherThread_thread ()
 
void callbackInMainThread_thread ()
 
void callbackInAuxThread_thread ()
 
void callbackInAnotherAuxThread_thread ()
 
- Public Slots inherited from QObject
void deleteLater ()
 

Public Member Functions

 tst_QDBusThreading ()
 
void joinThreads ()
 
bool waitForSignal (QObject *obj, const char *signal, int delay=1)
 
- Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=nullptr)
 
virtual ~QObject ()
 
virtual bool event (QEvent *event)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
QString objectName () const
 
void setObjectName (const QString &name)
 
QBindable< QStringbindableObjectName ()
 
bool isWidgetType () const
 
bool isWindowType () const
 
bool signalsBlocked () const noexcept
 
bool blockSignals (bool b) noexcept
 
QThreadthread () const
 
void moveToThread (QThread *thread)
 
int startTimer (int interval, Qt::TimerType timerType=Qt::CoarseTimer)
 
void killTimer (int id)
 
template<typename T >
T findChild (const QString &aName=QString(), Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 
template<typename T >
QList< TfindChildren (const QString &aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 
template<typename T >
QList< TfindChildren (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 
const QObjectListchildren () const
 
void setParent (QObject *parent)
 
void installEventFilter (QObject *filterObj)
 
void removeEventFilter (QObject *obj)
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=nullptr, const QObject *receiver=nullptr, const char *member=nullptr) const
 
bool disconnect (const QObject *receiver, const char *member=nullptr) const
 
void dumpObjectTree () const
 
void dumpObjectInfo () const
 
bool setProperty (const char *name, const QVariant &value)
 
QVariant property (const char *name) const
 
QList< QByteArraydynamicPropertyNames () const
 
QBindingStoragebindingStorage ()
 
const QBindingStoragebindingStorage () const
 
QObjectparent () const
 
bool inherits (const char *classname) const
 

Static Public Member Functions

static tst_QDBusThreadingself ()
 
- Static Public Member Functions inherited from QObject
static QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 
static QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiver, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
 
static QMetaObject::Connection ::type connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, Func2 slot)
 
static QMetaObject::Connection ::type connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *context, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static std::enable_if< QtPrivate::FunctionPointer< Func2 >::ArgumentCount==-1 &&!std::is_convertible_v< Func2, const char * >, QMetaObject::Connection >::type connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, Func2 slot)
 
template<typename Func1 , typename Func2 >
static std::enable_if< QtPrivate::FunctionPointer< Func2 >::ArgumentCount==-1 &&!std::is_convertible_v< Func2, const char * >, QMetaObject::Connection >::type connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *context, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static bool disconnect (const QMetaObject::Connection &)
 
template<typename Func1 , typename Func2 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiver, Func2 slot)
 
template<typename Func1 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *receiver, void **zero)
 

Public Attributes

QSemaphore sem1
 
QSemaphore sem2
 
volatile bool success
 
QEventLooploop
 
enum tst_QDBusThreading::FunctionSpy functionSpy
 
QThreadthreadSpy
 
int signalSpy
 

Additional Inherited Members

- Signals inherited from QObject
void destroyed (QObject *=nullptr)
 
void objectNameChanged (const QString &objectName, QPrivateSignal)
 
- Protected Member Functions inherited from QObject
QObjectsender () const
 
int senderSignalIndex () const
 
int receivers (const char *signal) const
 
bool isSignalConnected (const QMetaMethod &signal) const
 
virtual void timerEvent (QTimerEvent *event)
 
virtual void childEvent (QChildEvent *event)
 
virtual void customEvent (QEvent *event)
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
 QObject (QObjectPrivate &dd, QObject *parent=nullptr)
 
- Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr
 
- Properties inherited from QObject
QString objectName
 the name of this object More...
 

Detailed Description

Definition at line 56 of file tst_qdbusthreading.cpp.

Member Enumeration Documentation

◆ FunctionSpy

Enumerator
NoMethod 
Adaptor_method 
Object_method 

Definition at line 66 of file tst_qdbusthreading.cpp.

Constructor & Destructor Documentation

◆ tst_QDBusThreading()

tst_QDBusThreading::tst_QDBusThreading ( )

Definition at line 197 of file tst_qdbusthreading.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ accessMainsConnection_thread

void tst_QDBusThreading::accessMainsConnection_thread ( )
slot

Definition at line 330 of file tst_qdbusthreading.cpp.

Here is the call graph for this function:

◆ accessOthersConnection_thread

void tst_QDBusThreading::accessOthersConnection_thread ( )
slot

Definition at line 347 of file tst_qdbusthreading.cpp.

Here is the call graph for this function:

◆ callbackInAnotherAuxThread_thread

void tst_QDBusThreading::callbackInAnotherAuxThread_thread ( )
slot

Definition at line 541 of file tst_qdbusthreading.cpp.

Here is the call graph for this function:

◆ callbackInAuxThread_thread

void tst_QDBusThreading::callbackInAuxThread_thread ( )
slot

Definition at line 521 of file tst_qdbusthreading.cpp.

Here is the call graph for this function:

◆ callbackInMainThread_thread

void tst_QDBusThreading::callbackInMainThread_thread ( )
slot

Definition at line 495 of file tst_qdbusthreading.cpp.

Here is the call graph for this function:

◆ cleanup

void tst_QDBusThreading::cleanup ( )
slot

Definition at line 221 of file tst_qdbusthreading.cpp.

Here is the call graph for this function:

◆ concurrentCreation_thread

void tst_QDBusThreading::concurrentCreation_thread ( )
slot

Definition at line 289 of file tst_qdbusthreading.cpp.

Here is the call graph for this function:

◆ disconnectAnothersConnection_thread

void tst_QDBusThreading::disconnectAnothersConnection_thread ( )
slot

Definition at line 314 of file tst_qdbusthreading.cpp.

Here is the call graph for this function:

◆ dyingThread_thread

void tst_QDBusThreading::dyingThread_thread ( )
slot

Definition at line 239 of file tst_qdbusthreading.cpp.

Here is the call graph for this function:

◆ joinThreads()

void tst_QDBusThreading::joinThreads ( )

Definition at line 204 of file tst_qdbusthreading.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ lastInstanceInOtherThread_thread

void tst_QDBusThreading::lastInstanceInOtherThread_thread ( )
slot

Definition at line 269 of file tst_qdbusthreading.cpp.

◆ registerAdaptorInOtherThread_thread

void tst_QDBusThreading::registerAdaptorInOtherThread_thread ( )
slot

Definition at line 434 of file tst_qdbusthreading.cpp.

Here is the call graph for this function:

◆ registerObjectInOtherThread_thread

void tst_QDBusThreading::registerObjectInOtherThread_thread ( )
slot

Definition at line 387 of file tst_qdbusthreading.cpp.

Here is the call graph for this function:

◆ self()

static tst_QDBusThreading* tst_QDBusThreading::self ( )
inlinestatic

Definition at line 76 of file tst_qdbusthreading.cpp.

Here is the caller graph for this function:

◆ signalSpySlot

void tst_QDBusThreading::signalSpySlot ( )
inlineslot

Definition at line 83 of file tst_qdbusthreading.cpp.

◆ threadFinished

void tst_QDBusThreading::threadFinished ( )
inlineslot

Definition at line 85 of file tst_qdbusthreading.cpp.

Here is the call graph for this function:

◆ threadStarted

void tst_QDBusThreading::threadStarted ( )
inlineslot

Definition at line 84 of file tst_qdbusthreading.cpp.

Here is the call graph for this function:

◆ waitForSignal()

bool tst_QDBusThreading::waitForSignal ( QObject obj,
const char *  signal,
int  delay = 1 
)

Definition at line 210 of file tst_qdbusthreading.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ functionSpy

enum tst_QDBusThreading::FunctionSpy tst_QDBusThreading::functionSpy

◆ loop

QEventLoop* tst_QDBusThreading::loop

Definition at line 65 of file tst_qdbusthreading.cpp.

◆ sem1

QSemaphore tst_QDBusThreading::sem1

Definition at line 63 of file tst_qdbusthreading.cpp.

◆ sem2

QSemaphore tst_QDBusThreading::sem2

Definition at line 63 of file tst_qdbusthreading.cpp.

◆ signalSpy

int tst_QDBusThreading::signalSpy

Definition at line 73 of file tst_qdbusthreading.cpp.

◆ success

volatile bool tst_QDBusThreading::success

Definition at line 64 of file tst_qdbusthreading.cpp.

◆ threadSpy

QThread* tst_QDBusThreading::threadSpy

Definition at line 72 of file tst_qdbusthreading.cpp.


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