digiKam
Digikam::ItemQueryBuilder Class Reference

Public Member Functions

QString buildQuery (const QString &q, QList< QVariant > *boundValues, ItemQueryPostHooks *const hooks) const
 
QString buildQueryFromUrl (const QUrl &url, QList< QVariant > *boundValues) const
 
QString buildQueryFromXml (const QString &xml, QList< QVariant > *boundValues, ItemQueryPostHooks *const hooks) const
 
QString convertFromUrlToXml (const QUrl &url) const
 
 ItemQueryBuilder ()
 
void setImageTagPropertiesJoined (bool isJoined)
 

Static Public Member Functions

static void addNoEffectContent (QString &sql, SearchXml::Operator op)
 
static void addSqlOperator (QString &sql, SearchXml::Operator op, bool isFirst)
 
static void addSqlRelation (QString &sql, SearchXml::Relation rel)
 

Protected Member Functions

bool buildField (QString &sql, SearchXmlCachingReader &reader, const QString &name, QList< QVariant > *boundValues, ItemQueryPostHooks *const hooks) const
 
void buildGroup (QString &sql, SearchXmlCachingReader &reader, QList< QVariant > *boundValues, ItemQueryPostHooks *const hooks) const
 
QString possibleDate (const QString &str, bool &exact) const
 

Protected Attributes

bool m_imageTagPropertiesJoined
 
QString m_longMonths [12]
 
QString m_shortMonths [12]
 

Constructor & Destructor Documentation

◆ ItemQueryBuilder()

Digikam::ItemQueryBuilder::ItemQueryBuilder ( )
explicit

Member Function Documentation

◆ addNoEffectContent()

void Digikam::ItemQueryBuilder::addNoEffectContent ( QString &  sql,
SearchXml::Operator  op 
)
static

◆ addSqlOperator()

void Digikam::ItemQueryBuilder::addSqlOperator ( QString &  sql,
SearchXml::Operator  op,
bool  isFirst 
)
static

◆ addSqlRelation()

◆ buildField()

bool Digikam::ItemQueryBuilder::buildField ( QString &  sql,
SearchXmlCachingReader reader,
const QString &  name,
QList< QVariant > *  boundValues,
ItemQueryPostHooks *const  hooks 
) const
protected

References Digikam::CoreDB::addBoundValuePlaceholders(), Digikam::FieldQueryBuilder::addChoiceIntField(), Digikam::FieldQueryBuilder::addChoiceStringField(), Digikam::FieldQueryBuilder::addDateField(), Digikam::FieldQueryBuilder::addDoubleField(), Digikam::FieldQueryBuilder::addIntBitmaskField(), Digikam::FieldQueryBuilder::addIntField(), Digikam::FieldQueryBuilder::addLongField(), Digikam::FieldQueryBuilder::addLongListField(), Digikam::FieldQueryBuilder::addPosition(), addSqlOperator(), addSqlRelation(), Digikam::FieldQueryBuilder::addStringField(), Digikam::SearchXml::AllOf, Digikam::SearchXml::And, Digikam::DatabaseComment::Comment, Digikam::CoreDbAccess::db(), Digikam::SearchXml::Equal, Digikam::SearchXmlCachingReader::fieldRelation(), Digikam::CoreDB::getAlbumRelativePath(), Digikam::CoreDB::getAlbumRootId(), Digikam::SearchXml::GreaterThan, Digikam::SearchXml::GreaterThanOrEqual, Digikam::DatabaseComment::Headline, Digikam::SearchXml::Interval, Digikam::SearchXml::InTree, Digikam::SearchXml::LessThan, Digikam::SearchXml::LessThanOrEqual, Digikam::SearchXml::Like, m_imageTagPropertiesJoined, Digikam::SearchXml::NotInTree, Digikam::SearchXml::NotLike, Digikam::SearchXml::OneOf, Digikam::SearchXml::Or, Digikam::MetaEngine::ORIENTATION_ROT_90_HFLIP, Digikam::MetaEngine::ORIENTATION_VFLIP, Digikam::CoreDbAccess::parameters(), Digikam::FieldQueryBuilder::prepareForLike(), QT_SKIP_EMPTY_PARTS, Digikam::SearchXmlReader::readToEndOfElement(), Digikam::DatabaseComment::Title, Digikam::SearchXml::Unequal, value, Digikam::SearchXmlCachingReader::value(), Digikam::SearchXmlCachingReader::valueToDoubleList(), Digikam::SearchXmlCachingReader::valueToInt(), Digikam::SearchXmlCachingReader::valueToIntList(), Digikam::SearchXmlCachingReader::valueToIntOrIntList(), Digikam::SearchXmlCachingReader::valueToStringList(), and Digikam::SearchXmlCachingReader::valueToStringOrStringList().

Referenced by buildGroup().

◆ buildGroup()

◆ buildQuery()

QString Digikam::ItemQueryBuilder::buildQuery ( const QString &  q,
QList< QVariant > *  boundValues,
ItemQueryPostHooks *const  hooks 
) const

◆ buildQueryFromUrl()

◆ buildQueryFromXml()

QString Digikam::ItemQueryBuilder::buildQueryFromXml ( const QString &  xml,
QList< QVariant > *  boundValues,
ItemQueryPostHooks *const  hooks 
) const

◆ convertFromUrlToXml()

◆ possibleDate()

QString Digikam::ItemQueryBuilder::possibleDate ( const QString &  str,
bool &  exact 
) const
protected

References m_longMonths, and m_shortMonths.

Referenced by buildQueryFromUrl().

◆ setImageTagPropertiesJoined()

void Digikam::ItemQueryBuilder::setImageTagPropertiesJoined ( bool  isJoined)

Use for special queries where ImageTagProperties table is JOIN'ed. (Default: false)

References m_imageTagPropertiesJoined.

Referenced by Digikam::ItemLister::listImageTagPropertySearch().

Member Data Documentation

◆ m_imageTagPropertiesJoined

bool Digikam::ItemQueryBuilder::m_imageTagPropertiesJoined
protected

◆ m_longMonths

QString Digikam::ItemQueryBuilder::m_longMonths[12]
protected

Referenced by ItemQueryBuilder(), and possibleDate().

◆ m_shortMonths

QString Digikam::ItemQueryBuilder::m_shortMonths[12]
protected

Referenced by ItemQueryBuilder(), and possibleDate().


The documentation for this class was generated from the following files: