16 #ifndef QGSRELATIONMANAGER_H 17 #define QGSRELATIONMANAGER_H 19 #include "qgis_core.h" 23 #include <QDomDocument> 51 void setRelations(
const QList<QgsRelation> &relations );
58 QMap<QString, QgsRelation> relations()
const;
72 void removeRelation(
const QString &
id );
89 Q_INVOKABLE
QgsRelation relation(
const QString &
id )
const;
98 QList<QgsRelation> relationsByName(
const QString &name )
const;
113 QList<QgsRelation> referencingRelations(
const QgsVectorLayer *layer =
nullptr,
int fieldIdx = -2 )
const;
122 QList<QgsRelation> referencedRelations(
QgsVectorLayer *layer =
nullptr )
const;
132 static QList<QgsRelation> discoverRelations(
const QList<QgsRelation> &existingRelations,
const QList<QgsVectorLayer *> &layers );
136 void relationsLoaded();
145 void readProject(
const QDomDocument &doc );
146 void writeProject( QDomDocument &doc );
147 void layersRemoved(
const QStringList &layers );
151 QMap<QString, QgsRelation> mRelations;
156 #endif // QGSRELATIONMANAGER_H
Reads and writes project states.
This class manages a set of relations between layers.
Represents a vector layer which manages a vector based data sets.