21 #ifndef _EQUALIZER_PRESETS_ 22 #define _EQUALIZER_PRESETS_ 73 int value(
int idx)
const;
void set_name(const QString &name)
set name of setting
bool operator==(const EQ_Setting &s) const
Compares the case insensitive string representation of two settings.
void set_value(int idx, int val)
set specific value for band
bool is_default_name() const
checks, if the preset name belongs to a default preset
QString toString() const
converts EQ_Setting to string
int value(int idx) const
get specific value for a band idx. if idx is not valid, 0 is returned
The EQ_Setting class. Container for Equalizer configurations.
Definition: EqualizerPresets.h:32
static QList< int > get_default_values(const QString &name)
get default values for a specific preset. If the preset does not have default values, an empty list is returned
QList< int > values() const
get database values for setting
bool is_default() const
append a value. If there are already more than 10 values, nothing happens
QString name() const
get name of setting
void set_values(const QList< int > values)
set all values for a specific index. If there are more than 10 values, list is stripped. If there are less, the list is filled with zeros
static EQ_Setting fromString(const QString &str)
converts a string to a EQ_Setting. If not possible a default constructed EQ_Setting is returned ...
static QList< EQ_Setting > get_defaults()
get default settings