Messagelib

skeletonmessagejob.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 "jobbase.h"
10#include "messagecomposer_export.h"
11
12namespace KMime
13{
14class Message;
15}
16
17namespace MessageComposer
18{
19class SkeletonMessageJobPrivate;
20class InfoPart;
21class GlobalPart;
22
23/**
24 A message containing only the headers...
25*/
26class MESSAGECOMPOSER_EXPORT SkeletonMessageJob : public JobBase
27{
28 Q_OBJECT
29
30public:
31 explicit SkeletonMessageJob(InfoPart *infoPart = nullptr, GlobalPart *globalPart = nullptr, QObject *parent = nullptr);
32 ~SkeletonMessageJob() override;
33
34 [[nodiscard]] InfoPart *infoPart() const;
35 void setInfoPart(InfoPart *part);
36
37 [[nodiscard]] GlobalPart *globalPart() const;
38 void setGlobalPart(GlobalPart *part);
39
40 [[nodiscard]] KMime::Message *message() const;
41
42 void start() override;
43
44private:
45 Q_DECLARE_PRIVATE(SkeletonMessageJob)
46
47 Q_PRIVATE_SLOT(d_func(), void doStart())
48};
49} // namespace MessageComposer
The GlobalPart class.
Definition globalpart.h:20
The InfoPart class contains the message header.
Definition infopart.h:22
A dummy abstract class defining some errors pertaining to the Composer.
Definition jobbase.h:25
A message containing only the headers...
Q_SCRIPTABLE Q_NOREPLY void start()
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 Mon Nov 4 2024 16:33:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.