File indexing completed on 2024-06-23 05:18:27

0001 /*
0002    SPDX-FileCopyrightText: 2019-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 #include "messagecomposer_export.h"
0009 #include <MessageComposer/ComposerAttachmentInterface>
0010 #include <QString>
0011 
0012 namespace MessageComposer
0013 {
0014 class ComposerViewBase;
0015 /**
0016  * @brief The ComposerViewInterface class
0017  * @author Laurent Montel <montel@kde.org>
0018  */
0019 class MESSAGECOMPOSER_EXPORT ComposerViewInterface
0020 {
0021 public:
0022     explicit ComposerViewInterface(ComposerViewBase *composerView);
0023     ~ComposerViewInterface();
0024 
0025     [[nodiscard]] QString subject() const;
0026     [[nodiscard]] QString to() const;
0027     [[nodiscard]] QString cc() const;
0028     [[nodiscard]] QString bcc() const;
0029     [[nodiscard]] QString from() const;
0030     [[nodiscard]] QString replyTo() const;
0031 
0032     [[nodiscard]] MessageComposer::ComposerAttachmentInterface attachments() const;
0033 
0034     [[nodiscard]] QString shortDate() const;
0035     [[nodiscard]] QString longDate() const;
0036     [[nodiscard]] QString shortTime() const;
0037     [[nodiscard]] QString longTime() const;
0038     [[nodiscard]] QString insertDayOfWeek() const;
0039 
0040 private:
0041     ComposerViewBase *const mComposerView;
0042 };
0043 }