summaryrefslogtreecommitdiffstats
path: root/SQLiteStudio3/coreSQLiteStudio/common/signalwait.h
diff options
context:
space:
mode:
Diffstat (limited to 'SQLiteStudio3/coreSQLiteStudio/common/signalwait.h')
-rw-r--r--SQLiteStudio3/coreSQLiteStudio/common/signalwait.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/SQLiteStudio3/coreSQLiteStudio/common/signalwait.h b/SQLiteStudio3/coreSQLiteStudio/common/signalwait.h
new file mode 100644
index 0000000..7b7b903
--- /dev/null
+++ b/SQLiteStudio3/coreSQLiteStudio/common/signalwait.h
@@ -0,0 +1,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