mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
29 lines
499 B
C
29 lines
499 B
C
|
#pragma once
|
||
|
|
||
|
#include <utils/Components.h>
|
||
|
#include <utils/Logger.h>
|
||
|
|
||
|
// STL includes
|
||
|
#include <map>
|
||
|
|
||
|
#include <QObject>
|
||
|
|
||
|
class ComponentRegister : public QObject
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
ComponentRegister();
|
||
|
~ComponentRegister();
|
||
|
|
||
|
std::map<hyperion::Components, bool> getRegister() { return _componentStates; };
|
||
|
|
||
|
public slots:
|
||
|
void componentStateChanged(const hyperion::Components comp, const bool activated);
|
||
|
|
||
|
private:
|
||
|
std::map<hyperion::Components, bool> _componentStates;
|
||
|
Logger * _log;
|
||
|
};
|
||
|
|