10     m_audioDeviceManager(nullptr),
    39     return (
int) s.format();
    57     QStringList groups = s.childGroups();
    59     for(
int i = 0; 
i < groups.size(); ++
i)
    61         if (groups[
i].startsWith(
"preset"))
    63             s.beginGroup(groups[
i]);
    66             if(preset->
deserialize(qUncompress(QByteArray::fromBase64(s.value(
"data").toByteArray()))))
    77         else if (groups[
i].startsWith(
"command"))
    79             s.beginGroup(groups[
i]);
    82             if(command->
deserialize(qUncompress(QByteArray::fromBase64(s.value(
"data").toByteArray()))))
   113     QStringList groups = s.childGroups();
   115     for(
int i = 0; 
i < groups.size(); ++
i)
   117         if ((groups[
i].startsWith(
"preset")) || (groups[
i].startsWith(
"command")))
   125         QString group = QString(
"preset-%1").arg(
i + 1);
   127         s.setValue(
"data", qCompress(
m_presets[
i]->serialize()).toBase64());
   133         QString group = QString(
"command-%1").arg(
i + 1);
   135         s.setValue(
"data", qCompress(
m_commands[
i]->serialize()).toBase64());
   165     Presets::iterator it = 
m_presets.begin();
   169         if ((*it)->getGroup() == groupName) {
   186     for (
int i = 0; 
i < nbPresets; 
i++)
   200     for (
int i = 0; 
i < nbPresets; 
i++)
   202         if ((
getPreset(
i)->getGroup() == groupName) &&
   203             (
getPreset(
i)->getCenterFrequency() == centerFrequency) &&
   204             (
getPreset(
i)->getDescription() == description))
   206             if (type == 
"R" && 
getPreset(
i)->isSourcePreset()) {
   208             } 
else if (type == 
"T" && !
getPreset(
i)->isSourcePreset()) {
   234         if ((*it)->getGroup() == groupName) {
   251     for (
int i = 0; 
i < nbCommands; 
i++)
   256             command_mod->
setGroup(newGroupName);
   265     for (
int i = 0; 
i < nbCommands; 
i++)
 Preferences m_preferences
 
QString getFileLocation() const
 
void addCommand(Command *command)
 
int getFileFormat() const
see QSettings::Format for the values 
 
bool deserialize(const QByteArray &data)
 
QByteArray serialize() const
 
void deleteCommand(const Command *command)
 
const Command * getCommand(int index) const
 
QByteArray serialize() const
 
static bool commandCompare(const Command *c1, Command *c2)
 
Preset * newPreset(const QString &group, const QString &description)
 
void renamePresetGroup(const QString &oldGroupName, const QString &newGroupName)
 
int getPresetCount() const
 
AMBEEngine * m_ambeEngine
 
void deleteCommandGroup(const QString &groupName)
 
QByteArray serialize() const
 
void setDescription(const QString &description)
 
void setGroup(const QString &group)
 
void deletePreset(const Preset *preset)
 
bool deserialize(const QByteArray &data)
 
QByteArray serialize() const
 
const Preset * getPreset(int index) const
 
QByteArray serialize() const
 
bool deserialize(const QByteArray &data)
 
AudioDeviceManager * m_audioDeviceManager
 
bool deserialize(const QByteArray &data)
 
static bool presetCompare(const Preset *p1, Preset *p2)
 
void deletePresetGroup(const QString &groupName)
 
bool deserialize(const QByteArray &data)
 
DeviceUserArgs m_hardwareDeviceUserArgs
 
void setGroup(const QString &group)
 
int getCommandCount() const
 
void renameCommandGroup(const QString &oldGroupName, const QString &newGroupName)
 
bool deserialize(const QByteArray &data)