15 #ifndef QGSDATADEFINED_H
16 #define QGSDATADEFINED_H
21 #include <QStringList>
44 const QString& expr = QString(),
45 const QString& field = QString() );
62 bool hasDefaultValues()
const;
71 void setExpressionString(
const QString& expr );
77 void insertExpressionParam( QString key, QVariant param );
85 QString
field()
const {
return mField; }
86 void setField(
const QString& field ) { mField = field; }
89 QMap< QString, QString > toMap();
98 QDomElement toXmlElement( QDomDocument &document,
const QString &elementName )
const;
107 bool setFromXmlElement(
const QDomElement& element );
117 QString mExpressionString;
120 QMap<QString, QVariant> mExpressionParams;
121 bool mExpressionPrepared;
122 QStringList mExprRefColmuns;
125 #endif // QGSDATADEFINED_H