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 #include "gpsiteminfo.h"
0017 
0018 namespace Digikam
0019 {
0020 
0021 GPSItemInfo::GPSItemInfo()
0022     : id            (-2),
0023       coordinates   (),
0024       rating        (-1),
0025       dateTime      (),
0026       url           ()
0027 {
0028 }
0029 
0030 GPSItemInfo::~GPSItemInfo()
0031 {
0032 }
0033 
0034 GPSItemInfo GPSItemInfo::fromIdCoordinatesRatingDateTime(const qlonglong p_id,
0035                                                          const GeoCoordinates& p_coordinates,
0036                                                          const int p_rating,
0037                                                          const QDateTime& p_creationDate)
0038 {
0039     GPSItemInfo info;
0040     info.id          = p_id;
0041     info.coordinates = p_coordinates;
0042     info.rating      = p_rating;
0043     info.dateTime    = p_creationDate;
0044 
0045     return info;
0046 }
0047 
0048 } // namespace Digikam