blob: 4c1ef8744d777920b9ee30afe4812654d427cc02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#ifndef SETTINGS_H
#define SETTINGS_H
#include <MDConfGroup>
#include "global.h"
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
|