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 );
123 void addFieldPair( FieldPair fieldPair );
145 const QString name()
const;
151 const QString& id()
const;
159 QString referencingLayerId()
const;
174 QString referencedLayerId()
const;
190 QList< FieldPair > fieldPairs()
const;
197 bool isValid()
const;
200 void updateRelationStatus();
207 QString mRelationName;
209 QString mReferencingLayerId;
213 QString mReferencedLayerId;
220 QList< FieldPair > mFieldPairs;
228 #endif // QGSRELATION_H