File indexing completed on 2025-01-05 03:58:37
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2011-01-06 0007 * Description : Helper class for geomap interaction 0008 * 0009 * SPDX-FileCopyrightText: 2011 by Michael G. Hansen <mike at mghansen dot de> 0010 * SPDX-FileCopyrightText: 2011-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0011 * 0012 * SPDX-License-Identifier: GPL-2.0-or-later 0013 * 0014 * ============================================================ */ 0015 0016 #ifndef DIGIKAM_GPS_ITEM_INFO_H 0017 #define DIGIKAM_GPS_ITEM_INFO_H 0018 0019 // Qt includes 0020 0021 #include <QDateTime> 0022 #include <QUrl> 0023 0024 // Local includes 0025 0026 #include "digikam_export.h" 0027 #include "geocoordinates.h" 0028 #include "geogroupstate.h" 0029 0030 namespace Digikam 0031 { 0032 0033 class DIGIKAM_EXPORT GPSItemInfo 0034 { 0035 public: 0036 0037 explicit GPSItemInfo(); 0038 ~GPSItemInfo(); 0039 0040 public: 0041 0042 static GPSItemInfo fromIdCoordinatesRatingDateTime(const qlonglong p_id, 0043 const GeoCoordinates& p_coordinates, 0044 const int p_rating, 0045 const QDateTime& p_creationDate); 0046 0047 public: 0048 0049 qlonglong id; 0050 GeoCoordinates coordinates; 0051 int rating; 0052 QDateTime dateTime; 0053 QUrl url; 0054 0055 typedef QList<GPSItemInfo> List; 0056 }; 0057 0058 } // namespace Digikam 0059 0060 Q_DECLARE_METATYPE(Digikam::GPSItemInfo) 0061 0062 #endif // DIGIKAM_GPS_ITEM_INFO_H