digiKam
Loading...
Searching...
No Matches
backend-geonamesUS-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 : Backend for reverse geocoding using geonames.org (US-only)
8 *
9 * SPDX-FileCopyrightText: 2010-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
10 * SPDX-FileCopyrightText: 2010 by Michael G. Hansen <mike at mghansen dot de>
11 * SPDX-FileCopyrightText: 2010 by Gabriel Voicu <ping dot gabi at gmail dot com>
12 *
13 * SPDX-License-Identifier: GPL-2.0-or-later
14 *
15 * ============================================================ */
16
17#pragma once
18
19// Qt includes
20
21#include <QNetworkReply>
22#include <QString>
23#include <QList>
24#include <QUrl>
25#include <QMap>
26
27// Local includes
28
29#include "digikam_export.h"
30#include "backend-rg.h"
31
32namespace Digikam
33{
34
35class DIGIKAM_EXPORT BackendGeonamesUSRG : public RGBackend
36{
37 Q_OBJECT
38
39public:
40
41 explicit BackendGeonamesUSRG(QObject* const parent);
42 ~BackendGeonamesUSRG() override;
43
44 QMap<QString, QString> makeQMapFromXML(const QString& xmlData);
45
46 void callRGBackend(const QList<RGInfo>& rgList, const QString& language) override;
47 QString getErrorMessage() override;
48 QString backendName() override;
49 void cancelRequests() override;
50
51private Q_SLOTS:
52
53 void nextPhoto();
54 void slotFinished(QNetworkReply* reply);
55
56private:
57
58 class Private;
59 Private* const d = nullptr;
60};
61
62} // namespace Digikam
This class calls Geonames' get address service available only for USA locations.
Definition backend-geonamesUS-rg.h:36
This class is a base class for Open Street Map and Geonames backends.
Definition backend-rg.h:28
Definition datefolderview.cpp:34