blob: 0e95cc34d343f1cb5d5f16104a4ace519454e299 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
/**
* @file encoderflacsettings.cpp
* @author Josep Maria Antolín
* @date Feb 27 2017
* @brief storage of setting for flac encoder
*/
#ifndef ENCODERFLACSETTINGS_H
#define ENCODERFLACSETTINGS_H
#include "encoder/encoderrecordingsettings.h"
#include "encoder/encoder.h"
#include "recording/defs_recording.h"
class EncoderFlacSettings : public EncoderRecordingSettings {
public:
EncoderFlacSettings(UserSettingsPointer pConfig);
~EncoderFlacSettings() override = default;
// Indicates that it uses the compression slider section of the preferences
bool usesCompressionSlider() const override;
// Returns the list of compression values supported, to assign them to the slider
virtual QList<int> getCompressionValues() const override;
// Sets the compression level
virtual void setCompression(int compression) override;
virtual int getCompression() const override;
// Returns the list of radio options to show to the user
QList<OptionsGroup> getOptionGroups() const override;
// Selects the option by its index. If it is a single-element option,
// index 0 means disabled and 1 enabled.
void setGroupOption(QString groupCode, int optionIndex) override;
// Return the selected option of the group. If it is a single-element option,
// 0 means disabled and 1 enabled.
int getSelectedOption(QString groupCode) const override;
// Returns the format of this encoder settings.
QString getFormat() const override {
return ENCODING_FLAC;
}
static const int DEFAULT_QUALITY_VALUE;
static const QString BITS_GROUP;
static const QString GROUP_COMPRESSION;
private:
QList<OptionsGroup> m_radioList;
QList<int> m_qualList;
UserSettingsPointer m_pConfig;
};
#endif // ENCODERFLACSETTINGS_H
|