Akonadi

collectioncopyhandler.h
1 /*
2  SPDX-FileCopyrightText: 2008 Volker Krause <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "entities.h"
10 #include "handler/itemcopyhandler.h"
11 
12 namespace Akonadi
13 {
14 namespace Server
15 {
16 /**
17  @ingroup akonadi_server_handler
18 
19  Handler for the CollectionCopyHandler command.
20 
21  This command is used to copy a single collection into another collection, including
22  all sub-collections and their content.
23 
24  The copied items differ in the following points from the originals:
25  - new unique id
26  - empty remote id
27  - possible located in a different collection (and thus resource)
28 
29  The copied collections differ in the following points from the originals:
30  - new unique id
31  - empty remote id
32  - owning resource is the same as the one of the target collection
33  */
35 {
36 public:
37  CollectionCopyHandler(AkonadiServer &akonadi);
38  ~CollectionCopyHandler() override = default;
39 
40  bool parseStream() override;
41 
42 private:
43  bool copyCollection(const Collection &source, const Collection &target);
44 };
45 
46 } // namespace Server
47 } // namespace Akonadi
48 
Represents a collection of PIM items.
Definition: collection.h:61
bool parseStream() override
Parse and handle the IMAP message using the streaming parser.
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sat Jun 25 2022 06:00:31 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.