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
12namespace MessageComposer
13{
14class ComposerViewBase;
15/**
16 * @brief The ComposerViewInterface class
17 * @author Laurent Montel <montel@kde.org>
18 */
19class MESSAGECOMPOSER_EXPORT ComposerViewInterface
20{
21public:
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
40private:
41 ComposerViewBase *const mComposerView;
42};
43}
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 Mon Nov 18 2024 12:07:24 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.