File indexing completed on 2025-01-05 03:59:11
0001 // SPDX-License-Identifier: LGPL-2.1-or-later 0002 // 0003 // SPDX-FileCopyrightText: 2012 Illya Kovalevskyy <illya.kovalevskyy@gmail.com> 0004 // 0005 0006 #include "GeoSceneLicense.h" 0007 0008 #include "GeoSceneTypes.h" 0009 0010 namespace Marble 0011 { 0012 0013 GeoSceneLicense::GeoSceneLicense() : 0014 m_attribution( OptOut ) 0015 { 0016 // nothing to do 0017 } 0018 0019 QString GeoSceneLicense::license() const 0020 { 0021 return m_fullLicense.isEmpty() ? m_shortLicense : m_fullLicense; 0022 } 0023 0024 QString GeoSceneLicense::shortLicense() const 0025 { 0026 return m_shortLicense.isEmpty() ? m_fullLicense : m_shortLicense; 0027 } 0028 0029 GeoSceneLicense::Attribution GeoSceneLicense::attribution() const 0030 { 0031 return m_attribution; 0032 } 0033 0034 void GeoSceneLicense::setLicense(const QString &license ) 0035 { 0036 m_fullLicense = license; 0037 } 0038 0039 void GeoSceneLicense::setShortLicense( const QString &license ) 0040 { 0041 m_shortLicense = license; 0042 } 0043 0044 void GeoSceneLicense::setAttribution(Attribution attr ) 0045 { 0046 m_attribution = attr; 0047 } 0048 0049 const char *GeoSceneLicense::nodeType() const 0050 { 0051 return GeoSceneTypes::GeoSceneLicenseType; 0052 } 0053 0054 }