35 #include <qvaluelist.h>
36 #include <qdatetime.h>
37 #include "ananasglobal.h"
39 ANANAS_EXPORT
enum OperationEnum{
41 OperationEnumNotEquals,
42 OperationEnumGreaterThen,
43 OperationEnumLessThen,
44 OperationEnumGreaterOrEquals,
45 OperationEnumLessOrEquals,
56 void Add(
const QString& fname,
const char* value, OperationEnum op,
bool AndOp =
true,
bool replace =
true);
57 void Add(
const QString& fname,
const Q_INT64 value, OperationEnum op,
bool AndOp =
true,
bool replace =
true);
58 void Add(
const QString& fname,
const int value, OperationEnum op,
bool AndOp =
true,
bool replace =
true);
59 void Add(
const QString& fname,
const double value, OperationEnum op,
bool AndOp =
true,
bool replace =
true);
61 void Add(
const QString& fname,
const QString& value, OperationEnum op,
bool AndOp =
true,
bool replace =
true);
62 void Add(
const QString& fname,
const QDateTime& value, OperationEnum op,
bool AndOp =
true,
bool replace =
true);
63 void Add(
const QString& fname,
const QDate& value, OperationEnum op,
bool AndOp =
true,
bool replace =
true);
64 QString toString(
bool removeFirst =
true)
const;
67 void AddHelper(
const QString& fname,
const QString& value, OperationEnum op,
bool And,
bool replace);
68 QString Escape(
const QString& val);
70 struct filterCondition
78 QValueList<filterCondition> conditions;