Akonadi

itemmodifyhandler.h
1 /***************************************************************************
2  * Copyright (C) 2006 by Tobias Koenig <[email protected]> *
3  * Copyright (C) 2009 by Volker Krause <[email protected]> *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU Library General Public License as *
7  * published by the Free Software Foundation; either version 2 of the *
8  * License, or (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU Library General Public *
16  * License along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
19  ***************************************************************************/
20 
21 #ifndef AKONADI_ITEMMODIFYHANDLER_H_
22 #define AKONADI_ITEMMODIFYHANDLER_H_
23 
24 #include "handler.h"
25 #include "entities.h"
26 
27 namespace Akonadi
28 {
29 namespace Server
30 {
31 
70 {
71 public:
72  ItemModifyHandler(AkonadiServer &akonadi);
73  ~ItemModifyHandler() override = default;
74 
75  bool parseStream() override;
76 
77 private:
78  bool replaceFlags(const PimItem::List &items, const QSet<QByteArray> &flags, bool &flagsChanged);
79  bool addFlags(const PimItem::List &items, const QSet<QByteArray> &flags, bool &flagsChanged);
80  bool deleteFlags(const PimItem::List &items, const QSet<QByteArray> &flags, bool &flagsChanged);
81  bool replaceTags(const PimItem::List &items, const Scope &tags, bool &tagsChanged);
82  bool addTags(const PimItem::List &items, const Scope &tags, bool &tagsChanged);
83  bool deleteTags(const PimItem::List &items, const Scope &tags, bool &tagsChanged);
84 };
85 
86 } // namespace Server
87 } // namespace Akonadi
88 
89 #endif
The handler interfaces describes an entity capable of handling an AkonadiIMAP command.
Definition: handler.h:48
bool parseStream() override
Parse and handle the IMAP message using the streaming parser.
Helper integration between Akonadi and Qt.
Handler for the item modification command.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Jun 5 2020 23:08:55 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.