Added address resolution, and moved everything up one directory.
[ptas] / zouba / location.h
diff --git a/zouba/location.h b/zouba/location.h
new file mode 100644 (file)
index 0000000..f04ad98
--- /dev/null
@@ -0,0 +1,42 @@
+#ifndef LOCATION_H
+#define LOCATION_H
+
+#include "location_p.h"
+
+#include <QString>
+#include <QObject>
+#include <QNetworkAccessManager>
+#include <QNetworkReply>
+
+class Location : public QObject
+{
+    Q_OBJECT
+
+public:
+  Location( QString x, QString y );
+  Location( const Location &from );
+  Location &operator=( const Location &from );
+  Location();
+
+  ~Location();
+
+  void resolveAddress( QString address );
+
+  QString x() const;
+
+  QString y() const;
+
+  bool isValid() const;
+
+Q_SIGNALS:
+  void becomeValid();
+
+private Q_SLOTS:
+  void replyFinished( QNetworkReply * reply );
+
+private:
+  LocationPrivate *q;
+  QNetworkAccessManager *manager;
+};
+
+#endif // LOCATION_H