43 : QPair< QString, QString >() {}
46 FieldPair( QString referencingField, QString referencedField )
47 : QPair< QString, QString >( referencingField, referencedField ) {}
67 static QgsRelation createFromXML(
const QDomNode& node );
75 void writeXML( QDomNode& node, QDomDocument& doc )
const;
82 void setRelationId( QString
id );
89 void setRelationName( QString name );
96 void setReferencingLayer( QString
id );
103 void setReferencedLayer( QString
id );
113 void addFieldPair( QString referencingField, QString referencedField );
122 void addFieldPair( FieldPair fieldPair );
144 const QString name()
const;
150 const QString& id()
const;
158 QString referencingLayerId()
const;
173 QString referencedLayerId()
const;
189 QList< FieldPair > fieldPairs()
const;
196 bool isValid()
const;
199 void updateRelationStatus();
227 #endif // QGSRELATION_H