1 #ifndef TORCTIMERCONTROL_H 2 #define TORCTIMERCONTROL_H 37 void Start (
void)
override;
44 bool event (QEvent *Event)
override;
47 void GenerateTimings (
void);
48 void CalculateOutput (
void)
override;
49 quint64 GetPeriodDuration(
void)
const;
50 quint64 MsecsSincePeriodStart (
void);
63 bool m_randomDuration;
64 quint64 m_lastElapsed;
67 quint64 m_singleShotStartTime;
70 #endif // TORCTIMERCONTROL_H static QString TimerTypeToString(TorcTimerControl::TimerType Type)
static TorcTimerControl::TimerType StringToTimerType(const QString &Type)
bool AllowInputs(void) const override
Timers cannot have inputs.
bool Validate(void) override
TorcTimerControl::TimerType GetTimerType(void) const
quint64 TimeSinceLastTransition(void)
TorcTimerControl(const QString &Type, const QVariantMap &Details)
QStringList GetDescription(void) override
TorcControl::Type GetType(void) const override
void Start(void) override
Initialise the timer.
bool event(QEvent *Event) override