18 #ifndef QGSABSTRACTMETADATABASE_H 19 #define QGSABSTRACTMETADATABASE_H 22 #include "qgis_core.h" 61 if ( dynamic_cast< QgsLayerMetadata * >( sipCpp ) != NULL )
62 sipType = sipType_QgsLayerMetadata;
63 else if ( dynamic_cast< QgsProjectMetadata * >( sipCpp ) != NULL )
64 sipType = sipType_QgsProjectMetadata;
91 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() )
95 , administrativeArea( administrativeArea )
96 , postalCode( postalCode )
213 Link(
const QString &name = QString(),
const QString &type = QString(),
const QString &url = QString() )
263 typedef QList< QgsAbstractMetadataBase::Link >
LinkList;
277 QString identifier()
const;
283 void setIdentifier(
const QString &identifier );
290 QString parentIdentifier()
const;
297 void setParentIdentifier(
const QString &parentIdentifier );
306 QString language()
const;
314 void setLanguage(
const QString &language );
321 QString type()
const;
328 void setType(
const QString &type );
334 QString title()
const;
340 void setTitle(
const QString &title );
346 QString
abstract()
const;
352 void setAbstract(
const QString &
abstract );
358 QStringList history()
const;
366 void setHistory(
const QStringList &history );
373 void addHistoryItem(
const QString &text );
412 void addKeywords(
const QString &vocabulary,
const QStringList &keywords );
420 bool removeKeywords(
const QString &vocabulary );
430 QStringList keywordVocabularies()
const;
442 QStringList keywords(
const QString &vocabulary )
const;
450 QStringList categories()
const;
458 void setCategories(
const QStringList &categories );
512 virtual bool readMetadataXml(
const QDomElement &metadataElement );
525 virtual bool writeMetadataXml( QDomElement &metadataElement, QDomDocument &document )
const;
588 #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)