86 void setRelationId(
const QString&
id );
93 void setRelationName(
const QString& name );
100 void setReferencingLayer(
const QString&
id );
107 void setReferencedLayer(
const QString&
id );
117 void addFieldPair(
const QString& referencingField,
const QString& referencedField );
127 void addFieldPair(
const FieldPair& fieldPair );
216 QString referencingLayerId()
const;
231 QString referencedLayerId()
const;
270 bool isValid()
const;
277 void updateRelationStatus();
304 #endif // QGSRELATION_H Wrapper for iterator of features from vector data provider or vector layer.
Q_DECLARE_METATYPE(QgsMimeDataUtils::UriList)
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
FieldPair()
Default constructor: NULL strings.
Defines a relation between matching fields of the two involved tables of a relation.
This class wraps a request for features to a vector layer (or directly its vector data provider)...
QString referencedField() const
Get the name of the referenced (parent) field.
FieldPair(const QString &referencingField, const QString &referencedField)
Constructor which takes two fields.
Represents a vector layer which manages a vector based data sets.
QString referencingField() const
Get the name of the referencing (child) field.