Akonadi::Server::ItemQueryHelper
Functions | |
void | gidToQuery (const QStringList &gids, const CommandContext &context, QueryBuilder &qb) |
void | itemSetToQuery (const ImapSet &set, const CommandContext &context, QueryBuilder &qb) |
void | itemSetToQuery (const ImapSet &set, QueryBuilder &qb, const Collection &collection=Collection()) |
void | remoteIdToQuery (const QStringList &rids, const CommandContext &context, QueryBuilder &qb) |
void | scopeToQuery (const Scope &scope, const CommandContext &context, QueryBuilder &qb) |
Detailed Description
Helper methods to generate WHERE clauses for item queries based on the item set used in the protocol.
Function Documentation
◆ itemSetToQuery() [1/2]
void Akonadi::Server::ItemQueryHelper::itemSetToQuery | ( | const ImapSet & | set, |
const CommandContext & | context, | ||
QueryBuilder & | qb | ||
) |
Convenience method, does essentially the same as the one above.
Definition at line 39 of file itemqueryhelper.cpp.
◆ itemSetToQuery() [2/2]
void Akonadi::Server::ItemQueryHelper::itemSetToQuery | ( | const ImapSet & | set, |
QueryBuilder & | qb, | ||
const Collection & | collection = Collection() |
||
) |
Add conditions to qb
for the given item set set
.
If collection
is valid, only items in this collection are considered.
Definition at line 21 of file itemqueryhelper.cpp.
◆ remoteIdToQuery()
void Akonadi::Server::ItemQueryHelper::remoteIdToQuery | ( | const QStringList & | rids, |
const CommandContext & | context, | ||
QueryBuilder & | qb | ||
) |
Add conditions to qb
for the given remote identifier rid
.
The rid context is taken from context
.
Definition at line 62 of file itemqueryhelper.cpp.
◆ scopeToQuery()
void Akonadi::Server::ItemQueryHelper::scopeToQuery | ( | const Scope & | scope, |
const CommandContext & | context, | ||
QueryBuilder & | qb | ||
) |
Add conditions to qb
for the given item operation scope scope
.
The rid context is taken from context
, if none is specified an exception is thrown.
Definition at line 111 of file itemqueryhelper.cpp.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Sep 29 2023 03:51:16 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.