/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.6.2
 *
 * Copyright (c) 2022 Riverbank Computing Limited <info@riverbankcomputing.com>
 * 
 * This file is part of PyQtWebEngine.
 * 
 * This file may be used under the terms of the GNU General Public License
 * version 3.0 as published by the Free Software Foundation and appearing in
 * the file LICENSE included in the packaging of this file.  Please review the
 * following information to ensure the GNU General Public License version 3.0
 * requirements will be met: http://www.gnu.org/copyleft/gpl.html.
 * 
 * If you do not wish to use this file under the terms of the GPL version 3.0
 * then you may purchase a commercial license.  For more information contact
 * info@riverbankcomputing.com.
 * 
 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
 * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 */

#include "sipAPIQtWebEngineWidgets.h"

#line 28 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/sip/QtWebEngineWidgets/qwebenginefullscreenrequest.sip"
#include <qwebenginefullscreenrequest.h>
#line 29 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineWidgets/sipQtWebEngineWidgetsQWebEngineFullScreenRequest.cpp"

#line 26 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/sip/QtWebEngineWidgets/qwebenginepage.sip"
#include <qwebenginepage.h>
#line 33 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineWidgets/sipQtWebEngineWidgetsQWebEngineFullScreenRequest.cpp"
#line 109 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qurl.sip"
#include <qurl.h>
#line 36 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineWidgets/sipQtWebEngineWidgetsQWebEngineFullScreenRequest.cpp"


PyDoc_STRVAR(doc_QWebEngineFullScreenRequest_reject, "reject(self)");

extern "C" {static PyObject *meth_QWebEngineFullScreenRequest_reject(PyObject *, PyObject *);}
static PyObject *meth_QWebEngineFullScreenRequest_reject(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::QWebEngineFullScreenRequest *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWebEngineFullScreenRequest, &sipCpp))
        {
            sipCpp->reject();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineFullScreenRequest, sipName_reject, doc_QWebEngineFullScreenRequest_reject);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineFullScreenRequest_accept, "accept(self)");

extern "C" {static PyObject *meth_QWebEngineFullScreenRequest_accept(PyObject *, PyObject *);}
static PyObject *meth_QWebEngineFullScreenRequest_accept(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::QWebEngineFullScreenRequest *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWebEngineFullScreenRequest, &sipCpp))
        {
            sipCpp->accept();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineFullScreenRequest, sipName_accept, doc_QWebEngineFullScreenRequest_accept);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineFullScreenRequest_toggleOn, "toggleOn(self) -> bool");

extern "C" {static PyObject *meth_QWebEngineFullScreenRequest_toggleOn(PyObject *, PyObject *);}
static PyObject *meth_QWebEngineFullScreenRequest_toggleOn(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QWebEngineFullScreenRequest *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWebEngineFullScreenRequest, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->toggleOn();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineFullScreenRequest, sipName_toggleOn, doc_QWebEngineFullScreenRequest_toggleOn);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineFullScreenRequest_origin, "origin(self) -> QUrl");

extern "C" {static PyObject *meth_QWebEngineFullScreenRequest_origin(PyObject *, PyObject *);}
static PyObject *meth_QWebEngineFullScreenRequest_origin(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QWebEngineFullScreenRequest *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWebEngineFullScreenRequest, &sipCpp))
        {
             ::QUrl*sipRes;

            sipRes = new  ::QUrl(sipCpp->origin());

            return sipConvertFromNewType(sipRes,sipType_QUrl,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineFullScreenRequest, sipName_origin, doc_QWebEngineFullScreenRequest_origin);

    return SIP_NULLPTR;
}


/* Call the instance's destructor. */
extern "C" {static void release_QWebEngineFullScreenRequest(void *, int);}
static void release_QWebEngineFullScreenRequest(void *sipCppV, int)
{
    delete reinterpret_cast< ::QWebEngineFullScreenRequest *>(sipCppV);
}


extern "C" {static void dealloc_QWebEngineFullScreenRequest(sipSimpleWrapper *);}
static void dealloc_QWebEngineFullScreenRequest(sipSimpleWrapper *sipSelf)
{
    if (sipIsOwnedByPython(sipSelf))
    {
        release_QWebEngineFullScreenRequest(sipGetAddress(sipSelf), 0);
    }
}


static PyMethodDef methods_QWebEngineFullScreenRequest[] = {
    {sipName_accept, meth_QWebEngineFullScreenRequest_accept, METH_VARARGS, doc_QWebEngineFullScreenRequest_accept},
    {sipName_origin, meth_QWebEngineFullScreenRequest_origin, METH_VARARGS, doc_QWebEngineFullScreenRequest_origin},
    {sipName_reject, meth_QWebEngineFullScreenRequest_reject, METH_VARARGS, doc_QWebEngineFullScreenRequest_reject},
    {sipName_toggleOn, meth_QWebEngineFullScreenRequest_toggleOn, METH_VARARGS, doc_QWebEngineFullScreenRequest_toggleOn}
};


static pyqt5ClassPluginDef plugin_QWebEngineFullScreenRequest = {
    SIP_NULLPTR,
    0,
    SIP_NULLPTR,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_QtWebEngineWidgets_QWebEngineFullScreenRequest = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QWebEngineFullScreenRequest,
        SIP_NULLPTR,
        &plugin_QWebEngineFullScreenRequest
    },
    {
        sipNameNr_QWebEngineFullScreenRequest,
        {0, 0, 1},
        4, methods_QWebEngineFullScreenRequest,
        0, SIP_NULLPTR,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    SIP_NULLPTR,
    -1,
    sipNameNr_sip_simplewrapper,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QWebEngineFullScreenRequest,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    release_QWebEngineFullScreenRequest,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    0,
};
