summaryrefslogtreecommitdiffstats
path: root/src/encoder/encoderwavesettings.h
blob: 6c0d0a38f14b91c87d09a26866187ee85edda02f (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
/**
* @file encoderwavesettings.h
* @author Josep Maria Antolín
* @date Feb 27 2017
* @brief storage of setting for wave/aiff encoder
*/

#ifndef ENCODERWAVESETTINGS_H
#define ENCODERWAVESETTINGS_H

#include "encoder/encoderrecordingsettings.h"
#include "encoder/encoder.h"
#include <QList>

class EncoderWaveSettings : public EncoderRecordingSettings {
  public:
    EncoderWaveSettings(UserSettingsPointer pConfig, QString format);
    ~EncoderWaveSettings() override = default;

    // 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 subtype of this encoder settings.
    QString getFormat() const override{
        return m_format;
    }

    static const QString BITS_GROUP;
  private:
    QList<OptionsGroup> m_radioList;
    UserSettingsPointer m_pConfig;
    QString m_format;
};








#endif // ENCODERWAVESETTINGS_H