1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2012 Illya Kovalevskyy <illya.kovalevskyy@gmail.com>
4 //
5 
6 #include "GeoSceneLicense.h"
7 
8 #include "GeoSceneTypes.h"
9 
10 namespace Marble
11 {
12 
GeoSceneLicense()13 GeoSceneLicense::GeoSceneLicense() :
14     m_attribution( OptOut )
15 {
16     // nothing to do
17 }
18 
license() const19 QString GeoSceneLicense::license() const
20 {
21     return m_fullLicense.isEmpty() ? m_shortLicense : m_fullLicense;
22 }
23 
shortLicense() const24 QString GeoSceneLicense::shortLicense() const
25 {
26     return m_shortLicense.isEmpty() ? m_fullLicense : m_shortLicense;
27 }
28 
attribution() const29 GeoSceneLicense::Attribution GeoSceneLicense::attribution() const
30 {
31     return m_attribution;
32 }
33 
setLicense(const QString & license)34 void GeoSceneLicense::setLicense(const QString &license )
35 {
36     m_fullLicense = license;
37 }
38 
setShortLicense(const QString & license)39 void GeoSceneLicense::setShortLicense( const QString &license )
40 {
41     m_shortLicense = license;
42 }
43 
setAttribution(Attribution attr)44 void GeoSceneLicense::setAttribution(Attribution attr )
45 {
46     m_attribution = attr;
47 }
48 
nodeType() const49 const char *GeoSceneLicense::nodeType() const
50 {
51     return GeoSceneTypes::GeoSceneLicenseType;
52 }
53 
54 }
55