From 059831534c7e884f0a607ed86b582fd00d821731 Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Sat, 26 Sep 2026 23:24:03 +0200 Subject: New upstream version 3.2.0~rc1+dfsg --- AutoRespondSelectionLatch.hpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 AutoRespondSelectionLatch.hpp (limited to 'AutoRespondSelectionLatch.hpp') diff --git a/AutoRespondSelectionLatch.hpp b/AutoRespondSelectionLatch.hpp new file mode 100644 index 00000000..9ecbb4d3 --- /dev/null +++ b/AutoRespondSelectionLatch.hpp @@ -0,0 +1,23 @@ +#ifndef AUTORESPONDSELECTIONLATCH_HPP +#define AUTORESPONDSELECTIONLATCH_HPP + +#include +#include + +class AutoRespondSelectionLatch : public QObject +{ +public: + enum { DefaultResetDelayMs = 6000 }; + + explicit AutoRespondSelectionLatch(QObject * parent = nullptr); + + bool isSelected() const; + void selectFor(int delayMs = DefaultResetDelayMs); + void clear(); + +private: + QTimer m_resetTimer; + bool m_selected {false}; +}; + +#endif -- cgit v1.2.3