From dad0aaa9b33a5a217ac115334a94fe299dce9e08 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Fri, 10 Oct 2025 10:01:01 +0200 Subject: Add bluetooth module Can't really do anything yet, but finds the bluetooth adapter and registers an agent to make it pairable. --- src/signals.hh | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/signals.hh (limited to 'src/signals.hh') diff --git a/src/signals.hh b/src/signals.hh new file mode 100644 index 0000000..f387f9f --- /dev/null +++ b/src/signals.hh @@ -0,0 +1,33 @@ +#ifndef SIGNALS_HH +#define SIGNALS_HH + +#include +#include + +namespace looper { +class Looper; +} // namespace looper + +namespace signals { + +enum class Signal { + INT, + TERM, +}; + +class Handler { + public: + virtual ~Handler() = default; + + static std::unique_ptr create(looper::Looper& looper, Signal signal, + std::function callback); + + protected: + Handler() = default; + Handler(Handler const&) = delete; + Handler& operator=(Handler const&) = delete; +}; + +} // namespace signals + +#endif // SIGNALS_HH -- cgit v1.2.3-70-g09d2