aboutsummaryrefslogtreecommitdiffstats
path: root/SQLiteStudio3/coreSQLiteStudio/common/signalwait.h
blob: 7b7b903d0197b563b6d44c705eb4306c9eef6b50 (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
#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();

    private:
        bool called = false;

    private slots:
        void handleSignal();
};

#endif // SIGNALWAIT_H