Messagelib

followupremindercreatejob.h
1 /*
2  SPDX-FileCopyrightText: 2014-2023 Laurent Montel <[email protected]>
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 
19 namespace MessageComposer
20 {
21 class FollowupReminderCreateJobPrivate;
22 /**
23  * @brief The FollowupReminderCreateJob class
24  * @author Laurent Montel <[email protected]>
25  */
26 class MESSAGECOMPOSER_EXPORT FollowupReminderCreateJob : public KJob
27 {
28  Q_OBJECT
29 public:
30  explicit FollowupReminderCreateJob(QObject *parent = nullptr);
31  ~FollowupReminderCreateJob() override;
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 
47 private Q_SLOTS:
48  void slotCreateNewTodo(KJob *job);
49 
50 private:
51  void writeFollowupReminderInfo();
52 
53  std::unique_ptr<FollowupReminderCreateJobPrivate> const d;
54 };
55 }
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
Q_SCRIPTABLE Q_NOREPLY void start()
The FollowupReminderCreateJob class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Mar 22 2023 04:07:14 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.