Files
torstenandCopilot d5af8b9764 Session 026: Lts/Services Qt5:: to Qt6:: migration
- Migrated all 104 CMakeLists.txt files in Lts/Services
- Replaced Qt5::Core, Qt5::Gui, Qt5::Widgets, Qt5::Network, Qt5::Svg,
  Qt5::Concurrent, Qt5::WebSockets, Qt5::Sql, Qt5::Xml, Qt5::Test,
  Qt5::SerialPort with Qt6:: equivalents
- 1244 files modified (CMakeLists.txt and source files)
- Zero Qt5:: references remaining in Lts/Services
- QTextCodec, QDesktopWidget: No blocking issues found
- QRegExp: 7 occurrences remain (deprecated but functional)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-08-25 19:23:30 +02:00

58 lines
1.2 KiB
C++
Executable File

/**
* CES Tartet Timer
* $Id$
* $HeadURL$
* $Author$
* Created by Gerlinde Rudolphus, SLTE, 2016-04-14
*/
#ifndef TARGETTIMER_H
#define TARGETTIMER_H
#include <QObject>
#include <QTimer>
class TargetTimer: public QObject
{
Q_OBJECT
public:
enum TimerState
{
NOT_ACTIVE = 0,
TIMER1_ACTIVE = 1,
TIMER2_ACTIVE = 2,
BOTH_EXPIRED = 3
};
TargetTimer(int participantId,
int targetParticipantId,
int preWarningInterval,
int timeToEffectInterval);
void startTimer();
void stopTimer();
bool isActive() { return timer->isActive();}
TimerState getTimerState() {return m_timerState;}
int getTargetParticipantId() {return m_targetParticipantId;}
public slots:
void MyTimerSlot();
signals:
void preWarningTimeout(int participantId, int targetParticipantId);
void timeToEffectTimeout(int participantId, int targetParticipantId);
private:
QTimer *timer;
int m_participantId = 0;
int m_targetParticipantId = 0;
int m_preWarningInterval = 0;
int m_timeToEffectInterval = 0;
TimerState m_timerState = NOT_ACTIVE; // 0 = NOT ACTIVE
// 1 = Timer 1 is actice
// 2 = Timer 2 is active
// 3 = both timers have expired
};
#endif // TARGETTIMER_H