Messagelib

followupremindercreatejob.h
1/*
2 SPDX-FileCopyrightText: 2014-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <Akonadi/Collection>
10#include <Akonadi/Item>
11#include <KJob>
12#include <QDate>
13#include <QObject>
14
15#include "messagecomposer_export.h"
16
17#include <memory>
18
19namespace MessageComposer
20{
21class FollowupReminderCreateJobPrivate;
22/**
23 * @brief The FollowupReminderCreateJob class
24 * @author Laurent Montel <montel@kde.org>
25 */
26class MESSAGECOMPOSER_EXPORT FollowupReminderCreateJob : public KJob
27{
28 Q_OBJECT
29public:
30 explicit FollowupReminderCreateJob(QObject *parent = nullptr);
32
33 void setFollowUpReminderDate(const QDate &date);
34
35 void setOriginalMessageItemId(Akonadi::Item::Id value);
36
37 void setMessageId(const QString &messageId);
38
39 void setTo(const QString &to);
40
41 void setSubject(const QString &subject);
42
43 void setCollectionToDo(const Akonadi::Collection &collection);
44
45 void start() override;
46
47private:
48 MESSAGECOMPOSER_NO_EXPORT void slotCreateNewTodo(KJob *job);
49 MESSAGECOMPOSER_NO_EXPORT void writeFollowupReminderInfo();
50
51 std::unique_ptr<FollowupReminderCreateJobPrivate> const d;
52};
53}
Q_SCRIPTABLE Q_NOREPLY void start()
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.