Messagelib

inserttextfilejob.h
1 /*
2  * SPDX-FileCopyrightText: 2010 Thomas McGuire <[email protected]>
3  *
4  * SPDX-License-Identifier: LGPL-2.1-or-later
5  */
6 #ifndef INSERTTEXTFILEJOB_H
7 #define INSERTTEXTFILEJOB_H
8 
9 #include "messagecomposer_export.h"
10 
11 #include <KJob>
12 #include <QUrl>
13 
14 class QTextEdit;
15 
16 namespace KIO {
17 class Job;
18 }
19 
20 namespace MessageComposer {
21 class InsertTextFileJobPrivate;
26 class MESSAGECOMPOSER_EXPORT InsertTextFileJob : public KJob
27 {
28  Q_OBJECT
29 
30 public:
31  InsertTextFileJob(QTextEdit *editor, const QUrl &url);
32  ~InsertTextFileJob() override;
33 
34  void setEncoding(const QString &encoding);
35 
36  void start() override;
37 
38 private Q_SLOTS:
39 
40  void slotGetJobFinished(KJob *job);
41  void slotFileData(KIO::Job *job, const QByteArray &data);
42 
43 private:
44  InsertTextFileJobPrivate *const d;
45 };
46 }
47 
48 #endif
A job that downloads a given URL, interprets the result as a text file with the given encoding and th...
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-2020 The KDE developers.
Generated on Sun Aug 9 2020 23:29:12 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.