SDRAngel
4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
|
#include <preferences.h>
Public Member Functions | |
Preferences () | |
void | resetToDefaults () |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
void | setSourceDevice (const QString &value) |
const QString & | getSourceDevice () const |
void | setSourceIndex (const int value) |
int | getSourceIndex () const |
void | setAudioType (const QString &value) |
const QString & | getAudioType () const |
void | setAudioDevice (const QString &value) |
const QString & | getAudioDevice () const |
void | setLatitude (float latitude) |
void | setLongitude (float longitude) |
float | getLatitude () const |
float | getLongitude () const |
void | setConsoleMinLogLevel (const QtMsgType &minLogLevel) |
void | setFileMinLogLevel (const QtMsgType &minLogLevel) |
void | setUseLogFile (bool useLogFile) |
void | setLogFileName (const QString &value) |
QtMsgType | getConsoleMinLogLevel () const |
QtMsgType | getFileMinLogLevel () const |
bool | getUseLogFile () const |
const QString & | getLogFileName () const |
Protected Attributes | |
QString | m_sourceDevice |
Identification of the source used in R0 tab (GUI flavor) at startup. More... | |
int | m_sourceIndex |
Index of the source used in R0 tab (GUI flavor) at startup. More... | |
QString | m_audioType |
QString | m_audioDevice |
float | m_latitude |
float | m_longitude |
QtMsgType | m_consoleMinLogLevel |
QtMsgType | m_fileMinLogLevel |
bool | m_useLogFile |
QString | m_logFileName |
Friends | |
class | WebAPIAdapterBase |
Definition at line 8 of file preferences.h.
Preferences::Preferences | ( | ) |
Definition at line 4 of file preferences.cpp.
References resetToDefaults().
bool Preferences::deserialize | ( | const QByteArray & | data | ) |
Definition at line 39 of file preferences.cpp.
References SimpleDeserializer::getVersion(), SimpleDeserializer::isValid(), m_audioDevice, m_audioType, m_consoleMinLogLevel, m_fileMinLogLevel, m_latitude, m_logFileName, m_longitude, m_sourceDevice, m_sourceIndex, m_useLogFile, SimpleDeserializer::readBool(), SimpleDeserializer::readFloat(), SimpleDeserializer::readS32(), SimpleDeserializer::readString(), and resetToDefaults().
Referenced by MainSettings::load().
|
inline |
Definition at line 24 of file preferences.h.
|
inline |
Definition at line 22 of file preferences.h.
|
inline |
Definition at line 35 of file preferences.h.
|
inline |
Definition at line 36 of file preferences.h.
|
inline |
Definition at line 28 of file preferences.h.
|
inline |
Definition at line 38 of file preferences.h.
|
inline |
Definition at line 29 of file preferences.h.
|
inline |
Definition at line 17 of file preferences.h.
|
inline |
Definition at line 19 of file preferences.h.
|
inline |
Definition at line 37 of file preferences.h.
void Preferences::resetToDefaults | ( | ) |
Definition at line 9 of file preferences.cpp.
References m_audioDevice, m_audioType, m_consoleMinLogLevel, m_fileMinLogLevel, m_latitude, m_logFileName, m_longitude, m_sourceDevice, m_sourceIndex, and m_useLogFile.
Referenced by deserialize(), Preferences(), and MainSettings::resetToDefaults().
QByteArray Preferences::serialize | ( | ) | const |
Definition at line 23 of file preferences.cpp.
References SimpleSerializer::final(), m_audioDevice, m_audioType, m_consoleMinLogLevel, m_fileMinLogLevel, m_latitude, m_logFileName, m_longitude, m_sourceDevice, m_sourceIndex, m_useLogFile, SimpleSerializer::writeBool(), SimpleSerializer::writeFloat(), SimpleSerializer::writeS32(), and SimpleSerializer::writeString().
Referenced by MainSettings::save().
|
inline |
Definition at line 23 of file preferences.h.
|
inline |
Definition at line 21 of file preferences.h.
|
inline |
Definition at line 31 of file preferences.h.
|
inline |
Definition at line 32 of file preferences.h.
|
inline |
Definition at line 26 of file preferences.h.
|
inline |
Definition at line 34 of file preferences.h.
|
inline |
Definition at line 27 of file preferences.h.
|
inline |
Definition at line 16 of file preferences.h.
|
inline |
Definition at line 18 of file preferences.h.
|
inline |
Definition at line 33 of file preferences.h.
|
friend |
Definition at line 40 of file preferences.h.
|
protected |
Definition at line 47 of file preferences.h.
Referenced by deserialize(), resetToDefaults(), serialize(), and WebAPIAdapterBase::webapiFormatPreferences().
|
protected |
Definition at line 46 of file preferences.h.
Referenced by deserialize(), resetToDefaults(), serialize(), and WebAPIAdapterBase::webapiFormatPreferences().
|
protected |
Definition at line 52 of file preferences.h.
Referenced by deserialize(), resetToDefaults(), serialize(), and WebAPIAdapterBase::webapiFormatPreferences().
|
protected |
Definition at line 53 of file preferences.h.
Referenced by deserialize(), resetToDefaults(), serialize(), and WebAPIAdapterBase::webapiFormatPreferences().
|
protected |
Definition at line 49 of file preferences.h.
Referenced by deserialize(), resetToDefaults(), serialize(), and WebAPIAdapterBase::webapiFormatPreferences().
|
protected |
Definition at line 55 of file preferences.h.
Referenced by deserialize(), resetToDefaults(), serialize(), and WebAPIAdapterBase::webapiFormatPreferences().
|
protected |
Definition at line 50 of file preferences.h.
Referenced by deserialize(), resetToDefaults(), serialize(), and WebAPIAdapterBase::webapiFormatPreferences().
|
protected |
Identification of the source used in R0 tab (GUI flavor) at startup.
Definition at line 43 of file preferences.h.
Referenced by deserialize(), resetToDefaults(), serialize(), and WebAPIAdapterBase::webapiFormatPreferences().
|
protected |
Index of the source used in R0 tab (GUI flavor) at startup.
Definition at line 44 of file preferences.h.
Referenced by deserialize(), resetToDefaults(), serialize(), and WebAPIAdapterBase::webapiFormatPreferences().
|
protected |
Definition at line 54 of file preferences.h.
Referenced by deserialize(), resetToDefaults(), serialize(), and WebAPIAdapterBase::webapiFormatPreferences().