digiKam Developer Documentation
Professional Photo Management with the Power of Open Source
Loading...
Searching...
No Matches
Digikam::SearchXmlCachingReader Class Reference
+ Inheritance diagram for Digikam::SearchXmlCachingReader:

Public Member Functions

 SearchXmlCachingReader (const QString &xml)
 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.
 
QString fieldName () const
 
SearchXml::Operator fieldOperator () const
 
SearchXml::Relation fieldRelation () const
 
QString groupCaption () const
 
SearchXml::Operator groupOperator () const
 
SearchXml::Element readNext ()
 
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 ()
 
- Public Member Functions inherited from Digikam::SearchXmlReader
 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 Attributes

QString m_fieldName
 
SearchXml::Operator m_fieldOperator = SearchXml::And
 
SearchXml::Relation m_fieldRelation = SearchXml::Equal
 
QString m_groupCaption
 
SearchXml::Operator m_groupOperator = SearchXml::And
 
bool m_readValue = false
 
QVariant m_value
 
- Protected Attributes inherited from Digikam::SearchXmlReader
SearchXml::Operator m_defaultFieldOperator
 

Additional Inherited Members

- Protected Member Functions inherited from Digikam::SearchXmlReader
SearchXml::Operator readOperator (const QString &, SearchXml::Operator) const
 
SearchXml::Relation readRelation (const QString &, SearchXml::Relation) const