Files
qt5-legatus-legacy/Lts/Proxies/Buildings/BuildingControlUnit/ControlEffects/handeleffect.h
T
2026-08-13 18:33:10 +02:00

48 lines
946 B
C++
Executable File

/**
* @RDE_HEADER@
* One Effect Handler. Destroyed/created on Range change
* $Id$
* $HeadURL$
* $Author$
* Created by Gerlinde Rudolphus, SLTE, 2021-05-31
*/
#pragma once
#include "xmlreader.h"
#include <logger.h>
namespace BuildingControlUnit
{
class HandelEffect: public QObject
{
Q_OBJECT
public:
HandelEffect(QObject* parent = nullptr, const QString &loggerchannel = QString());
bool init(const QVector<Action*> &actions, int repetitions);
signals:
void newHttpRequest(const QUrl &url);
void triggerAllFlashlights(int numberOfFlashes,
int pauseDuration,
int choppedConfiguration,
int flashDuration);
void effectReady();
public slots:
void handleEffect();
private:
QVector<Action *> m_actions;
Action *m_currentAction{nullptr};
int m_repeatCount{1};
LOGGER_T m_logger;
};
}