<?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="typesystem_core.xml" generate="no"/>
  <load-typesystem name="typesystem_gui.xml" generate="no"/>
  <load-typesystem name="typesystem_widgets.xml" generate="no"/>
  <load-typesystem name="typesystem_network.xml" generate="no"/>
  <load-typesystem name="typesystem_webchannel.xml" generate="no"/>
  <load-typesystem name="typesystem_webenginecore.xml" generate="no"/>
  <load-typesystem name="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="LifecycleState"/>
    <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>
