digiKam
gpsiteminfo.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 : 2011-01-06
7  * Description : Helper class for geomap interaction
8  *
9  * Copyright (C) 2011 by Michael G. Hansen <mike at mghansen dot de>
10  * Copyright (C) 2011-2022 by Gilles Caulier <caulier dot gilles 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_GPS_ITEM_INFO_H
26 #define DIGIKAM_GPS_ITEM_INFO_H
27 
28 // Qt includes
29 
30 #include <QDateTime>
31 #include <QUrl>
32 
33 // Local includes
34 
35 #include "digikam_export.h"
36 #include "geocoordinates.h"
37 #include "geogroupstate.h"
38 
39 namespace Digikam
40 {
41 
42 class DIGIKAM_EXPORT GPSItemInfo
43 {
44 public:
45 
46  explicit GPSItemInfo();
47  ~GPSItemInfo();
48 
49 public:
50 
51  static GPSItemInfo fromIdCoordinatesRatingDateTime(const qlonglong p_id,
52  const GeoCoordinates& p_coordinates,
53  const int p_rating,
54  const QDateTime& p_creationDate);
55 
56 public:
57 
58  qlonglong id;
60  int rating;
61  QDateTime dateTime;
62  QUrl url;
63 
65 };
66 
67 } // namespace Digikam
68 
69 Q_DECLARE_METATYPE(Digikam::GPSItemInfo)
70 
71 #endif // DIGIKAM_GPS_ITEM_INFO_H
Definition: gpsiteminfo.h:43
qlonglong id
Definition: gpsiteminfo.h:58
QDateTime dateTime
Definition: gpsiteminfo.h:61
int rating
Definition: gpsiteminfo.h:60
GeoCoordinates coordinates
Definition: gpsiteminfo.h:59
QList< GPSItemInfo > List
Definition: gpsiteminfo.h:64
QUrl url
Definition: gpsiteminfo.h:62
Definition: geocoordinates.h:49
Definition: datefolderview.cpp:43