Messagelib

composerviewinterface.h
1 /*
2  SPDX-FileCopyrightText: 2019-2022 Laurent Montel <[email protected]>
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 <[email protected]>
18  */
19 class MESSAGECOMPOSER_EXPORT ComposerViewInterface
20 {
21 public:
22  explicit ComposerViewInterface(ComposerViewBase *composerView);
24 
25  Q_REQUIRED_RESULT QString subject() const;
26  Q_REQUIRED_RESULT QString to() const;
27  Q_REQUIRED_RESULT QString cc() const;
28  Q_REQUIRED_RESULT QString bcc() const;
29  Q_REQUIRED_RESULT QString from() const;
30  Q_REQUIRED_RESULT QString replyTo() const;
31 
32  Q_REQUIRED_RESULT MessageComposer::ComposerAttachmentInterface attachments() const;
33 
34  Q_REQUIRED_RESULT QString shortDate() const;
35  Q_REQUIRED_RESULT QString longDate() const;
36  Q_REQUIRED_RESULT QString shortTime() const;
37  Q_REQUIRED_RESULT QString longTime() const;
38  Q_REQUIRED_RESULT 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-2022 The KDE developers.
Generated on Fri Jul 1 2022 05:11:58 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.