/*
 * 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 "sipAPIQtWebEngineCore.h"

#line 28 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/sip/QtWebEngineCore/qwebenginenotification.sip"
#include <qwebenginenotification.h>
#line 29 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNotification.cpp"

#line 26 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 33 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNotification.cpp"
#line 27 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qstring.sip"
#include <qstring.h>
#line 36 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNotification.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtGui/qimage.sip"
#include <qimage.h>
#line 39 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNotification.cpp"
#line 109 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qurl.sip"
#include <qurl.h>
#line 42 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNotification.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 146 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 47 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNotification.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 50 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNotification.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 53 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNotification.cpp"
#line 247 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 56 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNotification.cpp"
#line 235 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 59 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNotification.cpp"
#line 28 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qobject.sip"
#include <qobject.h>
#line 62 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNotification.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qvariant.sip"
#include <qvariant.h>
#line 65 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNotification.cpp"
#line 38 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 68 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNotification.cpp"
#line 30 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 71 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNotification.cpp"
#line 149 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 74 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNotification.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qthread.sip"
#include <qthread.h>
#line 77 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNotification.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 80 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNotification.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qregexp.sip"
#include <qregexp.h>
#line 83 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNotification.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 86 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNotification.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 89 "/build/pyqt5-webengine/src/PyQtWebEngine-5.15.6/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineNotification.cpp"


PyDoc_STRVAR(doc_QWebEngineNotification_matches, "matches(self, QWebEngineNotification) -> bool");

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

    {
        const  ::QWebEngineNotification* a0;
        const  ::QWebEngineNotification *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QWebEngineNotification, &sipCpp, sipType_QWebEngineNotification, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->matches(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineNotification, sipName_matches, doc_QWebEngineNotification_matches);

    return SIP_NULLPTR;
}


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

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

    {
        const  ::QWebEngineNotification *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QWebEngineNotification, sipName_origin, doc_QWebEngineNotification_origin);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineNotification_icon, "icon(self) -> QImage");

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

    {
        const  ::QWebEngineNotification *sipCpp;

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

            sipRes = new  ::QImage(sipCpp->icon());

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

    sipNoMethod(sipParseErr, sipName_QWebEngineNotification, sipName_icon, doc_QWebEngineNotification_icon);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineNotification_title, "title(self) -> str");

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

    {
        const  ::QWebEngineNotification *sipCpp;

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

            sipRes = new  ::QString(sipCpp->title());

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

    sipNoMethod(sipParseErr, sipName_QWebEngineNotification, sipName_title, doc_QWebEngineNotification_title);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineNotification_message, "message(self) -> str");

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

    {
        const  ::QWebEngineNotification *sipCpp;

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

            sipRes = new  ::QString(sipCpp->message());

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

    sipNoMethod(sipParseErr, sipName_QWebEngineNotification, sipName_message, doc_QWebEngineNotification_message);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineNotification_tag, "tag(self) -> str");

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

    {
        const  ::QWebEngineNotification *sipCpp;

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

            sipRes = new  ::QString(sipCpp->tag());

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

    sipNoMethod(sipParseErr, sipName_QWebEngineNotification, sipName_tag, doc_QWebEngineNotification_tag);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineNotification_language, "language(self) -> str");

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

    {
        const  ::QWebEngineNotification *sipCpp;

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

            sipRes = new  ::QString(sipCpp->language());

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

    sipNoMethod(sipParseErr, sipName_QWebEngineNotification, sipName_language, doc_QWebEngineNotification_language);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineNotification_direction, "direction(self) -> Qt.LayoutDirection");

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

    {
        const  ::QWebEngineNotification *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWebEngineNotification, &sipCpp))
        {
             ::Qt::LayoutDirection sipRes;

            sipRes = sipCpp->direction();

            return sipConvertFromEnum(static_cast<int>(sipRes), sipType_Qt_LayoutDirection);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineNotification, sipName_direction, doc_QWebEngineNotification_direction);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineNotification_show, "show(self)");

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

    {
        const  ::QWebEngineNotification *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineNotification, sipName_show, doc_QWebEngineNotification_show);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineNotification_click, "click(self)");

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

    {
        const  ::QWebEngineNotification *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineNotification, sipName_click, doc_QWebEngineNotification_click);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineNotification_close, "close(self)");

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

    {
        const  ::QWebEngineNotification *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineNotification, sipName_close, doc_QWebEngineNotification_close);

    return SIP_NULLPTR;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_QWebEngineNotification(void *, const sipTypeDef *);}
static void *cast_QWebEngineNotification(void *sipCppV, const sipTypeDef *targetType)
{
     ::QWebEngineNotification *sipCpp = reinterpret_cast< ::QWebEngineNotification *>(sipCppV);

    if (targetType == sipType_QWebEngineNotification)
        return sipCppV;

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return SIP_NULLPTR;
}


/* Call the instance's destructor. */
extern "C" {static void release_QWebEngineNotification(void *, int);}
static void release_QWebEngineNotification(void *sipCppV, int)
{
     ::QWebEngineNotification *sipCpp = reinterpret_cast< ::QWebEngineNotification *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


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


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QWebEngineNotification[] = {{5, 0, 1}};


static PyMethodDef methods_QWebEngineNotification[] = {
    {sipName_click, meth_QWebEngineNotification_click, METH_VARARGS, doc_QWebEngineNotification_click},
    {sipName_close, meth_QWebEngineNotification_close, METH_VARARGS, doc_QWebEngineNotification_close},
    {sipName_direction, meth_QWebEngineNotification_direction, METH_VARARGS, doc_QWebEngineNotification_direction},
    {sipName_icon, meth_QWebEngineNotification_icon, METH_VARARGS, doc_QWebEngineNotification_icon},
    {sipName_language, meth_QWebEngineNotification_language, METH_VARARGS, doc_QWebEngineNotification_language},
    {sipName_matches, meth_QWebEngineNotification_matches, METH_VARARGS, doc_QWebEngineNotification_matches},
    {sipName_message, meth_QWebEngineNotification_message, METH_VARARGS, doc_QWebEngineNotification_message},
    {sipName_origin, meth_QWebEngineNotification_origin, METH_VARARGS, doc_QWebEngineNotification_origin},
    {sipName_show, meth_QWebEngineNotification_show, METH_VARARGS, doc_QWebEngineNotification_show},
    {sipName_tag, meth_QWebEngineNotification_tag, METH_VARARGS, doc_QWebEngineNotification_tag},
    {sipName_title, meth_QWebEngineNotification_title, METH_VARARGS, doc_QWebEngineNotification_title}
};


/* Define this type's signals. */
static const pyqt5QtSignal signals_QWebEngineNotification[] = {
    {"closed()", "\1closed(self)", SIP_NULLPTR, SIP_NULLPTR},
    {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR}
};


static pyqt5ClassPluginDef plugin_QWebEngineNotification = {
    & ::QWebEngineNotification::staticMetaObject,
    0,
    signals_QWebEngineNotification,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_QtWebEngineCore_QWebEngineNotification = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QWebEngineNotification,
        SIP_NULLPTR,
        &plugin_QWebEngineNotification
    },
    {
        sipNameNr_QWebEngineNotification,
        {0, 0, 1},
        11, methods_QWebEngineNotification,
        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,
    -1,
    supers_QWebEngineNotification,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QWebEngineNotification,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    release_QWebEngineNotification,
    cast_QWebEngineNotification,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    0,
};
