Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
@@ -0,0 +1,47 @@
|
||||
/**
|
||||
* @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;
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user