Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
PIM Messagelib
Commits
e82a8a9b
Commit
e82a8a9b
authored
May 18, 2016
by
Laurent Montel
😁
Browse files
Add job to export page as html
parent
a84799df
Changes
5
Hide whitespace changes
Inline
Side-by-side
webengineviewer/src/autotests/CMakeLists.txt
View file @
e82a8a9b
...
...
@@ -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
)
webengineviewer/src/autotests/webengineexporthtmlpagejobtest.cpp
0 → 100644
View file @
e82a8a9b
/*
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
)
webengineviewer/src/autotests/webengineexporthtmlpagejobtest.h
0 → 100644
View file @
e82a8a9b
/*
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
webengineviewer/src/webengineexporthtmlpagejob.cpp
0 → 100644
View file @
e82a8a9b
/*
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
()
{
}
webengineviewer/src/webengineexporthtmlpagejob.h
0 → 100644
View file @
e82a8a9b
/*
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment