18 #ifndef QGSABSTRACTMETADATABASE_H 19 #define QGSABSTRACTMETADATABASE_H 22 #include "qgis_core.h" 58 if ( dynamic_cast< QgsLayerMetadata * >( sipCpp ) != NULL )
59 sipType = sipType_QgsLayerMetadata;
60 else if ( dynamic_cast< QgsProjectMetadata * >( sipCpp ) != NULL )
61 sipType = sipType_QgsProjectMetadata;
88 Address(
const QString &type = QString(),
const QString &address = QString(),
const QString &city = QString(),
const QString &administrativeArea = QString(),
const QString &postalCode = QString(),
const QString &country = QString() )
92 , administrativeArea( administrativeArea )
93 , postalCode( postalCode )
210 Link(
const QString &name = QString(),
const QString &type = QString(),
const QString &url = QString() )
260 typedef QList< QgsAbstractMetadataBase::Link >
LinkList;
274 QString identifier()
const;
280 void setIdentifier(
const QString &identifier );
287 QString parentIdentifier()
const;
294 void setParentIdentifier(
const QString &parentIdentifier );
303 QString language()
const;
311 void setLanguage(
const QString &language );
318 QString type()
const;
325 void setType(
const QString &type );
331 QString title()
const;
337 void setTitle(
const QString &title );
343 QString
abstract()
const;
349 void setAbstract(
const QString &
abstract );
355 QStringList history()
const;
363 void setHistory(
const QStringList &history );
370 void addHistoryItem(
const QString &text );
409 void addKeywords(
const QString &vocabulary,
const QStringList &keywords );
417 bool removeKeywords(
const QString &vocabulary );
427 QStringList keywordVocabularies()
const;
439 QStringList keywords(
const QString &vocabulary )
const;
447 QStringList categories()
const;
455 void setCategories(
const QStringList &categories );
509 virtual bool readMetadataXml(
const QDomElement &metadataElement );
522 virtual bool writeMetadataXml( QDomElement &metadataElement, QDomDocument &document )
const;
585 #endif // QGSABSTRACTMETADATABASE_H
QList< QgsAbstractMetadataBase::Link > LinkList
A list of links.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
QList< QgsAbstractMetadataBase::Contact > ContactList
A list of contacts.
Q_DECLARE_METATYPE(QModelIndex)
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)