summaryrefslogtreecommitdiff
path: root/libsowatch/testwatchlet.h
diff options
context:
space:
mode:
Diffstat (limited to 'libsowatch/testwatchlet.h')
-rw-r--r--libsowatch/testwatchlet.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/libsowatch/testwatchlet.h b/libsowatch/testwatchlet.h
new file mode 100644
index 0000000..caa68da
--- /dev/null
+++ b/libsowatch/testwatchlet.h
@@ -0,0 +1,29 @@
+#ifndef TESTWATCHLET_H
+#define TESTWATCHLET_H
+
+#include <QtCore/QTimer>
+#include "watchlet.h"
+
+namespace sowatch
+{
+
+class TestWatchlet : public Watchlet
+{
+ Q_OBJECT
+public:
+ explicit TestWatchlet(WatchServer* server);
+
+protected slots:
+ void interv();
+ void handleActivated();
+ void handleDeactivated();
+
+private:
+ QTimer *_timer;
+ int _y;
+
+};
+
+}
+
+#endif // TESTWATCHLET_H