Messagelib

plugineditorcheckbeforesendparams.h
1 /*
2  SPDX-FileCopyrightText: 2016-2023 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "messagecomposer_export.h"
10 #include <QString>
11 #include <memory>
12 namespace MessageComposer
13 {
14 class PluginEditorCheckBeforeSendParamsPrivate;
15 /**
16  * @brief The PluginEditorCheckBeforeSendParams class
17  * @author Laurent Montel <[email protected]>
18  */
19 class MESSAGECOMPOSER_EXPORT PluginEditorCheckBeforeSendParams
20 {
21 public:
25 
26  void setSubject(const QString &subject);
27  Q_REQUIRED_RESULT QString subject() const;
28 
29  void setIdentity(uint currentIdentity);
30  Q_REQUIRED_RESULT uint identity() const;
31 
32  Q_REQUIRED_RESULT bool isHtmlMail() const;
33  void setHtmlMail(bool html);
34 
35  void setPlainText(const QString &text);
36  Q_REQUIRED_RESULT QString plainText() const;
37 
38  void setBccAddresses(const QString &lst);
39  Q_REQUIRED_RESULT QString bccAddresses() const;
40 
41  void setToAddresses(const QString &lst);
42  Q_REQUIRED_RESULT QString toAddresses() const;
43 
44  void setCcAddresses(const QString &lst);
45  Q_REQUIRED_RESULT QString ccAddresses() const;
46 
47  void setDefaultDomain(const QString &domain);
48  Q_REQUIRED_RESULT QString defaultDomain() const;
49 
50  Q_REQUIRED_RESULT bool hasAttachment() const;
51  void setHasAttachment(bool b);
52 
53  Q_REQUIRED_RESULT int transportId() const;
54  void setTransportId(int id);
55 
57  Q_REQUIRED_RESULT bool operator==(const PluginEditorCheckBeforeSendParams &other) const;
58 
59 private:
60  std::unique_ptr<PluginEditorCheckBeforeSendParamsPrivate> const d;
61 };
62 }
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-2023 The KDE developers.
Generated on Wed Mar 22 2023 04:07:15 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.