blob: 57759be0bc1a128e831ad3732a200ca70181109f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#ifndef SIGNALWAIT_H
#define SIGNALWAIT_H
#include <QObject>
class SignalWait : public QObject
{
Q_OBJECT
public:
SignalWait(QObject *object, const char *signal);
bool wait(int msTimeout);
void reset();
void addFailSignal(QObject *object, const char *signal);
private:
bool called = false;
bool failed = false;
private slots:
void handleSignal();
void handleFailSignal();
};
#endif // SIGNALWAIT_H
|