Messagelib

sendlaterdialog.h
1 /*
2  SPDX-FileCopyrightText: 2013-2021 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include <QDateTime>
10 #include <QDialog>
11 
12 #include "messagecomposer_export.h"
13 
14 class QCheckBox;
15 class QPushButton;
16 namespace Ui
17 {
18 class SendLaterWidget;
19 }
20 
21 namespace MessageComposer
22 {
23 class SendLaterInfo;
24 
25 /** Send later dialog. */
26 class MESSAGECOMPOSER_EXPORT SendLaterDialog : public QDialog
27 {
28  Q_OBJECT
29 public:
30  enum SendLaterAction { Unknown = 0, SendDeliveryAtTime = 1, Canceled = 2, PutInOutbox = 3 };
31 
32  explicit SendLaterDialog(SendLaterInfo *info, QWidget *parent = nullptr);
33  ~SendLaterDialog() override;
34 
35  SendLaterInfo *info();
36 
37  Q_REQUIRED_RESULT SendLaterAction action() const;
38 
39 private:
40  void slotRecurrenceClicked(bool);
41  void slotOkClicked();
42  void slotDelay(bool delayEnabled);
43 
44  void slotDateChanged(const QString &date);
45  void load(SendLaterInfo *info);
46 
47 private:
48  QDateTime mSendDateTime;
49  SendLaterAction mAction = Unknown;
50  QCheckBox *mDelay = nullptr;
51  Ui::SendLaterWidget *const mSendLaterWidget;
52  SendLaterInfo *mInfo = nullptr;
53  QPushButton *mOkButton = nullptr;
54 };
55 }
Send later information.
Definition: sendlaterinfo.h:17
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-2021 The KDE developers.
Generated on Sun Dec 5 2021 23:04:55 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.