Messagelib

composerviewinterface.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 #include "messagecomposer_export.h"
9 #include <MessageComposer/ComposerAttachmentInterface>
10 #include <QString>
11 
12 namespace MessageComposer
13 {
14 class ComposerViewBase;
15 /**
16  * @brief The ComposerViewInterface class
17  * @author Laurent Montel <montel@kde.org>
18  */
19 class MESSAGECOMPOSER_EXPORT ComposerViewInterface
20 {
21 public:
22  explicit ComposerViewInterface(ComposerViewBase *composerView);
24 
25  [[nodiscard]] QString subject() const;
26  [[nodiscard]] QString to() const;
27  [[nodiscard]] QString cc() const;
28  [[nodiscard]] QString bcc() const;
29  [[nodiscard]] QString from() const;
30  [[nodiscard]] QString replyTo() const;
31 
32  [[nodiscard]] MessageComposer::ComposerAttachmentInterface attachments() const;
33 
34  [[nodiscard]] QString shortDate() const;
35  [[nodiscard]] QString longDate() const;
36  [[nodiscard]] QString shortTime() const;
37  [[nodiscard]] QString longTime() const;
38  [[nodiscard]] QString insertDayOfWeek() const;
39 
40 private:
41  ComposerViewBase *const mComposerView;
42 };
43 }
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
The ComposerViewBase class.
The ComposerViewInterface class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Thu Feb 15 2024 03:55:19 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.