alkimia
8.0.3
src
alkwebpage.h
Go to the documentation of this file.
1
/***************************************************************************
2
* Copyright 2018 Ralf Habacker <ralf.habacker@freenet.de> *
3
* *
4
* This file is part of libalkimia. *
5
* *
6
* libalkimia is free software; you can redistribute it and/or *
7
* modify it under the terms of the GNU Lesser General Public License *
8
* as published by the Free Software Foundation; either version 2.1 of *
9
* the License or (at your option) version 3 or any later version. *
10
* *
11
* libalkimia is distributed in the hope that it will be useful, *
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14
* GNU General Public License for more details. *
15
* *
16
* You should have received a copy of the GNU General Public License *
17
* along with this program. If not, see <http://www.gnu.org/licenses/> *
18
***************************************************************************/
19
20
#ifndef ALKWEBPAGE_H
21
#define ALKWEBPAGE_H
22
23
#include <alkimia/alk_export.h>
24
25
#include <QObject>
26
27
class
QUrl;
28
29
#if defined(BUILD_WITH_WEBKIT)
30
31
#include <QWebView>
32
40
class
ALK_EXPORT
AlkWebPage
:
public
QWebView
41
{
42
public
:
43
AlkWebPage
(QWidget *parent =
nullptr
);
44
virtual
~
AlkWebPage
();
45
46
QWidget *widget();
47
void
load(
const
QUrl &url,
const
QString &acceptLanguage);
48
QString toHtml();
49
QString getFirstElement(
const
QString &symbol);
50
void
setWebInspectorEnabled(
bool
enable);
51
bool
webInspectorEnabled();
52
53
private
:
54
class
Private;
55
Private *d;
56
};
57
58
#else
59
60
#include <QWidget>
61
69
class
ALK_EXPORT
AlkWebPage
:
public
QWidget
70
{
71
public
:
72
AlkWebPage
(QWidget *parent =
nullptr
);
73
virtual
~
AlkWebPage
();
74
75
QWidget *widget();
76
void
load(
const
QUrl &url,
const
QString &acceptLanguage);
77
void
setUrl(
const
QUrl &url);
78
void
setContent(
const
QString &s);
79
QString toHtml();
80
QString getFirstElement(
const
QString &symbol);
81
void
setWebInspectorEnabled(
bool
enable);
82
bool
webInspectorEnabled();
83
Q_SIGNALS:
84
void
loadStarted
();
85
void
loadFinished
(
bool
);
86
87
private
:
88
class
Private
;
89
Private
*
d
;
90
};
91
#endif
92
93
#endif
// ALKWEBPAGE_H
AlkWebPage::Private
Definition:
alkwebpage.cpp:113
AlkWebPage
Definition:
alkwebpage.h:70
AlkWebPage::loadStarted
void loadStarted()
AlkWebPage::d
Private * d
Definition:
alkwebpage.h:88
AlkWebPage::loadFinished
void loadFinished(bool)
Generated by
1.9.1