54 lines
1 KiB
C++
54 lines
1 KiB
C++
#pragma once
|
|
|
|
#include "backlasses.h"
|
|
|
|
|
|
class EndpointHandler {
|
|
|
|
public:
|
|
EndpointHandler(Endpoint *ept);
|
|
//TODO: get();
|
|
Endpoint *ep;
|
|
EndpointCallback *epc;
|
|
QString epName;
|
|
|
|
void setIndex(uint64_t idx);
|
|
void setVolume(int channel, float volume);
|
|
|
|
//todo qstrin????? idiota
|
|
QString getName();
|
|
float getVolume(int channel);
|
|
bool getMute();
|
|
|
|
void setValue(int channel, int value);
|
|
void setMute();
|
|
private:
|
|
uint64_t idx;
|
|
//QSlider *slidy;
|
|
|
|
//signals:
|
|
|
|
|
|
};
|
|
|
|
|
|
class OverseerHandler {
|
|
|
|
public:
|
|
//OverseerHandler();
|
|
void setEndpointHandlers(std::vector<EndpointHandler*> ews);
|
|
std::vector<EndpointHandler*>* getEndpointHandlers();
|
|
std::vector<Endpoint*> getPlaybackEndpoints();
|
|
uint64_t getPlaybackEndpointsCount();
|
|
void parseExternalEndpointCallback(EndpointCallback *epc, PAUDIO_VOLUME_NOTIFICATION_DATA pNotify);
|
|
//static Overseer* getOverseer();
|
|
|
|
private:
|
|
static Overseer os;
|
|
std::vector<EndpointHandler*> endpointHandlers;
|
|
//QSlider *slidy;
|
|
|
|
//public slots:
|
|
//void setValue(int value);
|
|
|
|
};
|