Akonadi::Server::ItemQueryHelper

Akonadi::Server::ItemQueryHelper Namespace Reference

Functions

void gidToQuery (const QStringList &gids, const CommandContext &context, QueryBuilder &qb)
 
void itemSetToQuery (const QList< PimItem::Id > &set, const CommandContext &context, QueryBuilder &qb)
 
void itemSetToQuery (const QList< PimItem::Id > &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

◆ gidToQuery()

void Akonadi::Server::ItemQueryHelper::gidToQuery ( const QStringList & gids,
const CommandContext & context,
QueryBuilder & qb )

Definition at line 86 of file itemqueryhelper.cpp.

◆ itemSetToQuery() [1/2]

void Akonadi::Server::ItemQueryHelper::itemSetToQuery ( const QList< PimItem::Id > & set,
const CommandContext & context,
QueryBuilder & qb )

Convenience method, does essentially the same as the one above.

Definition at line 37 of file itemqueryhelper.cpp.

◆ itemSetToQuery() [2/2]

void Akonadi::Server::ItemQueryHelper::itemSetToQuery ( const QList< PimItem::Id > & 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 19 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 60 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 109 of file itemqueryhelper.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:13:39 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.