Messagelib

singlepartjob.h
1/*
2 SPDX-FileCopyrightText: 2009 Constantin Berzan <exit3219@gmail.com>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "contentjobbase.h"
10#include "messagecomposer_export.h"
11
12namespace KMime
13{
14namespace Headers
15{
16class ContentDescription;
17class ContentDisposition;
18class ContentID;
19class ContentTransferEncoding;
20class ContentType;
21}
22}
23
24namespace MessageComposer
25{
26class SinglepartJobPrivate;
27
28/**
29 * @brief The SinglepartJob class
30 */
31class MESSAGECOMPOSER_EXPORT SinglepartJob : public ContentJobBase
32{
33 Q_OBJECT
34
35public:
36 explicit SinglepartJob(QObject *parent = nullptr);
37 ~SinglepartJob() override;
38
39 [[nodiscard]] QByteArray data() const;
40 void setData(const QByteArray &data);
41
42 /// created on first call. delete them if you don't use the content
43 [[nodiscard]] KMime::Headers::ContentDescription *contentDescription();
44 [[nodiscard]] KMime::Headers::ContentDisposition *contentDisposition();
45 [[nodiscard]] KMime::Headers::ContentID *contentID();
46 [[nodiscard]] KMime::Headers::ContentTransferEncoding *contentTransferEncoding();
47 [[nodiscard]] KMime::Headers::ContentType *contentType();
48
49protected Q_SLOTS:
50 void process() override;
51
52private:
53 Q_DECLARE_PRIVATE(SinglepartJob)
54};
55}
The ContentJobBase class.
The SinglepartJob 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 Sat Feb 24 2024 19:57:46 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.