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

0001 /*
0002   SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org>
0003 
0004   SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "MessageCore/AttachmentLoadJob"
0010 #include "messagecomposer_export.h"
0011 namespace MessageComposer
0012 {
0013 /**
0014  * @brief The AttachmentClipBoardJob class
0015  * @author Laurent Montel <montel@kde.org>
0016  */
0017 class MESSAGECOMPOSER_EXPORT AttachmentClipBoardJob : public MessageCore::AttachmentLoadJob
0018 {
0019     Q_OBJECT
0020 public:
0021     explicit AttachmentClipBoardJob(QObject *parent = nullptr);
0022     ~AttachmentClipBoardJob() override;
0023 
0024 protected Q_SLOTS:
0025     void doStart() override;
0026 
0027 private:
0028     MESSAGECOMPOSER_NO_EXPORT void addAttachment(const QByteArray &data, const QString &attachmentName);
0029 };
0030 }