|
| 1 | +/*************************************************************************** |
| 2 | + qgslayermetadata.h |
| 3 | + ------------------- |
| 4 | + begin : April 2017 |
| 5 | + copyright : (C) 2017 by Nyall Dawson |
| 6 | + email : nyall dot dawson at gmail dot com |
| 7 | + ***************************************************************************/ |
| 8 | + |
| 9 | +/*************************************************************************** |
| 10 | + * * |
| 11 | + * This program is free software; you can redistribute it and/or modify * |
| 12 | + * it under the terms of the GNU General Public License as published by * |
| 13 | + * the Free Software Foundation; either version 2 of the License, or * |
| 14 | + * (at your option) any later version. * |
| 15 | + * * |
| 16 | + ***************************************************************************/ |
| 17 | + |
| 18 | +#ifndef QGSLAYERMETADATA_H |
| 19 | +#define QGSLAYERMETADATA_H |
| 20 | + |
| 21 | +#include "qgis.h" |
| 22 | +#include "qgis_core.h" |
| 23 | + |
| 24 | +class CORE_EXPORT QgsLayerMetadata |
| 25 | +{ |
| 26 | + public: |
| 27 | + |
| 28 | + QgsLayerMetadata() = default; |
| 29 | + |
| 30 | + virtual ~QgsLayerMetadata() = default; |
| 31 | + |
| 32 | + |
| 33 | + QString identifier() const; |
| 34 | + void setIdentifier( const QString &identifier ); |
| 35 | + |
| 36 | + /** |
| 37 | + * Returns an empty string if no parent identifier is set. |
| 38 | + */ |
| 39 | + QString parentIdentifier() const; |
| 40 | + |
| 41 | + |
| 42 | + void setParentIdentifier( const QString &parentIdentifier ); |
| 43 | + |
| 44 | + QString type() const; |
| 45 | + void setType( const QString &type ); |
| 46 | + |
| 47 | + QString title() const; |
| 48 | + void setTitle( const QString &title ); |
| 49 | + |
| 50 | + QString abstract() const; |
| 51 | + void setAbstract( const QString &abstract ); |
| 52 | + |
| 53 | + /** |
| 54 | + * Returns an empty string if no fees are set. |
| 55 | + */ |
| 56 | + QString fees() const; |
| 57 | + void setFees( const QString &fees ); |
| 58 | + |
| 59 | + QStringList constraints() const; |
| 60 | + void setConstraints( const QStringList &constraints ); |
| 61 | + |
| 62 | + QStringList rights() const; |
| 63 | + void setRights( const QStringList &rights ); |
| 64 | + |
| 65 | + /** |
| 66 | + * Returns an empty string if no encoding is set. |
| 67 | + */ |
| 68 | + QString encoding() const; |
| 69 | + void setEncoding( const QString &encoding ); |
| 70 | + |
| 71 | + private: |
| 72 | + |
| 73 | + QString mIdentifier; |
| 74 | + QString mParentIdentifier; |
| 75 | + QString mType; |
| 76 | + QString mTitle; |
| 77 | + QString mAbstract; |
| 78 | + QString mFees; |
| 79 | + QStringList mConstraints; |
| 80 | + QStringList mRights; |
| 81 | + QString mEncoding; |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | +}; |
| 86 | + |
| 87 | +#endif // QGSLAYERMETADATA_H |
0 commit comments