Akonadi

itemcopyhandler.h
1 /*
2  SPDX-FileCopyrightText: 2008 Volker Krause <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #ifndef AKONADI_ITEMCOPYHANDLER_H_
8 #define AKONADI_ITEMCOPYHANDLER_H_
9 
10 #include "handler.h"
11 #include "entities.h"
12 
13 namespace Akonadi
14 {
15 namespace Server
16 {
17 
34 class ItemCopyHandler: public Handler
35 {
36 public:
37  ItemCopyHandler(AkonadiServer &akonadi);
38  ~ItemCopyHandler() override = default;
39 
40  bool parseStream() override;
41 
42 protected:
47  bool copyItem(const PimItem &item, const Collection &target);
48  void processItems(const QVector<qint64> &ids);
49 
50 private:
51  Collection mTargetCollection;
52 };
53 
54 } // namespace Server
55 } // namespace Akonadi
56 
57 #endif
The handler interfaces describes an entity capable of handling an AkonadiIMAP command.
Definition: handler.h:35
Represents a collection of PIM items.
Definition: collection.h:63
bool copyItem(const PimItem &item, const Collection &target)
Copy the given item and all its parts into the target.
Handler for the COPY command.
Helper integration between Akonadi and Qt.
bool parseStream() override
Parse and handle the IMAP message using the streaming parser.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Jul 12 2020 23:16:56 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.