Messagelib

attachmentjob.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 #include <MessageCore/AttachmentPart>
13 
14 namespace MessageComposer
15 {
16 class AttachmentJobPrivate;
17 
18 /**
19  * @brief The AttachmentJob class
20  */
21 class MESSAGECOMPOSER_EXPORT AttachmentJob : public ContentJobBase
22 {
23  Q_OBJECT
24 
25 public:
26  explicit AttachmentJob(MessageCore::AttachmentPart::Ptr part, QObject *parent = nullptr);
27  ~AttachmentJob() override;
28 
29  Q_REQUIRED_RESULT MessageCore::AttachmentPart::Ptr attachmentPart() const;
30  void setAttachmentPart(const MessageCore::AttachmentPart::Ptr &part);
31 
32 protected Q_SLOTS:
33  void doStart() override;
34  void process() override;
35 
36 private:
37  Q_DECLARE_PRIVATE(AttachmentJob)
38 };
39 }
40 
The AttachmentJob class.
Definition: attachmentjob.h:21
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
The ContentJobBase class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Dec 6 2021 23:04:56 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.