blob: f890b0cd158ee4d81940f40fd8f0e8e99aa4b67b (
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
31
32
33
34
35
36
37
38
39
|
#ifndef POIOBJECT_H
#define POIOBJECT_H
#include <QObject>
class PoiObject : public QObject
{
Q_OBJECT
Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged)
Q_PROPERTY(bool active READ active WRITE setActive NOTIFY activeChanged)
Q_PROPERTY(int distance READ distance WRITE setDistance NOTIFY distanceChanged)
public:
PoiObject(QObject *parent=0);
PoiObject(const QString &name, const bool &active, const int distance, QObject *parent=0);
QString name() const;
void setName(const QString &name);
bool active() const;
void setActive(const bool &active);
int distance() const;
void setDistance(const int distance);
signals:
void nameChanged();
void activeChanged();
void distanceChanged();
private:
QString m_name;
bool m_active;
int m_distance;
};
#endif // POIOBJECT_H
|