digiKam
backend-osm-rg.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2010-05-12
7  * Description : OSM Nominatim backend for Reverse Geocoding
8  *
9  * Copyright (C) 2010 by Michael G. Hansen <mike at mghansen dot de>
10  * Copyright (C) 2010 by Gabriel Voicu <ping dot gabi at gmail dot com>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option)
16  * any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * ============================================================ */
24 
25 #ifndef DIGIKAM_BACKEND_OSM_RG_H
26 #define DIGIKAM_BACKEND_OSM_RG_H
27 
28 // Qt includes
29 
30 #include <QNetworkReply>
31 #include <QList>
32 #include <QUrl>
33 #include <QMap>
34 
35 // Local includes
36 
37 #include "backend-rg.h"
38 #include "digikam_export.h"
39 
40 namespace Digikam
41 {
42 
43 class DIGIKAM_EXPORT BackendOsmRG : public RGBackend
44 {
45  Q_OBJECT
46 
47 public:
48 
49  explicit BackendOsmRG(QObject* const parent);
50  ~BackendOsmRG() override;
51 
52  QMap<QString, QString> makeQMapFromXML(const QString& xmlData);
53 
54  void callRGBackend(const QList<RGInfo>& rgList,const QString& language) override;
55  QString getErrorMessage() override;
56  QString backendName() override;
57  void cancelRequests() override;
58 
59 private Q_SLOTS:
60 
61  void nextPhoto();
62  void slotFinished(QNetworkReply* reply);
63 
64 private:
65 
66  class Private;
67  Private* const d;
68 };
69 
70 } // namespace Digikam
71 
72 #endif // DIGIKAM_BACKEND_OSM_RG_H
This class calls Open Street Map's reverse geocoding service.
Definition: backend-osm-rg.h:44
This class is a base class for Open Street Map and Geonames backends.
Definition: backend-rg.h:37
Definition: piwigotalker.h:48
Definition: datefolderview.cpp:43