Commit e82a8a9b authored by Laurent Montel's avatar Laurent Montel 😁

Add job to export page as html

parent a84799df
......@@ -18,3 +18,8 @@ ecm_add_test(webengineprintmessageboxtest.cpp
LINK_LIBRARIES Qt5::Test KF5::WebEngineViewer
)
ecm_add_test(webengineexporthtmlpagejobtest.cpp
TEST_NAME webengineexporthtmlpagejobtest
NAME_PREFIX "webengineviewer-"
LINK_LIBRARIES Qt5::Test KF5::WebEngineViewer
)
/*
Copyright (c) 2016 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "webengineexporthtmlpagejobtest.h"
#include <QTest>
WebEngineExportHtmlPageJobTest::WebEngineExportHtmlPageJobTest(QObject *parent)
: QObject(parent)
{
}
WebEngineExportHtmlPageJobTest::~WebEngineExportHtmlPageJobTest()
{
}
QTEST_MAIN(WebEngineExportHtmlPageJobTest)
/*
Copyright (c) 2016 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef WEBENGINEEXPORTHTMLPAGEJOBTEST_H
#define WEBENGINEEXPORTHTMLPAGEJOBTEST_H
#include <QObject>
class WebEngineExportHtmlPageJobTest : public QObject
{
Q_OBJECT
public:
explicit WebEngineExportHtmlPageJobTest(QObject *parent = Q_NULLPTR);
~WebEngineExportHtmlPageJobTest();
};
#endif // WEBENGINEEXPORTHTMLPAGEJOBTEST_H
/*
Copyright (c) 2016 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "webengineexporthtmlpagejob.h"
using namespace WebEngineViewer;
WebEngineExportHtmlPageJob::WebEngineExportHtmlPageJob(QObject *parent)
: QObject(parent)
{
}
WebEngineExportHtmlPageJob::~WebEngineExportHtmlPageJob()
{
}
/*
Copyright (c) 2016 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef WEBENGINEEXPORTHTMLPAGEJOB_H
#define WEBENGINEEXPORTHTMLPAGEJOB_H
#include <QObject>
namespace WebEngineViewer
{
class WebEngineExportHtmlPageJob : public QObject
{
Q_OBJECT
public:
explicit WebEngineExportHtmlPageJob(QObject *parent = Q_NULLPTR);
~WebEngineExportHtmlPageJob();
};
}
#endif // WEBENGINEEXPORTHTMLPAGEJOB_H
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment