![]() |
digiKam Developer Documentation
Professional Photo Management with the Power of Open Source
|
Public Member Functions | |
SearchXmlReader (const QString &xml) | |
SearchXml::Operator | defaultFieldOperator () const |
Returns the default field operator. | |
QString | fieldName () const |
SearchXml::Operator | fieldOperator () const |
Returns the field attributes. | |
SearchXml::Relation | fieldRelation () const |
QString | groupCaption () const |
Returns the (optional) group caption. | |
SearchXml::Operator | groupOperator () const |
Returns the group operator. | |
bool | isFieldElement () const |
Returns if the current element is a field element (start or end element). | |
bool | isGroupElement () const |
Returns if the current element is a group element (start or end element). | |
SearchXml::Element | readNext () |
Continue parsing the document. | |
void | readToEndOfElement () |
General helper method: Reads XML until the end element of the current start element in reached. | |
void | readToFirstField () |
General helper method: Reads XML until the first field of the next or first found group is reached. | |
bool | readToStartOfElement (const QString &name) |
General helper method: Reads XML a start element with the given name is found. | |
QString | value () |
Returns the field values. | |
QDateTime | valueToDateTime () |
QList< QDateTime > | valueToDateTimeList () |
double | valueToDouble () |
QList< double > | valueToDoubleList () |
QList< double > | valueToDoubleOrDoubleList () |
int | valueToInt () |
QList< int > | valueToIntList () |
QList< int > | valueToIntOrIntList () |
qlonglong | valueToLongLong () |
QList< qlonglong > | valueToLongLongList () |
QStringList | valueToStringList () |
QList< QString > | valueToStringOrStringList () |
Protected Member Functions | |
SearchXml::Operator | readOperator (const QString &, SearchXml::Operator) const |
SearchXml::Relation | readRelation (const QString &, SearchXml::Relation) const |
Protected Attributes | |
SearchXml::Operator | m_defaultFieldOperator |
SearchXml::Operator Digikam::SearchXmlReader::defaultFieldOperator | ( | ) | const |
This operator can be overridden by a specific fieldOperator().
SearchXml::Operator Digikam::SearchXmlReader::fieldOperator | ( | ) | const |
Only valid if the current element is a field. fieldOperator returns the default operator if the field has not specified any.
QString Digikam::SearchXmlReader::groupCaption | ( | ) | const |
Only valid if the current element is a group.
SearchXml::Operator Digikam::SearchXmlReader::groupOperator | ( | ) | const |
Only valid if the current element is a group.
SearchXml::Element Digikam::SearchXmlReader::readNext | ( | ) |
Returns the type of the current element.
bool Digikam::SearchXmlReader::readToStartOfElement | ( | const QString & | name | ) |
The method goes to the next start element, and from there down the hierarchy, but not further up in the hierarchy. Returns false if the element is not found.
QString Digikam::SearchXmlReader::value | ( | ) |
Only valid if the current element is a field. This reads to the end element of the field, and converts the found text/elements to the desired output.