Messagelib

plugineditorcheckbeforesendparams.h
1/*
2 SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org>
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>
12namespace MessageComposer
13{
14class PluginEditorCheckBeforeSendParamsPrivate;
15/**
16 * @brief The PluginEditorCheckBeforeSendParams class
17 * @author Laurent Montel <montel@kde.org>
18 */
19class MESSAGECOMPOSER_EXPORT PluginEditorCheckBeforeSendParams
20{
21public:
25
26 void setSubject(const QString &subject);
27 [[nodiscard]] QString subject() const;
28
29 void setIdentity(uint currentIdentity);
30 [[nodiscard]] uint identity() const;
31
32 [[nodiscard]] bool isHtmlMail() const;
33 void setHtmlMail(bool html);
34
35 void setPlainText(const QString &text);
36 [[nodiscard]] QString plainText() const;
37
38 void setBccAddresses(const QString &lst);
39 [[nodiscard]] QString bccAddresses() const;
40
41 void setToAddresses(const QString &lst);
42 [[nodiscard]] QString toAddresses() const;
43
44 void setCcAddresses(const QString &lst);
45 [[nodiscard]] QString ccAddresses() const;
46
47 void setDefaultDomain(const QString &domain);
48 [[nodiscard]] QString defaultDomain() const;
49
50 [[nodiscard]] bool hasAttachment() const;
51 void setHasAttachment(bool b);
52
53 [[nodiscard]] int transportId() const;
54 void setTransportId(int id);
55
57 [[nodiscard]] bool operator==(const PluginEditorCheckBeforeSendParams &other) const;
58
59private:
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-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:50:54 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.