1 #ifndef INCLUDE_SETTINGS_H 2 #define INCLUDE_SETTINGS_H 22 void resetToDefaults();
23 QString getFileLocation()
const;
24 int getFileFormat()
const;
28 Preset* newPreset(
const QString& group,
const QString& description);
29 void deletePreset(
const Preset* preset);
32 const Preset* getPreset(
const QString& groupName, quint64 centerFrequency,
const QString& description,
const QString& type)
const;
34 void renamePresetGroup(
const QString& oldGroupName,
const QString& newGroupName);
35 void deletePresetGroup(
const QString& groupName);
37 void addCommand(
Command *command);
38 void deleteCommand(
const Command* command);
41 const Command* getCommand(
const QString& groupName,
const QString& description)
const;
43 void renameCommandGroup(
const QString& oldGroupName,
const QString& newGroupName);
44 void deleteCommandGroup(
const QString& groupName);
51 void setSourceDeviceId(
const QString& deviceId) { m_preferences.setSourceDevice(deviceId); }
53 void setLatitude(
float latitude) { m_preferences.setLatitude(latitude); }
54 void setLongitude(
float longitude) { m_preferences.setLongitude(longitude); }
55 float getLatitude()
const {
return m_preferences.getLatitude(); }
56 float getLongitude()
const {
return m_preferences.getLongitude(); }
59 void setFileMinLogLevel(
const QtMsgType& minLogLevel) { m_preferences.setFileMinLogLevel(minLogLevel); }
60 void setUseLogFile(
bool useLogFile) { m_preferences.setUseLogFile(useLogFile); }
61 void setLogFileName(
const QString& value) { m_preferences.setLogFileName(value); }
65 const QString&
getLogFileName()
const {
return m_preferences.getLogFileName(); }
84 #endif // INCLUDE_SETTINGS_H float getLatitude() const
const QString & getLogFileName() const
Preferences m_preferences
QList< Command * > Commands
int getSourceIndex() const
bool getUseLogFile() const
const Command * getCommand(int index) const
void setConsoleMinLogLevel(const QtMsgType &minLogLevel)
int getPresetCount() const
AMBEEngine * m_ambeEngine
QtMsgType getFileMinLogLevel() const
void setFileMinLogLevel(const QtMsgType &minLogLevel)
Preset * getWorkingPreset()
void setAMBEEngine(AMBEEngine *ambeEngine)
void setLongitude(float longitude)
const AudioDeviceManager * getAudioDeviceManager() const
float getLongitude() const
const QString & getSourceDeviceId() const
const Preset * getPreset(int index) const
void setUseLogFile(bool useLogFile)
AudioDeviceManager * m_audioDeviceManager
QList< Preset * > Presets
const Preferences & getPreferences() const
void setAudioDeviceManager(AudioDeviceManager *audioDeviceManager)
DeviceUserArgs & getDeviceUserArgs()
void setLatitude(float latitude)
DeviceUserArgs m_hardwareDeviceUserArgs
int getCommandCount() const
QtMsgType getConsoleMinLogLevel() const
const Preset & getWorkingPresetConst() const
void setLogFileName(const QString &value)
void setSourceIndex(int value)
void setSourceDeviceId(const QString &deviceId)