Marble

GeoSceneLicense.cpp
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
10namespace Marble
11{
12
13GeoSceneLicense::GeoSceneLicense()
14 : m_attribution(OptOut)
15{
16 // nothing to do
17}
18
19QString GeoSceneLicense::license() const
20{
21 return m_fullLicense.isEmpty() ? m_shortLicense : m_fullLicense;
22}
23
24QString GeoSceneLicense::shortLicense() const
25{
26 return m_shortLicense.isEmpty() ? m_fullLicense : m_shortLicense;
27}
28
29GeoSceneLicense::Attribution GeoSceneLicense::attribution() const
30{
31 return m_attribution;
32}
33
34void GeoSceneLicense::setLicense(const QString &license)
35{
36 m_fullLicense = license;
37}
38
39void GeoSceneLicense::setShortLicense(const QString &license)
40{
41 m_shortLicense = license;
42}
43
44void GeoSceneLicense::setAttribution(Attribution attr)
45{
46 m_attribution = attr;
47}
48
49const char *GeoSceneLicense::nodeType() const
50{
51 return GeoSceneTypes::GeoSceneLicenseType;
52}
53
54}
Binds a QML item to a specific geodetic location in screen coordinates.
bool isEmpty() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:37:03 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.