digiKam
|
Public Member Functions | |
SearchXml::Operator | defaultFieldOperator () const |
QString | fieldName () const |
SearchXml::Operator | fieldOperator () const |
SearchXml::Relation | fieldRelation () const |
QString | groupCaption () const |
SearchXml::Operator | groupOperator () const |
bool | isFieldElement () const |
bool | isGroupElement () const |
SearchXml::Element | readNext () |
void | readToEndOfElement () |
void | readToFirstField () |
bool | readToStartOfElement (const QString &name) |
SearchXmlCachingReader (const QString &xml) | |
QString | value () |
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 |
QString | m_fieldName |
SearchXml::Operator | m_fieldOperator |
SearchXml::Relation | m_fieldRelation |
QString | m_groupCaption |
SearchXml::Operator | m_groupOperator |
bool | m_readValue |
QVariant | m_value |
|
explicit |
This class has the same semantics as SearchXmlReader, but performs some caching and is thus much more relaxed than SearchXmlReader about the calling order of methods: With this class, you can access properties of a group until the next group is read, access properties and the value of a field until the next field is read, with all calls possible multiple times.
|
inherited |
Returns the default field operator. This operator can be overridden by a specific fieldOperator().
References Digikam::SearchXmlReader::m_defaultFieldOperator.
Referenced by Digikam::SearchGroup::read().
QString Digikam::SearchXmlCachingReader::fieldName | ( | ) | const |
References m_fieldName.
Referenced by Digikam::ItemQueryBuilder::buildGroup(), and Digikam::SearchGroup::read().
SearchXml::Operator Digikam::SearchXmlCachingReader::fieldOperator | ( | ) | const |
References m_fieldOperator.
Referenced by Digikam::ItemQueryBuilder::buildGroup().
SearchXml::Relation Digikam::SearchXmlCachingReader::fieldRelation | ( | ) | const |
References m_fieldRelation.
Referenced by Digikam::ItemQueryBuilder::buildField(), Digikam::SearchFieldRangeInt::read(), Digikam::SearchFieldRangeDouble::read(), Digikam::SearchFieldRangeDate::read(), Digikam::SearchFieldChoice::read(), Digikam::SearchFieldAlbum::read(), Digikam::SearchFieldRating::read(), Digikam::SearchFieldCheckBox::read(), Digikam::SearchFieldColorDepth::read(), Digikam::SearchFieldPageOrientation::read(), and Digikam::SearchFieldMonthDay::read().
QString Digikam::SearchXmlCachingReader::groupCaption | ( | ) | const |
References m_groupCaption.
SearchXml::Operator Digikam::SearchXmlCachingReader::groupOperator | ( | ) | const |
References m_groupOperator.
Referenced by Digikam::ItemQueryBuilder::buildGroup(), Digikam::ItemQueryBuilder::buildQueryFromXml(), and Digikam::SearchGroup::read().
|
inherited |
Returns if the current element is a field element (start or end element).
Referenced by Digikam::ItemQueryBuilder::buildGroup(), Digikam::SearchGroup::read(), and Digikam::SearchXmlReader::readNext().
|
inherited |
Returns if the current element is a group element (start or end element).
Referenced by Digikam::ItemQueryBuilder::buildGroup(), Digikam::ItemQueryBuilder::buildQueryFromXml(), Digikam::SearchGroup::read(), and Digikam::SearchXmlReader::readNext().
SearchXml::Element Digikam::SearchXmlCachingReader::readNext | ( | ) |
References Digikam::SearchXml::Field, Digikam::SearchXmlReader::fieldName(), Digikam::SearchXmlReader::fieldOperator(), Digikam::SearchXmlReader::fieldRelation(), Digikam::SearchXml::Group, Digikam::SearchXmlReader::groupCaption(), Digikam::SearchXmlReader::groupOperator(), m_fieldName, m_fieldOperator, m_fieldRelation, m_groupCaption, m_groupOperator, m_readValue, and Digikam::SearchXmlReader::readNext().
Referenced by Digikam::ItemQueryBuilder::buildGroup(), Digikam::ItemQueryBuilder::buildQueryFromXml(), Digikam::SearchView::read(), and Digikam::SearchGroup::read().
|
protectedinherited |
|
protectedinherited |
References Digikam::SearchXml::AllOf, Digikam::SearchXml::Equal, Digikam::SearchXml::GreaterThan, Digikam::SearchXml::GreaterThanOrEqual, Digikam::SearchXml::Inside, Digikam::SearchXml::Interval, Digikam::SearchXml::IntervalOpen, Digikam::SearchXml::InTree, Digikam::SearchXml::LessThan, Digikam::SearchXml::LessThanOrEqual, Digikam::SearchXml::Like, Digikam::SearchXml::Near, Digikam::SearchXml::NotInTree, Digikam::SearchXml::NotLike, Digikam::SearchXml::OneOf, and Digikam::SearchXml::Unequal.
Referenced by Digikam::SearchXmlReader::fieldRelation().
|
inherited |
General helper method: Reads XML until the end element of the current start element in reached.
Referenced by Digikam::ItemQueryBuilder::buildField(), Digikam::SearchGroup::read(), and Digikam::SearchFieldCheckBox::read().
|
inherited |
General helper method: Reads XML until the first field of the next or first found group is reached.
References Digikam::SearchXml::Field, Digikam::SearchXml::Group, and Digikam::SearchXmlReader::readNext().
Referenced by Digikam::FindDuplicatesAlbumItem::calculateInfos(), Digikam::FindDuplicatesAlbumItem::duplicatedItems(), and Digikam::ItemLister::listHaarSearch().
|
inherited |
General helper method: Reads XML a start element with the given name is found. 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::SearchXmlCachingReader::value | ( | ) |
References m_readValue, m_value, and Digikam::SearchXmlReader::value().
Referenced by Digikam::FieldQueryBuilder::addChoiceStringField(), Digikam::FieldQueryBuilder::addDateField(), Digikam::FieldQueryBuilder::addPosition(), Digikam::FieldQueryBuilder::addStringField(), Digikam::ItemQueryBuilder::buildField(), Digikam::SearchFieldText::read(), Digikam::SearchFieldKeyword::read(), and Digikam::SearchFieldChoice::read().
QDateTime Digikam::SearchXmlCachingReader::valueToDateTime | ( | ) |
References m_readValue, m_value, and Digikam::SearchXmlReader::valueToDateTime().
Referenced by Digikam::SearchFieldRangeDate::read().
QList< QDateTime > Digikam::SearchXmlCachingReader::valueToDateTimeList | ( | ) |
References valueToStringList().
Referenced by Digikam::SearchFieldRangeDate::read().
double Digikam::SearchXmlCachingReader::valueToDouble | ( | ) |
QList< double > Digikam::SearchXmlCachingReader::valueToDoubleList | ( | ) |
QList< double > Digikam::SearchXmlCachingReader::valueToDoubleOrDoubleList | ( | ) |
References m_readValue, m_value, and Digikam::SearchXmlReader::valueToDoubleOrDoubleList().
int Digikam::SearchXmlCachingReader::valueToInt | ( | ) |
References m_readValue, m_value, and Digikam::SearchXmlReader::valueToInt().
Referenced by Digikam::FieldQueryBuilder::addIntField(), Digikam::ItemQueryBuilder::buildField(), Digikam::SearchFieldRangeInt::read(), Digikam::SearchFieldChoice::read(), Digikam::SearchFieldRating::read(), Digikam::SearchFieldColorDepth::read(), and Digikam::SearchFieldPageOrientation::read().
QList< int > Digikam::SearchXmlCachingReader::valueToIntList | ( | ) |
References valueToStringList().
Referenced by Digikam::FieldQueryBuilder::addChoiceIntField(), Digikam::FieldQueryBuilder::addIntBitmaskField(), Digikam::FieldQueryBuilder::addIntField(), Digikam::ItemQueryBuilder::buildField(), Digikam::SearchFieldRangeInt::read(), Digikam::SearchFieldChoice::read(), Digikam::SearchFieldRating::read(), and Digikam::SearchFieldMonthDay::read().
QList< int > Digikam::SearchXmlCachingReader::valueToIntOrIntList | ( | ) |
References m_readValue, m_value, and Digikam::SearchXmlReader::valueToIntOrIntList().
Referenced by Digikam::ItemQueryBuilder::buildField(), Digikam::SearchFieldAlbum::read(), and Digikam::SearchFieldLabels::read().
qlonglong Digikam::SearchXmlCachingReader::valueToLongLong | ( | ) |
References m_readValue, m_value, and Digikam::SearchXmlReader::valueToLongLong().
Referenced by Digikam::FieldQueryBuilder::addLongField().
QList< qlonglong > Digikam::SearchXmlCachingReader::valueToLongLongList | ( | ) |
References valueToStringList().
Referenced by Digikam::FieldQueryBuilder::addLongField(), and Digikam::FieldQueryBuilder::addLongListField().
QStringList Digikam::SearchXmlCachingReader::valueToStringList | ( | ) |
References m_readValue, m_value, and Digikam::SearchXmlReader::valueToStringList().
Referenced by Digikam::FieldQueryBuilder::addChoiceStringField(), Digikam::FieldQueryBuilder::addDateField(), Digikam::ItemQueryBuilder::buildField(), Digikam::SearchFieldChoice::read(), valueToDateTimeList(), valueToDoubleList(), valueToIntList(), and valueToLongLongList().
QList< QString > Digikam::SearchXmlCachingReader::valueToStringOrStringList | ( | ) |
References m_readValue, m_value, and Digikam::SearchXmlReader::valueToStringOrStringList().
Referenced by Digikam::ItemQueryBuilder::buildField().
|
protectedinherited |
|
protected |
Referenced by fieldName(), and readNext().
|
protected |
Referenced by fieldOperator(), and readNext().
|
protected |
Referenced by fieldRelation(), and readNext().
|
protected |
Referenced by groupCaption(), and readNext().
|
protected |
Referenced by groupOperator(), and readNext().
|
protected |
|
protected |