Akonadi

commandcontext.h
1 /*
2  * SPDX-FileCopyrightText: 2014 Daniel Vr├ítil <[email protected]>
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 
14 namespace Akonadi
15 {
16 namespace Protocol
17 {
18 class ScopeContext;
19 }
20 
21 namespace Server
22 {
23 class CommandContext
24 {
25 public:
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 
41 private:
42  Resource mResource;
43  Collection mCollection;
44  std::optional<qint64> mTagId;
45 };
46 
47 }
48 
49 }
50 
void setTag(Elem &elem, Tag &&tag)
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Mon Jun 27 2022 04:01:05 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.