Akonadi

tagqueryhelper.h
1/*
2 SPDX-FileCopyrightText: 2015 Daniel Vrátil <dvratil@redhat.com>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "entities.h"
10
11namespace Akonadi
12{
13class Scope;
14
15namespace Server
16{
17class CommandContext;
18class QueryBuilder;
19
20/**
21 Helper methods to generate WHERE clauses for item queries based on the item set
22 used in the protocol.
23*/
24namespace 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*/
30void remoteIdToQuery(const QStringList &rids, const CommandContext &context, QueryBuilder &qb);
31void 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*/
37void scopeToQuery(const Scope &scope, const CommandContext &context, QueryBuilder &qb);
38}
39
40} // namespace Server
41} // namespace Akonadi
Helper class to construct arbitrary SQL queries.
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 integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:49:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.