Messagelib

singlepartjob.h
1 /*
2  SPDX-FileCopyrightText: 2009 Constantin Berzan <[email protected]>
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 
12 namespace KMime
13 {
14 namespace Headers
15 {
16 class ContentDescription;
17 class ContentDisposition;
18 class ContentID;
19 class ContentTransferEncoding;
20 class ContentType;
21 }
22 }
23 
24 namespace MessageComposer
25 {
26 class SinglepartJobPrivate;
27 
28 /**
29  * @brief The SinglepartJob class
30  */
31 class MESSAGECOMPOSER_EXPORT SinglepartJob : public ContentJobBase
32 {
33  Q_OBJECT
34 
35 public:
36  explicit SinglepartJob(QObject *parent = nullptr);
37  ~SinglepartJob() override;
38 
39  Q_REQUIRED_RESULT 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  Q_REQUIRED_RESULT KMime::Headers::ContentDescription *contentDescription();
45  Q_REQUIRED_RESULT KMime::Headers::ContentID *contentID();
46  Q_REQUIRED_RESULT KMime::Headers::ContentTransferEncoding *contentTransferEncoding();
47  Q_REQUIRED_RESULT KMime::Headers::ContentType *contentType();
48 
49 protected Q_SLOTS:
50  void process() override;
51 
52 private:
53  Q_DECLARE_PRIVATE(SinglepartJob)
54 };
55 }
56 
contentDisposition
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
The SinglepartJob class.
Definition: singlepartjob.h:31
The ContentJobBase class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Nov 26 2021 23:16:43 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.