Akonadi

collectioncopyhandler.h
1/*
2 SPDX-FileCopyrightText: 2008 Volker Krause <vkrause@kde.org>
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
12namespace Akonadi
13{
14namespace 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 */
34class CollectionCopyHandler : public ItemCopyHandler
35{
36public:
37 CollectionCopyHandler(AkonadiServer &akonadi);
38 ~CollectionCopyHandler() override = default;
39
40 bool parseStream() override;
41
42private:
43 bool copyCollection(const Collection &source, const Collection &target);
44};
45
46} // namespace Server
47} // namespace Akonadi
Represents a collection of PIM items.
Definition collection.h:62
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-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:57 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.