Messagelib

sendlaterdialog.h
1/*
2 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org>
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
14class QCheckBox;
15class QPushButton;
16namespace Ui
17{
18class SendLaterWidget;
19}
20
21namespace MessageComposer
22{
23class SendLaterInfo;
24
25/** Send later dialog. */
26class MESSAGECOMPOSER_EXPORT SendLaterDialog : public QDialog
27{
28 Q_OBJECT
29public:
30 enum SendLaterAction : uint8_t {
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 [[nodiscard]] SendLaterInfo *info();
41
42 [[nodiscard]] SendLaterAction action() const;
43
44private:
45 MESSAGECOMPOSER_NO_EXPORT void slotRecurrenceClicked(bool);
46 MESSAGECOMPOSER_NO_EXPORT void slotOkClicked();
47 MESSAGECOMPOSER_NO_EXPORT void slotDelay(bool delayEnabled);
48
49 MESSAGECOMPOSER_NO_EXPORT void slotDateChanged(const QString &date);
50 MESSAGECOMPOSER_NO_EXPORT void load(SendLaterInfo *info);
51
52 QDateTime mSendDateTime;
53 SendLaterAction mAction = Unknown;
54 QCheckBox *mDelay = nullptr;
55 Ui::SendLaterWidget *const mSendLaterWidget;
56 SendLaterInfo *mInfo = nullptr;
57 QPushButton *mOkButton = nullptr;
58};
59}
Send later information.
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.