File indexing completed on 2025-03-09 03:57:14

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2010-05-12
0007  * Description : Abstract backend class for reverse geocoding.
0008  *
0009  * SPDX-FileCopyrightText: 2010-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0010  * SPDX-FileCopyrightText: 2010      by Michael G. Hansen <mike at mghansen dot de>
0011  * SPDX-FileCopyrightText: 2010      by Gabriel Voicu <ping dot gabi at gmail dot com>
0012  *
0013  * SPDX-License-Identifier: GPL-2.0-or-later
0014  *
0015  * ============================================================ */
0016 
0017 #ifndef DIGIKAM_BACKEND_RG_H
0018 #define DIGIKAM_BACKEND_RG_H
0019 
0020 // local includes
0021 
0022 #include "gpsitemcontainer.h"
0023 #include "digikam_export.h"
0024 
0025 namespace Digikam
0026 {
0027 
0028 class DIGIKAM_EXPORT RGBackend : public QObject
0029 {
0030     Q_OBJECT
0031 
0032 public:
0033 
0034     explicit RGBackend(QObject* const parent);
0035     RGBackend();
0036     ~RGBackend() override;
0037 
0038     virtual void callRGBackend(const QList<RGInfo>&, const  QString&) = 0;
0039     virtual QString getErrorMessage();
0040     virtual QString backendName();
0041     virtual void cancelRequests()                                     = 0;
0042 
0043 Q_SIGNALS:
0044 
0045     /**
0046      * @brief Emitted whenever some items are ready
0047      */
0048     void signalRGReady(QList<RGInfo>&);
0049 };
0050 
0051 } // namespace Digikam
0052 
0053 #endif // DIGIKAM_BACKEND_RG_H