Marble

GeoSceneLicense.cpp
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2012 Illya Kovalevskyy <[email protected]>
4 //
5 
6 #include "GeoSceneLicense.h"
7 
8 #include "GeoSceneTypes.h"
9 
10 namespace Marble
11 {
12 
13 GeoSceneLicense::GeoSceneLicense() :
14  m_attribution( OptOut )
15 {
16  // nothing to do
17 }
18 
19 QString GeoSceneLicense::license() const
20 {
21  return m_fullLicense.isEmpty() ? m_shortLicense : m_fullLicense;
22 }
23 
24 QString GeoSceneLicense::shortLicense() const
25 {
26  return m_shortLicense.isEmpty() ? m_fullLicense : m_shortLicense;
27 }
28 
29 GeoSceneLicense::Attribution GeoSceneLicense::attribution() const
30 {
31  return m_attribution;
32 }
33 
34 void GeoSceneLicense::setLicense(const QString &license )
35 {
36  m_fullLicense = license;
37 }
38 
39 void GeoSceneLicense::setShortLicense( const QString &license )
40 {
41  m_shortLicense = license;
42 }
43 
44 void GeoSceneLicense::setAttribution(Attribution attr )
45 {
46  m_attribution = attr;
47 }
48 
49 const char *GeoSceneLicense::nodeType() const
50 {
51  return GeoSceneTypes::GeoSceneLicenseType;
52 }
53 
54 }
bool isEmpty() const const
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 21 2023 04:12:26 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.