File indexing completed on 2024-12-22 05:01:12

0001 /*
0002   SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org>
0003 
0004   SPDX-License-Identifier: LGPL-2.0-or-later
0005 
0006 */
0007 #pragma once
0008 
0009 #include <QObject>
0010 class QTextDocument;
0011 class SaveAsFileJob : public QObject
0012 {
0013     Q_OBJECT
0014 public:
0015     explicit SaveAsFileJob(QObject *parent = nullptr);
0016     ~SaveAsFileJob() override;
0017     void start();
0018 
0019     void setHtmlMode(bool htmlMode);
0020 
0021     void setTextDocument(QTextDocument *textDocument);
0022 
0023     void setParentWidget(QWidget *parentWidget);
0024 
0025 private:
0026     bool mHtmlMode = false;
0027     QTextDocument *mTextDocument = nullptr;
0028     QWidget *mParentWidget = nullptr;
0029 };