File indexing completed on 2025-01-05 03:58:33

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2010-03-21
0007  * Description : Reverse geocoding data.
0008  *
0009  * SPDX-FileCopyrightText: 2010-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0010  * SPDX-FileCopyrightText: 2010-2014 by Michael G. Hansen <mike at mghansen dot de>
0011  *
0012  * SPDX-License-Identifier: GPL-2.0-or-later
0013  *
0014  * ============================================================ */
0015 
0016 #ifndef DIGIKAM_RG_INFO_H
0017 #define DIGIKAM_RG_INFO_H
0018 
0019 // Qt includes
0020 
0021 #include <QPersistentModelIndex>
0022 #include <QMap>
0023 
0024 // Local includes
0025 
0026 #include "geoifacetypes.h"
0027 #include "gpsdatacontainer.h"
0028 #include "digikam_export.h"
0029 
0030 namespace Digikam
0031 {
0032 
0033 /**
0034  * @class RGInfo
0035  *
0036  * @brief This class contains data needed in reverse geocoding process.
0037  */
0038 class DIGIKAM_EXPORT RGInfo
0039 {
0040 public:
0041 
0042     /**
0043      * Constructor
0044      */
0045     explicit RGInfo();
0046 
0047     /**
0048      * Destructor
0049      */
0050     ~RGInfo();
0051 
0052 public:
0053 
0054     /**
0055      * The image index.
0056      */
0057     QPersistentModelIndex  id;
0058 
0059     /**
0060      * The coordinates of current image.
0061      */
0062     GeoCoordinates         coordinates;
0063 
0064     /**
0065      * The address elements and their names.
0066      */
0067     QMap<QString, QString> rgData;
0068 };
0069 
0070 } // namespace Digikam
0071 
0072 #endif // DIGIKAM_RG_INFO_H