failed attempt at redrawing

This commit is contained in:
Hane 2023-08-09 15:55:25 +02:00
commit f84ddaef6c
8 changed files with 142 additions and 25 deletions

View file

@ -1,4 +1,5 @@
#pragma once
#include <QObject>
#include "backlasses.h"
@ -7,15 +8,18 @@ class EndpointHandler : public QObject {
Q_OBJECT
public:
EndpointHandler(Endpoint *ept, QObject *parent = nullptr);
EndpointHandler(Endpoint *ept, EndpointCallback *epc, QObject *parent = nullptr);
//TODO: get();
Endpoint *ep;
EndpointCallback *epc;
QString epName;
QString getName();
float getVolume(int channel);
bool getMute();
private:
Endpoint *ept;
QString eptName;
//QSlider *slidy;
//QSlider *slidy;
public slots:
void setValue(int channel, int value);
@ -31,18 +35,17 @@ class OverseerHandler : public QObject {
public:
OverseerHandler(QObject *parent = nullptr);
void setEndpointHandlers(std::vector<EndpointHandler*> *ephs);
std::vector<EndpointHandler*>* getEndpointHandlers();
void setEndpointWidgets(std::vector<EndpointWidget*> ews);
std::vector<EndpointWidget*>* getEndpointWidgets();
void parseExternalEndpointCallback(EndpointCallback *epc, PAUDIO_VOLUME_NOTIFICATION_DATA pNotify);
static Overseer* getOverseer();
private:
static Overseer os;
std::vector<EndpointHandler*> *endpointHandlers;
std::vector<EndpointWidget*> endpointWidgets;
//QSlider *slidy;
//public slots:
//void setValue(int value);
};