Akonadi Mime

markascommand.h
1/*
2 SPDX-FileCopyrightText: 2010 Klarälvdalens Datakonsult AB, a KDAB Group company, <info@kdab.com>
3 SPDX-FileCopyrightText: 2010 Andras Mantia <andras@kdab.com>
4
5 SPDX-License-Identifier: LGPL-2.1-or-later
6*/
7
8#pragma once
9
10#include "commandbase.h"
11#include "messagestatus.h"
12
13#include <Akonadi/Collection>
14#include <Akonadi/Item>
15
16#include "akonadi-mime_export.h"
17
18#include <memory>
19
20class KJob;
21namespace Akonadi
22{
23class MarkAsCommandPrivate;
24class AKONADI_MIME_EXPORT MarkAsCommand : public CommandBase
25{
26 Q_OBJECT
27public:
28 MarkAsCommand(MessageStatus targetStatus, const Akonadi::Item::List &msgList, bool invert = false, QObject *parent = nullptr);
29 MarkAsCommand(MessageStatus targetStatus, const Akonadi::Collection::List &folders, bool invert = false, bool recursive = false, QObject *parent = nullptr);
30 ~MarkAsCommand() override;
31 void execute() override;
32
33private:
34 AKONADI_MIME_NO_EXPORT void slotCollectionFetchDone(KJob *job);
35 AKONADI_MIME_NO_EXPORT void slotFetchDone(KJob *job);
36 AKONADI_MIME_NO_EXPORT void slotHelperDone(Result result);
37 AKONADI_MIME_NO_EXPORT void slotModifyItemDone();
38 AKONADI_MIME_NO_EXPORT void markMessages();
39
40 std::unique_ptr<MarkAsCommandPrivate> const d;
41};
42}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:32:40 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.