mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Refactor event handling incl.CEC
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
enum class CECEvent
|
||||
{
|
||||
On,
|
||||
Off
|
||||
};
|
||||
|
@@ -7,7 +7,10 @@
|
||||
|
||||
#include <libcec/cec.h>
|
||||
|
||||
#include <cec/CECEvent.h>
|
||||
#include <utils/settings.h>
|
||||
|
||||
//#include <cec/CECEvent.h>
|
||||
#include <events/Event.h>
|
||||
|
||||
using CECCallbacks = CEC::ICECCallbacks;
|
||||
using CECAdapter = CEC::ICECAdapter;
|
||||
@@ -39,8 +42,12 @@ public slots:
|
||||
bool start();
|
||||
void stop();
|
||||
|
||||
virtual void handleSettingsUpdate(settings::type type, const QJsonDocument& config);
|
||||
|
||||
signals:
|
||||
void cecEvent(CECEvent event);
|
||||
//void cecEvent(CECEvent event);
|
||||
|
||||
void signalEvent(Event event);
|
||||
|
||||
private:
|
||||
/* CEC Callbacks */
|
||||
@@ -65,5 +72,7 @@ private:
|
||||
CECCallbacks _cecCallbacks {};
|
||||
CECConfig _cecConfig {};
|
||||
|
||||
bool _isEnabled;
|
||||
|
||||
Logger * _logger {};
|
||||
};
|
||||
|
Reference in New Issue
Block a user