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

0001 /*
0002     SPDX-FileCopyrightText: 2008 Torsten Rahn <rahn@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "GeoSceneAbstractDataset.h"
0008 
0009 #include <limits>
0010 
0011 namespace Marble
0012 {
0013 
0014 // FIXME: Filters are a Dataset.
0015 
0016 GeoSceneAbstractDataset::GeoSceneAbstractDataset( const QString& name )
0017     : m_name( name ),
0018       m_fileFormat(),
0019       m_expire( std::numeric_limits<int>::max() )
0020 {
0021 }
0022 
0023 QString GeoSceneAbstractDataset::name() const
0024 {
0025     return m_name;
0026 }
0027 
0028 QString GeoSceneAbstractDataset::fileFormat() const
0029 {
0030     return m_fileFormat;
0031 }
0032 
0033 void GeoSceneAbstractDataset::setFileFormat( const QString& fileFormat )
0034 {
0035     m_fileFormat = fileFormat;
0036 }
0037 
0038 int GeoSceneAbstractDataset::expire() const
0039 {
0040     return m_expire;
0041 }
0042 
0043 void GeoSceneAbstractDataset::setExpire( int expire )
0044 {
0045     m_expire = expire;
0046 }
0047 
0048 }