Akonadi

commandcontext.h
1/*
2 * SPDX-FileCopyrightText: 2014 Daniel Vrátil <dvratil@redhat.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-or-later
5 *
6 */
7
8#pragma once
9
10#include "entities.h"
11
12#include <optional>
13
14namespace Akonadi
15{
16namespace Protocol
17{
18class ScopeContext;
19}
20
21namespace Server
22{
23class CommandContext
24{
25public:
26 void setResource(const Resource &resource);
27 Resource resource() const;
28
29 bool setScopeContext(const Protocol::ScopeContext &scopeContext);
30
31 void setCollection(const Collection &collection);
32 qint64 collectionId() const;
33 Collection collection() const;
34
35 void setTag(std::optional<qint64> tagId);
36 std::optional<qint64> tagId() const;
37 Tag tag() const;
38
39 bool isEmpty() const;
40
41private:
42 Resource mResource;
43 Collection mCollection;
44 std::optional<qint64> mTagId;
45};
46
47}
48
49}
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:31:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.