Akonadi

itemqueryhelper.h
1 /*
2  SPDX-FileCopyrightText: 2009 Volker Krause <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #ifndef AKONADI_ITEMQUERYHELPER_H
8 #define AKONADI_ITEMQUERYHELPER_H
9 
10 #include "entities.h"
11 
12 namespace Akonadi
13 {
14 
15 class ImapSet;
16 class Scope;
17 
18 namespace Server
19 {
20 
21 class CommandContext;
22 class QueryBuilder;
23 
28 namespace ItemQueryHelper
29 {
34 void itemSetToQuery(const ImapSet &set, QueryBuilder &qb, const Collection &collection = Collection());
35 
39 void itemSetToQuery(const ImapSet &set, const CommandContext &context, QueryBuilder &qb);
40 
45 void remoteIdToQuery(const QStringList &rids, const CommandContext &context, QueryBuilder &qb);
46 void gidToQuery(const QStringList &gids, const CommandContext &context, QueryBuilder &qb);
47 
52 void scopeToQuery(const Scope &scope, const CommandContext &context, QueryBuilder &qb);
53 }
54 
55 } // namespace Server
56 } // namespace Akonadi
57 
58 #endif
void itemSetToQuery(const ImapSet &set, QueryBuilder &qb, const Collection &collection=Collection())
Add conditions to qb for the given item set set.
Represents a collection of PIM items.
Definition: collection.h:63
Helper integration between Akonadi and Qt.
void remoteIdToQuery(const QStringList &rids, const CommandContext &context, QueryBuilder &qb)
Add conditions to qb for the given remote identifier rid.
void scopeToQuery(const Scope &scope, const CommandContext &context, QueryBuilder &qb)
Add conditions to qb for the given item operation scope scope.
Helper class to construct arbitrary SQL queries.
Definition: querybuilder.h:32
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Jul 12 2020 23:16:56 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.