add session

This commit is contained in:
Hane 2024-02-03 18:52:18 +01:00
commit 1cee03aba6
6 changed files with 79 additions and 28 deletions

View file

@ -10,6 +10,7 @@ class Endpoint;
class EndpointVolumeCallback;
class Overseer;
class SessionHandler;
class EndpointNewSessionCallback;
struct BackEndpointVolumeCallbackInfo {
NGuid caller;
@ -66,7 +67,8 @@ public:
/*Session*/
void addSession(Session* session);
void setAddSessionWidgetFunction(std::function<void(SessionHandler*)> addSessionWidget);
~EndpointHandler();
private:
std::vector<Session*> getSessions();
@ -81,7 +83,9 @@ private:
uint64_t frontIdx = INT_MAX;
};
EndpointHandlerFrontVisibility ephfv;
EndpointNewSessionCallback* ensc;
std::vector<SessionHandler*> sessionHandlers;
std::function<void(SessionHandler*)> addSessionWidget;
//QSlider *slidy;
};
@ -109,7 +113,6 @@ public:
EndpointHandler* addEndpoint(std::wstring endpointId, Flows *flow);
NGuid getGuid();
/* Session's */
/*
* void setSessionVolumeCallback(std::function<void(float)> changeSessionVolume);
* void setSessionVolume(float newValue, );
@ -125,7 +128,6 @@ private:
/* Session's */
std::function<void(float)> changeSessionVolume;
//std::function<void(uint64_t /* device */, uint32_t /* channel */, float /* value */)> updateFrontVolumeCallback;
//std::function<void(uint64_t /* device */, bool /* mute */)> updateFrontMuteCallback;