mirror of https://github.com/nymea/nymea.git
fix timer manager
parent
044b7958ea
commit
b2db373c34
|
|
@ -484,6 +484,7 @@ void GuhCore::init() {
|
|||
|
||||
connect(m_timeManager, &TimeManager::dateTimeChanged, this, &GuhCore::onDateTimeChanged);
|
||||
connect(m_timeManager, &TimeManager::tick, m_deviceManager, &DeviceManager::timeTick);
|
||||
connect(m_timeManager, &TimeManager::tick, m_hardwareManager, &HardwareManagerImplementation::timeTick);
|
||||
|
||||
m_logger->logSystemEvent(m_timeManager->currentDateTime(), true);
|
||||
|
||||
|
|
|
|||
|
|
@ -40,15 +40,9 @@ class PluginTimerImplementation : public PluginTimer
|
|||
public:
|
||||
explicit PluginTimerImplementation(int intervall, QObject *parent = nullptr);
|
||||
|
||||
int interval() const;
|
||||
int currentTick() const;
|
||||
bool running() const;
|
||||
|
||||
signals:
|
||||
void timeout();
|
||||
void currentTickChanged(const int ¤tTick);
|
||||
void runningChanged(const bool &running);
|
||||
void pausedChanged(const bool &paused);
|
||||
int interval() const override;
|
||||
int currentTick() const override;
|
||||
bool running() const override;
|
||||
|
||||
private:
|
||||
int m_interval;
|
||||
|
|
@ -64,11 +58,11 @@ private:
|
|||
void tick();
|
||||
|
||||
public slots:
|
||||
void reset();
|
||||
void start();
|
||||
void stop();
|
||||
void pause();
|
||||
void resume();
|
||||
void reset() override;
|
||||
void start() override;
|
||||
void stop() override;
|
||||
void pause() override;
|
||||
void resume() override;
|
||||
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue