1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date        : 2010-06-01
7  * Description : GPSSync common functions and structures
8  *
9  * Copyright (C) 2010-2021 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  * Copyright (C) 2010      by Michael G. Hansen <mike at mghansen dot de>
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_COMMON_H
26 #define DIGIKAM_GPS_COMMON_H
27 
28 // Qt includes
29 
30 #include <QString>
31 #include <QUrl>
32 
33 // Local includes
34 
35 #include "geocoordinates.h"
36 #include "digikam_export.h"
37 
38 namespace Digikam
39 {
40 
41 enum MapLayout
42 {
43     MapLayoutOne        = 0,
44     MapLayoutHorizontal = 1,
45     MapLayoutVertical   = 2
46 };
47 
48 DIGIKAM_EXPORT QString getUserAgentName();
49 
50 void DIGIKAM_EXPORT coordinatesToClipboard(const GeoCoordinates& coordinates,
51                                            const QUrl& url,
52                                            const QString& title);
53 
54 bool DIGIKAM_EXPORT checkSidecarSettings();
55 
56 } // namespace Digikam
57 
58 Q_DECLARE_METATYPE(Digikam::MapLayout)
59 
60 #endif // DIGIKAM_GPS_COMMON_H
61