1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-03 23:50:33 +02:00
Files
joplin/QtClient/JoplinQtClient/settings.h

30 lines
438 B
C
Raw Normal View History

2016-12-27 21:25:07 +01:00
#ifndef SETTINGS_H
#define SETTINGS_H
#include <stable.h>
2017-01-05 23:54:13 +01:00
#include "database.h"
2016-12-27 21:25:07 +01:00
namespace jop {
class Settings : public QSettings {
Q_OBJECT
2017-01-05 23:54:13 +01:00
public:
Settings();
static void initialize();
QString keyValueToFriendlyString(const QString& key) const;
2017-01-05 23:54:13 +01:00
public slots:
QString valueString(const QString& name, const QString& defaultValue = "");
int valueInt(const QString& name, int defaultValue = 0);
2016-12-27 21:25:07 +01:00
};
}
#endif // SETTINGS_H