Akonadi::Server::ItemQueryHelper

Akonadi::Server::ItemQueryHelper Namespace Reference

Functions

void gidToQuery (const QStringList &gids, const CommandContext &context, QueryBuilder &qb)
 
void itemSetToQuery (const ImapSet &set, QueryBuilder &qb, const Collection &collection=Collection())
 
void itemSetToQuery (const ImapSet &set, const CommandContext &context, QueryBuilder &qb)
 
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

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.

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 37 of file itemqueryhelper.cpp.

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 59 of file itemqueryhelper.cpp.

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 106 of file itemqueryhelper.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Nov 26 2020 23:15:23 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.