sessions dynamically removed

This commit is contained in:
Hane 2024-02-03 20:32:49 +01:00
commit 70f5475849
9 changed files with 114 additions and 73 deletions

View file

@ -66,8 +66,11 @@ public:
Endpoint* getEndpoint();
/*Session*/
void addSession(Session* session);
void addSessionSendFront(Session* session);
void setAddSessionWidgetFunction(std::function<void(SessionHandler*)> addSessionWidget);
void setRemoveSessionWidgetFunction(std::function<void(SessionHandler*)> removeSessionWidget);
void sendSessionToFront(SessionHandler* sh);
void removeSessionFromFront(SessionHandler* sh);
~EndpointHandler();
private:
@ -86,6 +89,7 @@ private:
EndpointNewSessionCallback* ensc;
std::vector<SessionHandler*> sessionHandlers;
std::function<void(SessionHandler*)> addSessionWidget;
std::function<void(SessionHandler*)> removeSessionWidget;
//QSlider *slidy;
};