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 #ifndef OPENCACHINGCACHEDESCRIPTION_H
0007 #define OPENCACHINGCACHEDESCRIPTION_H
0008 
0009 #include <QString>
0010 #include <QDateTime>
0011 #include <QHash>
0012 #include <QVariant>
0013 
0014 namespace Marble
0015 {
0016 
0017 /**
0018  * Stores the description of a cache in a single language.
0019  */
0020 class OpenCachingCacheDescription
0021 {
0022 public:    
0023     explicit OpenCachingCacheDescription( const QHash<QString, QVariant>& properties = QHash<QString, QVariant>() );
0024 
0025     void setCacheId( unsigned long long cacheId );
0026 
0027     unsigned long long cacheId() const;
0028 
0029     void setLanguage( const QString& language );
0030 
0031     const QString& language() const;
0032 
0033     void setShortDescription( const QString& shortDescription );
0034 
0035     const QString& shortDescription() const;
0036 
0037     void setDescription( const QString& description );
0038 
0039     const QString& description() const;
0040 
0041     void setHint( const QString& hint );
0042 
0043     const QString& hint() const;
0044 
0045     void setLastModifiedDate( const QDateTime& lastModifiedDate );
0046 
0047     const QDateTime& lastModifiedDate() const;
0048 
0049 private:
0050     unsigned long long m_cacheId;     ///< Unique ID of the cache.
0051 
0052     QString m_language;               ///< Language of the description.
0053 
0054     QString m_shortDescription;       ///< Short description of the cache.
0055 
0056     QString m_description;            ///< Actual description of the cache.
0057 
0058     QString m_hint;                   ///< Hint to find the cache.
0059 
0060     QDateTime m_lastModifiedDate;     ///< Date the description was last modified.
0061 };
0062 
0063 }
0064 
0065 #endif // OPENCACHINGCACHEDESCRIPTION_H