File indexing completed on 2024-04-28 03:50:19

0001 // SPDX-License-Identifier: LGPL-2.1-or-later
0002 //
0003 // SPDX-FileCopyrightText: 2011 Daniel Marth <danielmarth@gmx.at>
0004 //
0005 
0006 #include "OpenCachingCacheDescription.h"
0007 
0008 namespace Marble
0009 {
0010 
0011 OpenCachingCacheDescription::OpenCachingCacheDescription( const QHash<QString, QVariant>& properties  )
0012 {
0013     m_cacheId = properties["cacheid"].toULongLong();
0014     m_language = properties["language"].toString();
0015     m_shortDescription = properties["shortdesc"].toString();
0016     m_description = properties["desc"].toString();
0017     m_hint = properties["hint"].toString();
0018     m_lastModifiedDate = properties["lastmodified"].toDateTime();
0019 }
0020 
0021 void OpenCachingCacheDescription::setCacheId( unsigned long long cacheId )
0022 {
0023     m_cacheId = cacheId;
0024 }
0025 
0026 unsigned long long OpenCachingCacheDescription::cacheId() const
0027 {
0028     return m_cacheId;
0029 }
0030 
0031 void OpenCachingCacheDescription::setLanguage( const QString& language )
0032 {
0033     m_language = language;
0034 }
0035 
0036 const QString& OpenCachingCacheDescription::language() const
0037 {
0038     return m_language;
0039 }
0040 
0041 void OpenCachingCacheDescription::setShortDescription( const QString& shortDescription )
0042 {
0043     m_shortDescription = shortDescription;
0044 }
0045 
0046 const QString& OpenCachingCacheDescription::shortDescription() const
0047 {
0048     return m_shortDescription;
0049 }
0050 
0051 void OpenCachingCacheDescription::setDescription( const QString& description )
0052 {
0053     m_description = description;
0054 }
0055 
0056 const QString& OpenCachingCacheDescription::description() const
0057 {
0058     return m_description;
0059 }
0060 
0061 void OpenCachingCacheDescription::setHint( const QString& hint )
0062 {
0063     m_hint = hint;
0064 }
0065 
0066 const QString& OpenCachingCacheDescription::hint() const
0067 {
0068     return m_hint;
0069 }
0070 
0071 void OpenCachingCacheDescription::setLastModifiedDate( const QDateTime& lastModifiedDate )
0072 {
0073     m_lastModifiedDate = lastModifiedDate;
0074 }
0075 
0076 const QDateTime& OpenCachingCacheDescription::lastModifiedDate() const
0077 {
0078     return m_lastModifiedDate;
0079 }
0080 
0081 }