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 #ifndef MARBLE_GEOSCENE_LICENSE_H 0007 #define MARBLE_GEOSCENE_LICENSE_H 0008 0009 #include <QString> 0010 0011 #include "digikam_export.h" 0012 0013 #include "GeoDocument.h" 0014 0015 namespace Marble 0016 { 0017 0018 class DIGIKAM_EXPORT GeoSceneLicense : public GeoNode 0019 { 0020 public: 0021 enum Attribution { 0022 Never, 0023 OptOut, 0024 OptIn, 0025 Always 0026 }; 0027 0028 GeoSceneLicense(); 0029 0030 QString license() const; 0031 QString shortLicense() const; 0032 Attribution attribution() const; 0033 0034 void setLicense( const QString &license ); 0035 void setShortLicense( const QString &license ); 0036 void setAttribution(Attribution attr ); 0037 0038 const char *nodeType() const override; 0039 0040 private: 0041 QString m_fullLicense; 0042 QString m_shortLicense; 0043 Attribution m_attribution; 0044 0045 }; 0046 0047 } 0048 0049 #endif