11#include <QCoreApplication>
17 auto name = QCoreApplication::applicationName();
18 auto company = QCoreApplication::organizationName();
20 name =
"QuasarAppUtils";
31 return _settings->sync();
36 return _settings->value(
key,
def).toBool();
39 return _settings->value(
key,
def);
43 return _settings->setValue(
key,
value);
static std::unique_ptr< ISettings > & initService()
initService This method initialize the Base object as a service.
bool ignoreToRest(const QString &) const override
ignoreToRest This method should be returns true if the key setting is not be reset on the resetToDefa...
const QSet< QString > & boolOptions() const
boolOptions returns current map with keys that has a bool type.
static bool initService()
initService This method initialize default object of the QuasarAppUtils::Settings type.
QVariant getValueImplementation(const QString &key, const QVariant &def) override
getValueImplementation This method will return the value of the settings.
virtual bool isBool(const QString &key) const
isBool This method should be return true if the key's type is bool. This is needed because QVariant w...
QHash< QString, QVariant > defaultSettings() override
void setBoolOptions(const QSet< QString > &newBoolOptions)
setBoolOptions This method sets new map of the boolean options.
void setValueImplementation(const QString key, const QVariant &value) override
setValueImplementation This slot will set a new value for the key parameter.
void syncImplementation() override
syncImplementation This method should save all configuration data to the hard drive;
The QuasaraAppUtils class This lib include base functions for the all applications of QuasarApp group...
void gen(int size, QByteArray &result)