#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 ews); std::vector* getEndpointHandlers(); std::vector getPlaybackEndpoints(); uint64_t getPlaybackEndpointsCount(); void parseExternalEndpointCallback(EndpointCallback *epc, PAUDIO_VOLUME_NOTIFICATION_DATA pNotify); //static Overseer* getOverseer(); private: static Overseer os; std::vector endpointHandlers; //QSlider *slidy; //public slots: //void setValue(int value); };