Messagelib

maintextjob.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 MessageComposer
13 {
14 class MainTextJobPrivate;
15 class TextPart;
16 /**
17  * @brief The MainTextJob class
18  */
19 class MESSAGECOMPOSER_EXPORT MainTextJob : public ContentJobBase
20 {
21  Q_OBJECT
22 
23 public:
24  explicit MainTextJob(TextPart *textPart = nullptr, QObject *parent = nullptr);
25  ~MainTextJob() override;
26 
27  Q_REQUIRED_RESULT TextPart *textPart() const;
28  void setTextPart(TextPart *part);
29 
30 protected Q_SLOTS:
31  void doStart() override;
32  void process() override;
33 
34 private:
35  Q_DECLARE_PRIVATE(MainTextJob)
36 };
37 } // namespace MessageComposer
38 
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
The TextPart class.
Definition: textpart.h:20
The MainTextJob class.
Definition: maintextjob.h:19
The ContentJobBase class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Nov 30 2021 23:05:47 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.