Messagelib

transparentjob.h
1 /*
2  SPDX-FileCopyrightText: 2009 Klaralvdalens Datakonsult AB, a KDAB Group company, [email protected]
3  SPDX-FileCopyrightText: 2009 Leo Franchi <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7 
8 #pragma once
9 
10 #include "contentjobbase.h"
11 #include "messagecomposer_export.h"
12 
13 namespace MessageComposer
14 {
15 class TransparentJobPrivate;
16 
17 /**
18  A job that just wraps some KMime::Content into a job object
19  for use as a subjob in another job.
20  */
21 class MESSAGECOMPOSER_EXPORT TransparentJob : public MessageComposer::ContentJobBase
22 {
23  Q_OBJECT
24 
25 public:
26  explicit TransparentJob(QObject *parent = nullptr);
27  ~TransparentJob() override;
28 
29  void setContent(KMime::Content *content);
30  void process() override;
31 
32 private:
33  Q_DECLARE_PRIVATE(TransparentJob)
34 };
35 }
36 
A job that just wraps some KMime::Content into a job object for use as a subjob in another job...
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 Fri Nov 26 2021 23:16:44 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.