CCIMXDesktop
 
Loading...
Searching...
No Matches
GlobalClockSources.h
1#ifndef GLOBALCLOCKSOURCES_H
2#define GLOBALCLOCKSOURCES_H
3#include <QObject>
4#include <QTime>
5class QTimer;
6
12class GlobalClockSources : public QObject {
13 Q_OBJECT
14 static constexpr const unsigned short SEC_PERIOD = 1000;
15
16public:
21 explicit GlobalClockSources(QObject* parent = nullptr);
22
23signals:
29 void timeUpdate(QTime newTime);
30
31private:
32 QTimer* internal_updater;
33};
34
35#endif // GLOBALCLOCKSOURCES_H
The GlobalClockSources class holds the desktop timer sessions, defaulty, we use the QTimer API For th...
Definition GlobalClockSources.h:12
void timeUpdate(QTime newTime)
timeUpdate will update all the relative events to update its time