navit  0.5.1-trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups
qml_bookmark.h
Go to the documentation of this file.
1 #ifndef BOOKMARKOBJECT_H
2 #define BOOKMARKOBJECT_H
3 
4 #include <QObject>
5 #include "coord.h"
6 
7 class BookmarkObject : public QObject
8 {
9  Q_OBJECT
10 
11  Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged)
12  Q_PROPERTY(struct pcoord coords NOTIFY coordsChanged)
13 
14 public:
15  BookmarkObject(QObject *parent=0);
16  BookmarkObject(const QString &name, struct pcoord &coords, QObject *parent=0);
17  QString name() const;
18  void setName(const QString &name);
19 
20  struct pcoord coords() const;
21 
22 signals:
23  void nameChanged();
24 
25 private:
26  struct pcoord m_coords;
27  QString m_name;
28 };
29 
30 #endif // BOOKMARKOBJECT_H
31 
void nameChanged()
QString name() const
BookmarkObject(QObject *parent=0)
Definition: qml_bookmark.cpp:3
Definition: gpx2navit_txt.h:51
QString m_name
Definition: qml_bookmark.h:27
struct pcoord coords() const
Definition: qml_bookmark.cpp:29
void setName(const QString &name)
Definition: qml_bookmark.cpp:21
Definition: coord.h:40
Definition: qml_bookmark.h:7
struct pcoord m_coords
Definition: qml_bookmark.h:26