16#ifndef QGSSEARCHWIDGETWRAPPER_H
17#define QGSSEARCHWIDGETWRAPPER_H
42 if ( ( l = PyList_New( sipCpp->size() ) ) == NULL )
46 QList<QgsSearchWidgetWrapper::FilterFlag>::iterator it = sipCpp->begin();
47 for (
int i = 0; it != sipCpp->end(); ++it, ++i )
51 if ( ( tobj = sipConvertFromEnum( *it, sipType_QgsSearchWidgetWrapper_FilterFlag ) ) == NULL )
56 PyList_SET_ITEM( l, i, tobj );
64 if ( sipIsErr == NULL )
65 return PyList_Check( sipPy );
67 QList<QgsSearchWidgetWrapper::FilterFlag> *qlist =
new QList<QgsSearchWidgetWrapper::FilterFlag>;
69 for (
int i = 0; i < PyList_GET_SIZE( sipPy ); ++i )
75 return sipGetState( sipTransferObj );
98 GreaterThanOrEqualTo = 1 << 5,
99 LessThanOrEqualTo = 1 << 6,
101 CaseInsensitive = 1 << 8,
103 DoesNotContain = 1 << 10,
105 IsNotBetween = 1 << 12,
107 StartsWith = 1 << 14,
116 static QList<QgsSearchWidgetWrapper::FilterFlag> exclusiveFilterFlags();
122 static QList<QgsSearchWidgetWrapper::FilterFlag> nonExclusiveFilterFlags();
179 return QStringLiteral(
"TRUE" );
188 QString createFieldIdentifier()
const;
195 QString aggregate()
const;
202 void setAggregate(
const QString &aggregate );
208 int fieldIndex()
const;
221 void setEnabled(
bool enabled )
override { Q_UNUSED( enabled ) }
253 void clearExpression();
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
Encapsulate a field in an attribute table or data source.
Represents a relationship between two vector layers.
Represents a vector layer which manages a vector based data sets.
#define SIP_ENUM_BASETYPE(type)
Q_DECLARE_METATYPE(QgsDatabaseQueryLogEntry)
Q_DECLARE_OPERATORS_FOR_FLAGS(QgsTextRendererUtils::CurvedTextFlags)