dynamically updated session name

This commit is contained in:
Hane 2024-04-19 13:40:50 +02:00
commit 0880305b23
11 changed files with 51 additions and 36 deletions

View file

@ -39,6 +39,7 @@ public:
void setVolume(int channel, float volume);
std::wstring getName();
void setName(std::wstring newName);
std::wstring getId();
void setFrontVisibilityInfo(EndpointState state, uint64_t frontIdx);

View file

@ -32,6 +32,10 @@ std::wstring SessionHandler::getName(){
return session->getName();
}
void SessionHandler::setName(std::wstring newName){
session->setName(newName);
}
bool SessionHandler::getMute(){
return session->getMute();
}

View file

@ -12,7 +12,7 @@ struct SessionVolumeInfo {
bool muted;
float mainVolume;
NGuid caller;
bool isNameChanged = false;
//size_t channels;
//std::vector<float> channelVolumes;
};
@ -29,6 +29,7 @@ class SessionHandler {
void setState(SessionState state);
uint64_t getFrontIndex();
std::wstring getName();
void setName(std::wstring newName);
void reviseSessionShowing(SessionState state);
SessionVolumeInfo* getVolumeInfo();