Messagelib

plugincomposerinterface.h
1/*
2 SPDX-FileCopyrightText: 2019-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 <MessageComposer/ComposerAttachmentInterface>
11#include <MessageComposer/ConvertSnippetVariablesUtil>
12namespace MessageComposer
13{
14class ComposerViewBase;
15class ComposerViewInterface;
16/**
17 * @brief The PluginComposerInterface class
18 * @author Laurent Montel <montel@kde.org>
19 */
20class MESSAGECOMPOSER_EXPORT PluginComposerInterface
21{
22public:
25 void setComposerViewBase(ComposerViewBase *composerViewBase);
26
27 [[nodiscard]] QString replyTo() const;
28 [[nodiscard]] QString subject() const;
29 [[nodiscard]] QString to() const;
30 [[nodiscard]] QString cc() const;
31 [[nodiscard]] QString from() const;
32 [[nodiscard]] ComposerAttachmentInterface attachments();
33 [[nodiscard]] QString shortDate() const;
34 [[nodiscard]] QString longDate() const;
35 [[nodiscard]] QString shortTime() const;
36 [[nodiscard]] QString longTime() const;
37 [[nodiscard]] QString insertDayOfWeek() const;
38
39 [[nodiscard]] QString convertVariable(MessageComposer::ConvertSnippetVariablesUtil::VariableType type) const;
40 [[nodiscard]] QString convertText(const QString &str) const;
41
42 [[nodiscard]] QString variableFromEnum(MessageComposer::ConvertSnippetVariablesUtil::VariableType type) const;
43
44private:
45 MessageComposer::ComposerViewInterface *mComposerViewInterface = nullptr;
46};
47}
The ComposerViewBase class.
The ComposerViewInterface class.
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 22 2024 12:05:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.