mixer/src/cont/contclasses.h
2024-02-07 16:55:42 +01:00

51 lines
972 B
C++

#pragma once
#include <QObject>
#include "backlasses.h"
class EndpointHandler : public QObject {
Q_OBJECT
public:
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:
//QSlider *slidy;
public slots:
void setValue(int channel, int value);
void setMute();
//signals:
};
class OverseerHandler : public QObject {
Q_OBJECT
public:
OverseerHandler(QObject *parent = nullptr);
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<EndpointWidget*> endpointWidgets;
//QSlider *slidy;
//public slots:
//void setValue(int value);
};