Added address resolution, and moved everything up one directory.
[ptas] / zouba / location.h
1 #ifndef LOCATION_H
2 #define LOCATION_H
3
4 #include "location_p.h"
5
6 #include <QString>
7 #include <QObject>
8 #include <QNetworkAccessManager>
9 #include <QNetworkReply>
10
11 class Location : public QObject
12 {
13     Q_OBJECT
14
15 public:
16   Location( QString x, QString y );
17   Location( const Location &from );
18   Location &operator=( const Location &from );
19   Location();
20
21   ~Location();
22
23   void resolveAddress( QString address );
24
25   QString x() const;
26
27   QString y() const;
28
29   bool isValid() const;
30
31 Q_SIGNALS:
32   void becomeValid();
33
34 private Q_SLOTS:
35   void replyFinished( QNetworkReply * reply );
36
37 private:
38   LocationPrivate *q;
39   QNetworkAccessManager *manager;
40 };
41
42 #endif // LOCATION_H