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

0001 /*
0002   SPDX-FileCopyrightText: 2009 Constantin Berzan <exit3219@gmail.com>
0003 
0004   SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "contentjobbase.h"
0010 #include "messagecomposer_export.h"
0011 
0012 namespace MessageComposer
0013 {
0014 class MultipartJobPrivate;
0015 
0016 /**
0017  * @brief The MultipartJob class
0018  */
0019 class MESSAGECOMPOSER_EXPORT MultipartJob : public ContentJobBase
0020 {
0021     Q_OBJECT
0022 
0023 public:
0024     explicit MultipartJob(QObject *parent = nullptr);
0025     ~MultipartJob() override;
0026 
0027     [[nodiscard]] QByteArray multipartSubtype() const;
0028     void setMultipartSubtype(const QByteArray &subtype);
0029 
0030 protected Q_SLOTS:
0031     void process() override;
0032 
0033 private:
0034     Q_DECLARE_PRIVATE(MultipartJob)
0035 };
0036 }