aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/PySide2/QtWebEngineWidgets/typesystem_webenginewidgets.xml
blob: b18d4359a3f372aa0a3e0726fbc29f0ac00fbcda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<?xml version="1.0" encoding="UTF-8"?>
<!--
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt for Python.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 3 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL3 included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 3 requirements
** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 2.0 or (at your option) the GNU General
** Public license version 3 or any later version approved by the KDE Free
** Qt Foundation. The licenses are as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-2.0.html and
** https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
-->
<typesystem package="PySide2.QtWebEngineWidgets">
  <load-typesystem name="QtCore/typesystem_core.xml" generate="no"/>
  <load-typesystem name="QtGui/typesystem_gui.xml" generate="no"/>
  <load-typesystem name="QtWidgets/typesystem_widgets.xml" generate="no"/>
  <load-typesystem name="QtNetwork/typesystem_network.xml" generate="no"/>
  <load-typesystem name="QtWebChannel/typesystem_webchannel.xml" generate="no"/>
  <load-typesystem name="QtWebEngineCore/typesystem_webenginecore.xml" generate="no"/>
  <load-typesystem name="QtPrintSupport/typesystem_printsupport.xml" generate="no"/>


  <object-type name="QWebEngineCertificateError">
    <enum-type name="Error"/>
  </object-type>

  <object-type name="QWebEngineDownloadItem">
    <enum-type name="DownloadInterruptReason"/>
    <enum-type name="DownloadState"/>
    <enum-type name="DownloadType"/>
    <enum-type name="SavePageFormat"/>
  </object-type>

  <object-type name="QWebEngineHistory"/>
  <value-type name="QWebEngineHistoryItem"/>

  <object-type name="QWebEnginePage">
    <enum-type name="WebAction"/>
    <enum-type name="FindFlag" flags="FindFlags"/>
    <enum-type name="WebWindowType"/>
    <enum-type name="PermissionPolicy"/>
    <enum-type name="NavigationType"/>
    <enum-type name="Feature"/>
    <enum-type name="FileSelectionMode"/>
    <enum-type name="JavaScriptConsoleMessageLevel"/>
    <enum-type name="RenderProcessTerminationStatus"/>
    <add-function signature="findText(const QString &amp;,QWebEnginePage::FindFlags,PyObject*)">
        <inject-code class="target" position="beginning" file="../glue/qtwebenginewidgets.cpp" snippet="qwebenginepage-findtext"/>
    </add-function>
    <add-function signature="print(QPrinter*,PyObject*)">
        <inject-code class="target" position="beginning" file="../glue/qtwebenginewidgets.cpp" snippet="qwebenginepage-print"/>
    </add-function>
    <add-function signature="toPlainText(PyObject*) const">
        <inject-code class="target" position="beginning" file="../glue/qtwebenginewidgets.cpp" snippet="qwebenginepage-convertto"/>
    </add-function>
    <add-function signature="toHtml(PyObject*) const">
        <inject-code class="target" position="beginning" file="../glue/qtwebenginewidgets.cpp" snippet="qwebenginepage-convertto"/>
    </add-function>
    <add-function signature="runJavaScript(const QString &amp;,quint32,PyObject*)">
        <inject-code class="target" position="beginning" file="../glue/qtwebenginewidgets.cpp" snippet="qwebenginepage-runjavascript"/>
    </add-function>
    <add-function signature="printToPdf(PyObject*,const QPageLayout &amp;)">
        <inject-code class="target" position="beginning" file="../glue/qtwebenginewidgets.cpp" snippet="qwebenginepage-printtopdf"/>
    </add-function>
  </object-type>

  <object-type name="QWebEngineProfile">
    <enum-type name="HttpCacheType"/>
    <enum-type name="PersistentCookiesPolicy"/>
  </object-type>

  <value-type name="QWebEngineScript">
    <enum-type name="InjectionPoint"/>
    <enum-type name="ScriptWorldId"/>
  </value-type>

  <object-type name="QWebEngineScriptCollection"/>

  <object-type name="QWebEngineSettings">
    <enum-type name="FontFamily"/>
    <enum-type name="FontSize"/>
    <enum-type name="UnknownUrlSchemePolicy" since="5.11"/>
    <enum-type name="WebAttribute"/>
  </object-type>

  <object-type name="QWebEngineView">
      <add-function signature="findText(const QString &amp;,QWebEnginePage::FindFlags,PyObject*)">
          <inject-code class="target" position="beginning" file="../glue/qtwebenginewidgets.cpp" snippet="qwebenginepage-findtext"/>
      </add-function>
  </object-type>

  <value-type name="QWebEngineContextMenuData">
    <enum-type name="EditFlag" flags="EditFlags" since="5.11"/>
    <enum-type name="MediaFlag" flags="MediaFlags" since="5.11"/>
    <enum-type name="MediaType"/>
  </value-type>

  <object-type name="QWebEngineFullScreenRequest"/>

</typesystem>