25 #ifndef DIGIKAM_CORE_DB_SEARCH_XML_H
26 #define DIGIKAM_CORE_DB_SEARCH_XML_H
32 #include <QXmlStreamReader>
33 #include <QXmlStreamWriter>
34 #include <QStringList>
150 bool isGroupElement()
const;
154 bool isFieldElement()
const;
162 QString groupCaption()
const;
172 QString fieldName()
const;
181 qlonglong valueToLongLong();
182 double valueToDouble();
183 QDateTime valueToDateTime();
187 QStringList valueToStringList();
199 bool readToStartOfElement(
const QString& name);
204 void readToEndOfElement();
209 void readToFirstField();
245 void setGroupCaption(
const QString& caption);
265 void writeValue(
const QString&
value);
266 void writeValue(
int value);
267 void writeValue(qlonglong
value);
268 void writeValue(
float value,
int precision = 6);
269 void writeValue(
double value,
int precision = 8);
270 void writeValue(
const QDateTime& dateTime);
273 void writeValue(
const QList<float>& valueList,
int precision = 6);
274 void writeValue(
const QList<double>& valueList,
int precision = 8);
275 void writeValue(
const QStringList& valueList);
304 static QString keywordSearch(
const QString& keyword);
325 DIGIKAM_DATABASE_EXPORT QStringList
split(
const QString&
string);
330 DIGIKAM_DATABASE_EXPORT QString
merge(
const QStringList& keywordList);
337 DIGIKAM_DATABASE_EXPORT QString
merge(
const QString& previousContent,
const QString& newEntry);
350 QStringList keywords();
353 bool isSimpleKeywordSearch();
357 void readGroup(QStringList& list);
358 bool isSimpleKeywordSearchGroup();
370 QString xml(
const QStringList& keywordList);
391 QString groupCaption()
const;
394 QString fieldName()
const;
398 qlonglong valueToLongLong();
399 double valueToDouble();
400 QDateTime valueToDateTime();
404 QStringList valueToStringList();
Definition: coredbsearchxml.h:344
Definition: coredbsearchxml.h:365
Definition: coredbsearchxml.h:376
QVariant m_value
Definition: coredbsearchxml.h:417
SearchXml::Relation m_fieldRelation
Definition: coredbsearchxml.h:416
SearchXml::Operator m_groupOperator
Definition: coredbsearchxml.h:412
QString m_fieldName
Definition: coredbsearchxml.h:415
SearchXml::Operator m_fieldOperator
Definition: coredbsearchxml.h:414
QString m_groupCaption
Definition: coredbsearchxml.h:413
bool m_readValue
Definition: coredbsearchxml.h:418
Definition: coredbsearchxml.h:139
SearchXml::Operator m_defaultFieldOperator
Definition: coredbsearchxml.h:218
Definition: coredbsearchxml.h:224
QString m_xml
Definition: coredbsearchxml.h:313
qulonglong value
Definition: itemviewutilities.cpp:592
@ KeywordSearch
Definition: coredbconstants.h:62
DIGIKAM_DATABASE_EXPORT QStringList split(const QString &string)
Definition: coredbsearchxml.cpp:836
DIGIKAM_DATABASE_EXPORT QString merge(const QStringList &keywordList)
Definition: coredbsearchxml.cpp:867
SearchXml::Relation standardFieldRelation()
Definition: coredbsearchxml.h:129
Relation
Definition: coredbsearchxml.h:66
@ NotLike
Definition: coredbsearchxml.h:70
@ AllOf
Definition: coredbsearchxml.h:78
@ OneOf
Definition: coredbsearchxml.h:77
@ Like
Definition: coredbsearchxml.h:69
@ LessThanOrEqual
Definition: coredbsearchxml.h:73
@ Near
Definition: coredbsearchxml.h:81
@ InTree
Definition: coredbsearchxml.h:79
@ Equal
Definition: coredbsearchxml.h:67
@ IntervalOpen
Definition: coredbsearchxml.h:76
@ Inside
Definition: coredbsearchxml.h:82
@ LessThan
Definition: coredbsearchxml.h:71
@ Unequal
Definition: coredbsearchxml.h:68
@ Interval
Definition: coredbsearchxml.h:75
@ GreaterThanOrEqual
Definition: coredbsearchxml.h:74
@ NotInTree
Definition: coredbsearchxml.h:80
@ GreaterThan
Definition: coredbsearchxml.h:72
Element
Definition: coredbsearchxml.h:56
@ Search
Definition: coredbsearchxml.h:57
@ Field
Definition: coredbsearchxml.h:60
@ End
Definition: coredbsearchxml.h:62
@ Group
Definition: coredbsearchxml.h:58
@ GroupEnd
Definition: coredbsearchxml.h:59
@ FieldEnd
Definition: coredbsearchxml.h:61
bool testRelation(T v1, T v2, Relation rel)
Definition: coredbsearchxml.h:86
SearchXml::Operator standardGroupOperator()
Definition: coredbsearchxml.h:119
Operator
Definition: coredbsearchxml.h:48
@ Or
Definition: coredbsearchxml.h:50
@ OrNot
Definition: coredbsearchxml.h:52
@ AndNot
Definition: coredbsearchxml.h:51
@ And
Definition: coredbsearchxml.h:49
SearchXml::Operator standardFieldOperator()
Definition: coredbsearchxml.h:124
Definition: datefolderview.cpp:43