We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbd9b0f commit 67fd52dCopy full SHA for 67fd52d
src/Intervaltimer/CMakeLists.txt
@@ -38,5 +38,7 @@ qt_add_qml_module(Intervaltimer
38
intervaltimer/PlanRunner.cpp
39
intervaltimer/PlanToJson.h
40
intervaltimer/PlanToJson.cpp
41
+ intervaltimer/TimerBase.h
42
+ intervaltimer/TimerBase.cpp
43
)
44
src/Intervaltimer/intervaltimer/TimerBase.cpp
@@ -0,0 +1,4 @@
1
+#include "TimerBase.h"
2
+
3
+TimerBase::TimerBase(QObject* parent)
4
+ : QObject{parent} {}
src/Intervaltimer/intervaltimer/TimerBase.h
@@ -0,0 +1,14 @@
+#pragma once
+#include <QObject>
+#include <chrono>
5
6
+class TimerBase : public QObject {
7
+ Q_OBJECT
8
+public:
9
+ explicit TimerBase(QObject* parent = nullptr);
10
11
+ virtual void start(std::chrono::milliseconds const&) = 0;
12
+signals:
13
+ void timeout();
14
+};
0 commit comments