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 */
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
Handler for the CollectionCopyHandler command.
bool parseStream() override
Parse and handle the IMAP message using the streaming parser.
Handler for the COPY command.
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jun 7 2024 11:56:45 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.