first callback implemented; overload not working

This commit is contained in:
Hane 2023-08-12 19:26:50 +02:00
commit ad53af655b
6 changed files with 92 additions and 29 deletions

View file

@ -6,7 +6,7 @@
/* class QMainWindow{}; */
/* #endif */
/* class EndpointWidget; */
class EndpointWidget;
class Endpoint;
class EndpointCallback;
@ -37,7 +37,7 @@ public:
bool getMute();
void setValue(int channel, int value);
void setMute(NGuid* guid);
void setMute(NGuid* guid, bool muted);
~EndpointHandler();
private:
uint64_t idx;
@ -54,12 +54,13 @@ class OverseerHandler {
public:
//OverseerHandler();
void setEndpointHandlers(std::vector<EndpointHandler*> ephs);
/* void setEndpointWidgets(std::vector<EndpointWidget*> ews); */
void setEndpointWidgets(std::vector<EndpointWidget*> ews);
std::vector<EndpointHandler*> getEndpointHandlers();
std::vector<Endpoint*> getPlaybackEndpoints();
uint64_t getPlaybackEndpointsCount();
void reloadEndpointHandlers();
NGuid* getGuid();
void updateMuteCallback(uint64_t idx, bool muted);
//void parseExternalEndpointCallback(EndpointCallback *epc, PAUDIO_VOLUME_NOTIFICATION_DATA pNotify);
//static Overseer* getOverseer();
@ -67,5 +68,5 @@ public:
private:
static Overseer os;
std::vector<EndpointHandler*> endpointHandlers;
/* std::vector<EndpointWidget*> endpointWidgets; */
std::vector<EndpointWidget*> endpointWidgets;
};