Messagelib

skeletonmessagejob.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 "jobbase.h"
10 #include "messagecomposer_export.h"
11 
12 namespace KMime
13 {
14 class Message;
15 }
16 
17 namespace MessageComposer
18 {
19 class SkeletonMessageJobPrivate;
20 class InfoPart;
21 class GlobalPart;
22 
23 /**
24  A message containing only the headers...
25 */
26 class MESSAGECOMPOSER_EXPORT SkeletonMessageJob : public JobBase
27 {
28  Q_OBJECT
29 
30 public:
31  explicit SkeletonMessageJob(InfoPart *infoPart = nullptr, GlobalPart *globalPart = nullptr, QObject *parent = nullptr);
32  ~SkeletonMessageJob() override;
33 
34  Q_REQUIRED_RESULT InfoPart *infoPart() const;
35  void setInfoPart(InfoPart *part);
36 
37  Q_REQUIRED_RESULT GlobalPart *globalPart() const;
38  void setGlobalPart(GlobalPart *part);
39 
40  Q_REQUIRED_RESULT KMime::Message *message() const;
41 
42  void start() override;
43 
44 private:
45  Q_DECLARE_PRIVATE(SkeletonMessageJob)
46 
47  Q_PRIVATE_SLOT(d_func(), void doStart())
48 };
49 } // namespace MessageComposer
50 
A message containing only the headers...
The GlobalPart class.
Definition: globalpart.h:19
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
The InfoPart class contains the message header.
Definition: infopart.h:21
A dummy abstract class defining some errors pertaining to the Composer.
Definition: jobbase.h:24
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Nov 30 2021 23:05:48 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.