summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/timer.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/libcamera/timer.h b/include/libcamera/timer.h
index f082339b..853808e0 100644
--- a/include/libcamera/timer.h
+++ b/include/libcamera/timer.h
@@ -9,11 +9,14 @@
#include <cstdint>
+#include <libcamera/object.h>
#include <libcamera/signal.h>
namespace libcamera {
-class Timer
+class Message;
+
+class Timer : public Object
{
public:
Timer();
@@ -28,7 +31,13 @@ public:
Signal<Timer *> timeout;
+protected:
+ void message(Message *msg) override;
+
private:
+ void registerTimer();
+ void unregisterTimer();
+
unsigned int interval_;
uint64_t deadline_;
};