navit  0.5.3-trunk
qml_map.h
Go to the documentation of this file.
1 #ifndef MAPOBJECT_H
2 #define MAPOBJECT_H
3 
4 #include <QObject>
5 
6 class MapObject : public QObject
7 {
8  Q_OBJECT
9 
10  Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged)
11  Q_PROPERTY(bool active READ active WRITE setActive NOTIFY activeChanged)
12 
13 public:
14  MapObject(QObject *parent=0);
15  MapObject(const QString &name, const bool &active, QObject *parent=0);
16 
17  QString name() const;
18  void setName(const QString &name);
19 
20  bool active() const;
21  void setActive(const bool &active);
22 
23 signals:
24  void nameChanged();
25  void activeChanged();
26 
27 private:
28  QString m_name;
29  bool m_active;
30 };
31 
32 #endif // MAPOBJECT_H
Definition: qml_map.h:7
void setActive(const bool &active)
Definition: qml_map.cpp:26
MapObject(QObject *parent=0)
Definition: qml_map.cpp:3
bool active
Definition: qml_map.h:11
void setName(const QString &name)
Definition: qml_map.cpp:15
bool m_active
Definition: qml_map.h:29
void nameChanged()
void activeChanged()
QString m_name
Definition: qml_map.h:28
QString name
Definition: qml_map.h:10
Definition: gpx2navit_txt.h:51