summaryrefslogtreecommitdiffstats
path: root/src/encoder/encoderwavesettings.h
blob: 6818591949e70ee9feccadf7b3f1e766734bc4f6 (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
#pragma once

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

/// Storage of settings for WAVE/AIFF encoder
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(const 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(const 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;
};