#include <antimicrosettings.h>
◆ AntiMicroSettings()
AntiMicroSettings::AntiMicroSettings |
( |
const QString & |
fileName, |
|
|
Format |
format, |
|
|
QObject * |
parent = nullptr |
|
) |
| |
|
explicit |
◆ applySettingsToLogger()
applies settings from command line to logger
- Parameters
-
cmdutility | |
logger | pointer to logger, if nullptr then getInstance() is used |
◆ getCmdSettings()
QSettings & AntiMicroSettings::getCmdSettings |
( |
| ) |
|
◆ getLock()
QMutex * AntiMicroSettings::getLock |
( |
| ) |
|
◆ importFromCommandLine()
Import relevant options given on the command line into a QSettings instance. Used to override any options that might be present in the main settings file. Keys will have to be changed to the appropriate config key.
- Parameters
-
Interpreted | options set on the command line. |
◆ runtimeValue()
QVariant AntiMicroSettings::runtimeValue |
( |
const QString & |
key, |
|
|
const QVariant & |
defaultValue = QVariant() |
|
) |
| const |
Get the currently used value such as an setting overridden with a command line argument.
- Parameters
-
Setting | key |
Default | value to use if key does not exist |
- Returns
- Stored value or the default value passed
◆ cmdSettings
QSettings AntiMicroSettings::cmdSettings |
|
protected |
◆ defaultDisabledWinEnhanced
const bool AntiMicroSettings::defaultDisabledWinEnhanced = false |
|
static |
◆ lock
QMutex AntiMicroSettings::lock |
|
protected |
The documentation for this class was generated from the following files: