Messagelib

plugincomposerinterface.h
1 /*
2  SPDX-FileCopyrightText: 2019-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 <MessageComposer/ComposerAttachmentInterface>
11 #include <MessageComposer/ConvertSnippetVariablesUtil>
12 namespace MessageComposer
13 {
14 class ComposerViewBase;
15 class ComposerViewInterface;
16 /**
17  * @brief The PluginComposerInterface class
18  * @author Laurent Montel <[email protected]>
19  */
20 class MESSAGECOMPOSER_EXPORT PluginComposerInterface
21 {
22 public:
25  void setComposerViewBase(ComposerViewBase *composerViewBase);
26 
27  Q_REQUIRED_RESULT QString replyTo() const;
28  Q_REQUIRED_RESULT QString subject() const;
29  Q_REQUIRED_RESULT QString to() const;
30  Q_REQUIRED_RESULT QString cc() const;
31  Q_REQUIRED_RESULT QString from() const;
32  Q_REQUIRED_RESULT ComposerAttachmentInterface attachments();
33  Q_REQUIRED_RESULT QString shortDate() const;
34  Q_REQUIRED_RESULT QString longDate() const;
35  Q_REQUIRED_RESULT QString shortTime() const;
36  Q_REQUIRED_RESULT QString longTime() const;
37  Q_REQUIRED_RESULT QString insertDayOfWeek() const;
38 
39  Q_REQUIRED_RESULT QString convertVariable(MessageComposer::ConvertSnippetVariablesUtil::VariableType type) const;
40  Q_REQUIRED_RESULT QString convertText(const QString &str) const;
41 
42  Q_REQUIRED_RESULT QString variableFromEnum(MessageComposer::ConvertSnippetVariablesUtil::VariableType type) const;
43 
44 private:
45  MessageComposer::ComposerViewInterface *mComposerViewInterface = nullptr;
46 };
47 }
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
The ComposerViewBase class.
The PluginComposerInterface class.
The ComposerViewInterface class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Mar 27 2023 04:08:18 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.