1 #ifndef INISETTINGS_HPP
2 #define INISETTINGS_HPP
20 inline QVariant
value(
const QString &key,
const QVariant &defaultValue = QVariant())
const
22 return mSettings.value(key, defaultValue);
25 inline QList<QVariant>
values()
const
35 inline void remove(
const QString &key)
40 QStringList
findKeys(
const QString &text);
43 bool writeFile(
const QString &path, QTextStream &stream);
56 #endif // INISETTINGS_HPP
~IniSettings()
Definition: inisettings.cpp:16
bool writeFile(const QString &path, QTextStream &stream)
Definition: inisettings.cpp:75
QHash< QString, QVariant > SettingsMap
Definition: inisettings.hpp:12
void setValue(const QString &key, const QVariant &value)
Definition: inisettings.hpp:30
Definition: inisettings.hpp:14
int getLastNewline(const QString &buffer, int from)
SettingsMap mSettings
Definition: inisettings.hpp:51
QVariant value(const QString &key, const QVariant &defaultValue=QVariant()) const
Definition: inisettings.hpp:20
QList< QVariant > values() const
Definition: inisettings.hpp:25
QStringList findKeys(const QString &text)
Definition: inisettings.cpp:20
bool parseInx(const QString &path)
Definition: inisettings.cpp:169
bool readFile(QTextStream &stream)
Definition: inisettings.cpp:34
IniSettings()
Definition: inisettings.cpp:12