Messagelib

sendlaterdialog.h
1 /*
2  SPDX-FileCopyrightText: 2013-2022 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 {
31  Unknown = 0,
32  SendDeliveryAtTime = 1,
33  Canceled = 2,
34  PutInOutbox = 3,
35  };
36 
37  explicit SendLaterDialog(SendLaterInfo *info, QWidget *parent = nullptr);
38  ~SendLaterDialog() override;
39 
40  SendLaterInfo *info();
41 
42  Q_REQUIRED_RESULT SendLaterAction action() const;
43 
44 private:
45  void slotRecurrenceClicked(bool);
46  void slotOkClicked();
47  void slotDelay(bool delayEnabled);
48 
49  void slotDateChanged(const QString &date);
50  void load(SendLaterInfo *info);
51 
52 private:
53  QDateTime mSendDateTime;
54  SendLaterAction mAction = Unknown;
55  QCheckBox *mDelay = nullptr;
56  Ui::SendLaterWidget *const mSendLaterWidget;
57  SendLaterInfo *mInfo = nullptr;
58  QPushButton *mOkButton = nullptr;
59 };
60 }
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-2022 The KDE developers.
Generated on Tue Sep 27 2022 04:09:21 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.