/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.6.2
 *
 * Copyright (c) 2022 Riverbank Computing Limited <info@riverbankcomputing.com>
 * 
 * This file is part of PyQt5.
 * 
 * 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 "sipAPIQtWebKit.h"

#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtWebKit/qwebpluginfactory.sip"
#include <qwebpluginfactory.h>
#line 75 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtWebKit/qwebpluginfactory.sip"
#include <qwebpluginfactory.h>
#line 31 "/build/pyqt5/src/PyQt5-5.15.7/build/QtWebKit/sipQtWebKitQWebPluginFactoryPlugin.cpp"

#line 27 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 35 "/build/pyqt5/src/PyQt5-5.15.7/build/QtWebKit/sipQtWebKitQWebPluginFactoryPlugin.cpp"
#line 38 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 38 "/build/pyqt5/src/PyQt5-5.15.7/build/QtWebKit/sipQtWebKitQWebPluginFactoryPlugin.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtWebKit/qwebpluginfactory.sip"
#include <qwebpluginfactory.h>
#line 62 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtWebKit/qwebpluginfactory.sip"
#include <qwebpluginfactory.h>
#line 43 "/build/pyqt5/src/PyQt5-5.15.7/build/QtWebKit/sipQtWebKitQWebPluginFactoryPlugin.cpp"


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


extern "C" {static void *array_QWebPluginFactory_Plugin(Py_ssize_t);}
static void *array_QWebPluginFactory_Plugin(Py_ssize_t sipNrElem)
{
    return new  ::QWebPluginFactory::Plugin[sipNrElem];
}


extern "C" {static void array_delete_QWebPluginFactory_Plugin(void *);}
static void array_delete_QWebPluginFactory_Plugin(void *sipCpp)
{
    delete[] reinterpret_cast< ::QWebPluginFactory::Plugin *>(sipCpp);
}


extern "C" {static void assign_QWebPluginFactory_Plugin(void *, Py_ssize_t, void *);}
static void assign_QWebPluginFactory_Plugin(void *sipDst, Py_ssize_t sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::QWebPluginFactory::Plugin *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::QWebPluginFactory::Plugin *>(sipSrc);
}


extern "C" {static void *copy_QWebPluginFactory_Plugin(const void *, Py_ssize_t);}
static void *copy_QWebPluginFactory_Plugin(const void *sipSrc, Py_ssize_t sipSrcIdx)
{
    return new  ::QWebPluginFactory::Plugin(reinterpret_cast<const  ::QWebPluginFactory::Plugin *>(sipSrc)[sipSrcIdx]);
}


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


extern "C" {static void *init_type_QWebPluginFactory_Plugin(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QWebPluginFactory_Plugin(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
     ::QWebPluginFactory::Plugin *sipCpp = SIP_NULLPTR;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, ""))
        {
            sipCpp = new  ::QWebPluginFactory::Plugin();

            return sipCpp;
        }
    }

    {
        const  ::QWebPluginFactory::Plugin* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "J9", sipType_QWebPluginFactory_Plugin, &a0))
        {
            sipCpp = new  ::QWebPluginFactory::Plugin(*a0);

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


extern "C" {static PyObject *varget_QWebPluginFactory_Plugin_description(void *, PyObject *, PyObject *);}
static PyObject *varget_QWebPluginFactory_Plugin_description(void *sipSelf, PyObject *, PyObject *)
{
     ::QString*sipVal;
     ::QWebPluginFactory::Plugin *sipCpp = reinterpret_cast< ::QWebPluginFactory::Plugin *>(sipSelf);

    sipVal = &sipCpp->description;

    return sipConvertFromType(sipVal, sipType_QString, SIP_NULLPTR);
}


extern "C" {static int varset_QWebPluginFactory_Plugin_description(void *, PyObject *, PyObject *);}
static int varset_QWebPluginFactory_Plugin_description(void *sipSelf, PyObject *sipPy, PyObject *)
{
     ::QString*sipVal;
     ::QWebPluginFactory::Plugin *sipCpp = reinterpret_cast< ::QWebPluginFactory::Plugin *>(sipSelf);

    int sipIsErr = 0;
    int sipValState;
    sipVal = reinterpret_cast< ::QString *>(sipForceConvertToType(sipPy, sipType_QString, SIP_NULLPTR, SIP_NOT_NONE, &sipValState, &sipIsErr));

    if (sipIsErr)
        return -1;

    sipCpp->description = *sipVal;

    sipReleaseType(sipVal, sipType_QString, sipValState);

    return 0;
}


extern "C" {static PyObject *varget_QWebPluginFactory_Plugin_mimeTypes(void *, PyObject *, PyObject *);}
static PyObject *varget_QWebPluginFactory_Plugin_mimeTypes(void *sipSelf, PyObject *, PyObject *)
{
    QList< ::QWebPluginFactory::MimeType>*sipVal;
     ::QWebPluginFactory::Plugin *sipCpp = reinterpret_cast< ::QWebPluginFactory::Plugin *>(sipSelf);

    sipVal = &sipCpp->mimeTypes;

    return sipConvertFromType(sipVal, sipType_QList_0100QWebPluginFactory_MimeType, SIP_NULLPTR);
}


extern "C" {static int varset_QWebPluginFactory_Plugin_mimeTypes(void *, PyObject *, PyObject *);}
static int varset_QWebPluginFactory_Plugin_mimeTypes(void *sipSelf, PyObject *sipPy, PyObject *)
{
    QList< ::QWebPluginFactory::MimeType>*sipVal;
     ::QWebPluginFactory::Plugin *sipCpp = reinterpret_cast< ::QWebPluginFactory::Plugin *>(sipSelf);

    int sipIsErr = 0;
    int sipValState;
    sipVal = reinterpret_cast<QList< ::QWebPluginFactory::MimeType> *>(sipForceConvertToType(sipPy, sipType_QList_0100QWebPluginFactory_MimeType, SIP_NULLPTR, SIP_NOT_NONE, &sipValState, &sipIsErr));

    if (sipIsErr)
        return -1;

    sipCpp->mimeTypes = *sipVal;

    sipReleaseType(sipVal, sipType_QList_0100QWebPluginFactory_MimeType, sipValState);

    return 0;
}


extern "C" {static PyObject *varget_QWebPluginFactory_Plugin_name(void *, PyObject *, PyObject *);}
static PyObject *varget_QWebPluginFactory_Plugin_name(void *sipSelf, PyObject *, PyObject *)
{
     ::QString*sipVal;
     ::QWebPluginFactory::Plugin *sipCpp = reinterpret_cast< ::QWebPluginFactory::Plugin *>(sipSelf);

    sipVal = &sipCpp->name;

    return sipConvertFromType(sipVal, sipType_QString, SIP_NULLPTR);
}


extern "C" {static int varset_QWebPluginFactory_Plugin_name(void *, PyObject *, PyObject *);}
static int varset_QWebPluginFactory_Plugin_name(void *sipSelf, PyObject *sipPy, PyObject *)
{
     ::QString*sipVal;
     ::QWebPluginFactory::Plugin *sipCpp = reinterpret_cast< ::QWebPluginFactory::Plugin *>(sipSelf);

    int sipIsErr = 0;
    int sipValState;
    sipVal = reinterpret_cast< ::QString *>(sipForceConvertToType(sipPy, sipType_QString, SIP_NULLPTR, SIP_NOT_NONE, &sipValState, &sipIsErr));

    if (sipIsErr)
        return -1;

    sipCpp->name = *sipVal;

    sipReleaseType(sipVal, sipType_QString, sipValState);

    return 0;
}

sipVariableDef variables_QWebPluginFactory_Plugin[] = {
    {InstanceVariable, sipName_description, (PyMethodDef *)varget_QWebPluginFactory_Plugin_description, (PyMethodDef *)varset_QWebPluginFactory_Plugin_description, SIP_NULLPTR, SIP_NULLPTR},
    {InstanceVariable, sipName_mimeTypes, (PyMethodDef *)varget_QWebPluginFactory_Plugin_mimeTypes, (PyMethodDef *)varset_QWebPluginFactory_Plugin_mimeTypes, SIP_NULLPTR, SIP_NULLPTR},
    {InstanceVariable, sipName_name, (PyMethodDef *)varget_QWebPluginFactory_Plugin_name, (PyMethodDef *)varset_QWebPluginFactory_Plugin_name, SIP_NULLPTR, SIP_NULLPTR},
};

PyDoc_STRVAR(doc_QWebPluginFactory_Plugin, "\1QWebPluginFactory.Plugin()\n"
"QWebPluginFactory.Plugin(QWebPluginFactory.Plugin)");


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


sipClassTypeDef sipTypeDef_QtWebKit_QWebPluginFactory_Plugin = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QWebPluginFactory__Plugin,
        SIP_NULLPTR,
        &plugin_QWebPluginFactory_Plugin
    },
    {
        sipNameNr_Plugin,
        {14, 255, 0},
        0, SIP_NULLPTR,
        0, SIP_NULLPTR,
        3, variables_QWebPluginFactory_Plugin,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QWebPluginFactory_Plugin,
    -1,
    sipNameNr_sip_simplewrapper,
    SIP_NULLPTR,
    SIP_NULLPTR,
    init_type_QWebPluginFactory_Plugin,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QWebPluginFactory_Plugin,
    assign_QWebPluginFactory_Plugin,
    array_QWebPluginFactory_Plugin,
    copy_QWebPluginFactory_Plugin,
    release_QWebPluginFactory_Plugin,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_QWebPluginFactory_Plugin,
    sizeof ( ::QWebPluginFactory::Plugin),
};
