CustusX  16.5
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cxtest::QueuedSignalListener Class Reference

Object that waits for a signal to arrive from a given QObject. If this takes longer than a given time, it will time out. The signal connection is of type Qt::QueuedConnection. More...

#include <cxtestQueuedSignalListener.h>

Inheritance diagram for cxtest::QueuedSignalListener:

Public Member Functions

 QueuedSignalListener (QObject *object, const char *signal, int maxWaitMilliSeconds=100)
 
virtual ~QueuedSignalListener ()
 
int exec ()
 runs the eventloop that makes sure signals are sent More...
 
bool timedOut ()
 

Detailed Description

Object that waits for a signal to arrive from a given QObject. If this takes longer than a given time, it will time out. The signal connection is of type Qt::QueuedConnection.

Author
Janne Beate Bakeng, SINTEF
Date
May 15, 2013

Definition at line 55 of file cxtestQueuedSignalListener.h.

Constructor & Destructor Documentation

cxtest::QueuedSignalListener::QueuedSignalListener ( QObject *  object,
const char *  signal,
int  maxWaitMilliSeconds = 100 
)

Definition at line 55 of file cxtestQueuedSignalListener.cpp.

cxtest::QueuedSignalListener::~QueuedSignalListener ( )
virtual

Definition at line 62 of file cxtestQueuedSignalListener.cpp.

Member Function Documentation

int cxtest::QueuedSignalListener::exec ( )

runs the eventloop that makes sure signals are sent

Definition at line 68 of file cxtestQueuedSignalListener.cpp.

bool cxtest::QueuedSignalListener::timedOut ( )

Definition at line 75 of file cxtestQueuedSignalListener.cpp.


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