mirror of https://github.com/qTox/qTox.git
3 changed files with 83 additions and 30 deletions
@ -0,0 +1,50 @@
@@ -0,0 +1,50 @@
|
||||
#ifndef I_AUDIO_SETTINGS_H |
||||
#define I_AUDIO_SETTINGS_H |
||||
|
||||
#include "src/model/interface.h" |
||||
|
||||
#include <QString> |
||||
|
||||
class IAudioSettings { |
||||
public: |
||||
virtual QString getInDev() const = 0; |
||||
virtual void setInDev(const QString& deviceSpecifier) = 0; |
||||
|
||||
virtual bool getAudioInDevEnabled() const = 0; |
||||
virtual void setAudioInDevEnabled(bool enabled) = 0; |
||||
|
||||
virtual QString getOutDev() const = 0; |
||||
virtual void setOutDev(const QString& deviceSpecifier) = 0; |
||||
|
||||
virtual bool getAudioOutDevEnabled() const = 0; |
||||
virtual void setAudioOutDevEnabled(bool enabled) = 0; |
||||
|
||||
virtual qreal getAudioInGainDecibel() const = 0; |
||||
virtual void setAudioInGainDecibel(qreal dB) = 0; |
||||
|
||||
virtual int getOutVolume() const = 0; |
||||
virtual void setOutVolume(int volume) = 0; |
||||
|
||||
virtual int getAudioBitrate() const = 0; |
||||
virtual void setAudioBitrate(int bitrate) = 0; |
||||
|
||||
virtual bool getEnableTestSound() const = 0; |
||||
virtual void setEnableTestSound(bool newValue) = 0; |
||||
|
||||
virtual bool getEnableBackend2() const = 0; |
||||
virtual void setEnableBackend2(bool enabled) = 0; |
||||
|
||||
DECLARE_SIGNAL(inDevChanged, const QString& device); |
||||
DECLARE_SIGNAL(audioInDevEnabledChanged, bool enabled); |
||||
|
||||
DECLARE_SIGNAL(outDevChanged, const QString& device); |
||||
DECLARE_SIGNAL(audioOutDevEnabledChanged, bool enabled); |
||||
|
||||
DECLARE_SIGNAL(audioInGainDecibelChanged, qreal dB); |
||||
DECLARE_SIGNAL(outVolumeChanged, int volume); |
||||
DECLARE_SIGNAL(audioBitrateChanged, int bitrate); |
||||
DECLARE_SIGNAL(enableTestSoundChanged, bool newValue); |
||||
DECLARE_SIGNAL(enableBackend2Changed, bool enabled); |
||||
}; |
||||
|
||||
#endif // I_AUDIO_SETTINGS_H
|
Loading…
Reference in new issue