Merge branch 'nikosmaster'
[ptas] / zouba / src / logic / location.h
diff --git a/zouba/src/logic/location.h b/zouba/src/logic/location.h
new file mode 100644 (file)
index 0000000..a354e9d
--- /dev/null
@@ -0,0 +1,44 @@
+#ifndef LOCATION_H
+#define LOCATION_H
+
+#include <QString>
+
+
+class Location
+{
+
+public:
+    Location( const QString &x, const QString &y, const QString &label, const QString &address = QString());
+
+    //Location( const QGeoPositionInfo &positionInfo, const QString &label=QString() );
+    Location( const QString &label, const QString &address);
+    //Location(const Location &location);
+    //Location(const Location *location);
+
+    Location& operator=(const Location &other);
+
+    QString x() const;
+    QString y() const;
+
+    void setPosition(const QString &x, const QString &y, const QString &address = QString());
+
+    //void setAddress( const QString &address );
+    QString address() const;
+
+    void setLabel( const QString &label );
+    QString label() const;
+
+    bool isValid() const;
+
+protected:
+    QString m_label;
+    QString m_address;
+    QString m_x;
+    QString m_y;
+    bool m_valid;
+};
+
+
+
+
+#endif // LOCATION_H