Akonadi

tagqueryhelper.h
1 /*
2  SPDX-FileCopyrightText: 2015 Daniel Vr├ítil <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "entities.h"
10 
11 namespace Akonadi
12 {
13 class Scope;
14 
15 namespace Server
16 {
17 class CommandContext;
18 class QueryBuilder;
19 
20 /**
21  Helper methods to generate WHERE clauses for item queries based on the item set
22  used in the protocol.
23 */
24 namespace TagQueryHelper
25 {
26 /**
27  Add conditions to @p qb for the given remote identifier @p rid.
28  The rid context is taken from @p context.
29 */
30 void remoteIdToQuery(const QStringList &rids, const CommandContext &context, QueryBuilder &qb);
31 void gidToQuery(const QStringList &gids, const CommandContext &context, QueryBuilder &qb);
32 
33 /**
34  Add conditions to @p qb for the given item operation scope @p scope.
35  The rid context is taken from @p context, if none is specified an exception is thrown.
36 */
37 void scopeToQuery(const Scope &scope, const CommandContext &context, QueryBuilder &qb);
38 }
39 
40 } // namespace Server
41 } // namespace Akonadi
42 
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:31
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jun 30 2022 03:51:47 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.