diff options
| author | Anton <anton@picapica> | 2016-09-04 00:56:35 +0400 |
|---|---|---|
| committer | Anton <anton@picapica> | 2016-09-04 00:56:35 +0400 |
| commit | 316f68fc0f86be551052ef79d3da9b32b031e675 (patch) | |
| tree | 9dc84951399f73696bbc273b9962565b2d360f69 /pica-client/settings.h | |
| parent | eb9d793ca218f61169997f2efcd838c831b614ac (diff) | |
| download | pica-pica-316f68fc0f86be551052ef79d3da9b32b031e675.tar.gz pica-pica-316f68fc0f86be551052ef79d3da9b32b031e675.zip | |
added Settings class
Diffstat (limited to 'pica-client/settings.h')
| -rw-r--r-- | pica-client/settings.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/pica-client/settings.h b/pica-client/settings.h new file mode 100644 index 0000000..d7d5b5f --- /dev/null +++ b/pica-client/settings.h @@ -0,0 +1,23 @@ +#ifndef SETTINGS_H +#define SETTINGS_H + +#include <QtSql> +#include <QSqlDatabase> +#include <QVariant> + +class Settings +{ +public: + Settings(QString storage); + + QVariant loadValue(QString name, QVariant defval); + void storeValue(QString name, QString val); + + QString GetLastError(); + +private: + QSqlDatabase dbconn; + QSqlError lasterr; +}; + +#endif // SETTINGS_H |
