Remove frontend header from contclasses

This commit is contained in:
Phireh 2023-08-14 20:10:59 +02:00 committed by Hane
commit 5bb37eb9fd
5 changed files with 57 additions and 43 deletions

View file

@ -9,11 +9,16 @@
/* #endif */
class EndpointWidget;
class Endpoint;
class EndpointCallback;
class Overseer;
enum AudioChannel {
CHANNEL_LEFT = (1 << 0),
CHANNEL_RIGHT = (1 << 1),
CHANNEL_MAIN = ~0,
};
struct NGuid {
uint32_t data1;
uint16_t data2;
@ -66,14 +71,15 @@ public:
void reloadEndpointHandlers();
NGuid* getGuid();
void updateMuteCallback(uint64_t idx, bool muted);
void setFrontMuteCallback(std::function<void(uint64_t, bool)> f);
void setFrontVolumeCallback(std::function<void(uint64_t, uint32_t, float)> f);
void updateMainVolumeCallback(uint64_t idx, float newVal);
void updateChannelVolumeCallback(uint64_t idx, uint32_t channel, float newVal);
void toggleFrontEvents(uint64_t idx, bool active);
//void parseExternalEndpointCallback(EndpointCallback *epc, PAUDIO_VOLUME_NOTIFICATION_DATA pNotify);
//static Overseer* getOverseer();
private:
static Overseer os;
std::vector<EndpointHandler*> endpointHandlers;
std::vector<EndpointWidget*> endpointWidgets;
std::vector<EndpointWidget*> endpointWidgets;
std::function<void(uint64_t /* device */, uint32_t /* channel */, float /* value */)> updateFrontVolumeCallback = {};
std::function<void(uint64_t /* device */, bool /* mute */)> updateFrontMuteCallback = {};
};