Go to the documentation of this file.00001 #ifndef GEOCODE_DATA_MANAGER_H
00002 #define GEOCODE_DATA_MANAGER_H
00003
00004 #include <QObject>
00005 #include <QNetworkAccessManager>
00006 #include <QNetworkReply>
00007
00008
00009 class GeocodeDataManager : public QObject
00010 {
00011 Q_OBJECT
00012 public:
00013 explicit GeocodeDataManager(QObject *parent = 0);
00014
00015 void getCoordinates(const QString& address);
00016
00017 signals:
00018 void errorOccured(const QString&);
00019 void coordinatesReady(double east, double north);
00020
00021 private slots:
00022 void replyFinished(QNetworkReply* reply);
00023
00024 private:
00025 QNetworkAccessManager* m_pNetworkAccessManager;
00026
00027
00028 };
00029
00030 #endif // GEOCODE_DATA_MANAGER_H