File indexing completed on 2024-05-19 03:51:50

0001 /*
0002     SPDX-FileCopyrightText: 2008 Torsten Rahn <rahn@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "GeoScenePalette.h"
0008 
0009 #include "GeoSceneTypes.h"
0010 
0011 namespace Marble
0012 {
0013 
0014 GeoScenePalette::GeoScenePalette( const QString& type,
0015                                   const QString& file )
0016     : m_type( type ),
0017       m_file( file )
0018 {
0019 }
0020 
0021 QString GeoScenePalette::type() const
0022 {
0023     return m_type;
0024 }
0025 
0026 void GeoScenePalette::setType( const QString& type )
0027 {
0028     m_type = type;
0029 }
0030 
0031 QString GeoScenePalette::file() const
0032 {
0033     return m_file;
0034 }
0035 
0036 void GeoScenePalette::setFile( const QString& file )
0037 {
0038     m_file = file;
0039 }
0040 
0041 bool GeoScenePalette::operator==( const GeoScenePalette& rhs ) const
0042 {
0043     return m_file == rhs.m_file && m_type == rhs.m_type;
0044 }
0045 
0046 const char *GeoScenePalette::nodeType() const
0047 {
0048     return GeoSceneTypes::GeoScenePaletteType;
0049 }
0050 
0051 }