diff options
Diffstat (limited to 'saltoqd/settings.h')
-rw-r--r-- | saltoqd/settings.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/saltoqd/settings.h b/saltoqd/settings.h new file mode 100644 index 0000000..bfc0dcb --- /dev/null +++ b/saltoqd/settings.h @@ -0,0 +1,29 @@ +#ifndef SETTINGS_H +#define SETTINGS_H + +#include <MDConfGroup> + +class Settings : public MDConfGroup +{ + Q_OBJECT + Q_PROPERTY(QString address READ address WRITE setAddress NOTIFY addressChanged) + +public: + explicit Settings(const QString &path, QObject *parent = 0); + + QString address() const; + void setAddress(const QString &addr); + +signals: + void addressChanged(); + +private: + QString _address; +}; + +inline QString Settings::address() const +{ + return _address; +} + +#endif // SETTINGS_H |