Akonadi

collectiondeletehandler.h
1 /*
2  SPDX-FileCopyrightText: 2006 Volker Krause <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "handler.h"
10 
11 namespace Akonadi
12 {
13 namespace Server
14 {
15 class Collection;
16 
17 /**
18  @ingroup akonadi_server_handler
19 
20  Handler for the collection deletion command.
21 
22  This commands deletes the selected collections including all their content
23  and that of any child collection.
24 */
26 {
27 public:
28  CollectionDeleteHandler(AkonadiServer &akonadi);
29  ~CollectionDeleteHandler() override = default;
30 
31  bool parseStream() override;
32 
33 private:
34  bool deleteRecursive(Collection &col);
35 };
36 
37 } // namespace Server
38 } // namespace Akonadi
39 
Represents a collection of PIM items.
Definition: collection.h:61
bool parseStream() override
Parse and handle the IMAP message using the streaming parser.
The handler interfaces describes an entity capable of handling an AkonadiIMAP command.
Definition: handler.h:39
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jun 30 2022 03:51:45 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.