1#ifndef WAVELENGTH_LEAVER_H
2#define WAVELENGTH_LEAVER_H
WavelengthLeaver(const WavelengthLeaver &)=delete
Deleted copy constructor to prevent copying.
void LeaveWavelength()
Leaves the currently active wavelength. Retrieves the active frequency from the registry....
Definition wavelength_leaver.cpp:6
~WavelengthLeaver() override=default
Private destructor.
void wavelengthClosed(QString frequency)
Emitted after the host successfully closes a specific wavelength via CloseWavelength().
void wavelengthLeft(QString frequency)
Emitted after the user successfully leaves the active wavelength via LeaveWavelength().
WavelengthLeaver & operator=(const WavelengthLeaver &)=delete
Deleted assignment operator to prevent assignment.
WavelengthLeaver(QObject *parent=nullptr)
Private constructor to enforce the singleton pattern.
Definition wavelength_leaver.h:64
static WavelengthLeaver * GetInstance()
Gets the singleton instance of the WavelengthLeaver.
Definition wavelength_leaver.h:22
void CloseWavelength(QString frequency)
Closes a specific wavelength (only if the current user is the host). Checks if the user is the host f...
Definition wavelength_leaver.cpp:43