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

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 
0009 #include "messagecomposer_export.h"
0010 #include <QObject>
0011 
0012 namespace MessageComposer
0013 {
0014 /**
0015  * @brief The ComposerAttachmentInterface class
0016  * @author Laurent Montel <montel@kde.org>
0017  */
0018 class MESSAGECOMPOSER_EXPORT ComposerAttachmentInterface
0019 {
0020 public:
0021     ComposerAttachmentInterface();
0022     ~ComposerAttachmentInterface();
0023 
0024     [[nodiscard]] QStringList fileNames() const;
0025     void setFileNames(const QStringList &fileName);
0026 
0027     [[nodiscard]] int count() const;
0028     void setCount(int count);
0029 
0030     [[nodiscard]] QStringList namesAndSize() const;
0031     void setNamesAndSize(const QStringList &nameAndSize);
0032 
0033     [[nodiscard]] QStringList names() const;
0034     void setNames(const QStringList &name);
0035 
0036 private:
0037     QStringList mFileNames;
0038     QStringList mNamesAndSize;
0039     QStringList mNames;
0040     int mCount = 0;
0041 };
0042 }