File indexing completed on 2024-06-23 05:18:35
0001 /* 0002 SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "messagecomposer_export.h" 0010 #include <QString> 0011 #include <memory> 0012 namespace MessageComposer 0013 { 0014 class PluginEditorCheckBeforeSendParamsPrivate; 0015 /** 0016 * @brief The PluginEditorCheckBeforeSendParams class 0017 * @author Laurent Montel <montel@kde.org> 0018 */ 0019 class MESSAGECOMPOSER_EXPORT PluginEditorCheckBeforeSendParams 0020 { 0021 public: 0022 PluginEditorCheckBeforeSendParams(); 0023 PluginEditorCheckBeforeSendParams(const PluginEditorCheckBeforeSendParams &other); 0024 ~PluginEditorCheckBeforeSendParams(); 0025 0026 void setSubject(const QString &subject); 0027 [[nodiscard]] QString subject() const; 0028 0029 void setIdentity(uint currentIdentity); 0030 [[nodiscard]] uint identity() const; 0031 0032 [[nodiscard]] bool isHtmlMail() const; 0033 void setHtmlMail(bool html); 0034 0035 void setPlainText(const QString &text); 0036 [[nodiscard]] QString plainText() const; 0037 0038 void setBccAddresses(const QString &lst); 0039 [[nodiscard]] QString bccAddresses() const; 0040 0041 void setToAddresses(const QString &lst); 0042 [[nodiscard]] QString toAddresses() const; 0043 0044 void setCcAddresses(const QString &lst); 0045 [[nodiscard]] QString ccAddresses() const; 0046 0047 void setDefaultDomain(const QString &domain); 0048 [[nodiscard]] QString defaultDomain() const; 0049 0050 [[nodiscard]] bool hasAttachment() const; 0051 void setHasAttachment(bool b); 0052 0053 [[nodiscard]] int transportId() const; 0054 void setTransportId(int id); 0055 0056 PluginEditorCheckBeforeSendParams &operator=(const PluginEditorCheckBeforeSendParams &other); 0057 [[nodiscard]] bool operator==(const PluginEditorCheckBeforeSendParams &other) const; 0058 0059 private: 0060 std::unique_ptr<PluginEditorCheckBeforeSendParamsPrivate> const d; 0061 }; 0062 }