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

#line 388 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtXml/qdom.sip"
#include <qdom.h>
#line 29 "/build/pyqt5/src/PyQt5-5.15.7/build/QtXml/sipQtXmlQDomNotation.cpp"

#line 54 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtXml/qdom.sip"
#include <qdom.h>
#line 33 "/build/pyqt5/src/PyQt5-5.15.7/build/QtXml/sipQtXmlQDomNotation.cpp"
#line 27 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 36 "/build/pyqt5/src/PyQt5-5.15.7/build/QtXml/sipQtXmlQDomNotation.cpp"
#line 312 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtXml/qdom.sip"
#include <qdom.h>
#line 39 "/build/pyqt5/src/PyQt5-5.15.7/build/QtXml/sipQtXmlQDomNotation.cpp"
#line 30 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 42 "/build/pyqt5/src/PyQt5-5.15.7/build/QtXml/sipQtXmlQDomNotation.cpp"
#line 364 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtXml/qdom.sip"
#include <qdom.h>
#line 45 "/build/pyqt5/src/PyQt5-5.15.7/build/QtXml/sipQtXmlQDomNotation.cpp"
#line 275 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtXml/qdom.sip"
#include <qdom.h>
#line 48 "/build/pyqt5/src/PyQt5-5.15.7/build/QtXml/sipQtXmlQDomNotation.cpp"
#line 429 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtXml/qdom.sip"
#include <qdom.h>
#line 51 "/build/pyqt5/src/PyQt5-5.15.7/build/QtXml/sipQtXmlQDomNotation.cpp"
#line 402 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtXml/qdom.sip"
#include <qdom.h>
#line 54 "/build/pyqt5/src/PyQt5-5.15.7/build/QtXml/sipQtXmlQDomNotation.cpp"
#line 351 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtXml/qdom.sip"
#include <qdom.h>
#line 57 "/build/pyqt5/src/PyQt5-5.15.7/build/QtXml/sipQtXmlQDomNotation.cpp"
#line 417 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtXml/qdom.sip"
#include <qdom.h>
#line 60 "/build/pyqt5/src/PyQt5-5.15.7/build/QtXml/sipQtXmlQDomNotation.cpp"
#line 174 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtXml/qdom.sip"
#include <qdom.h>
#line 63 "/build/pyqt5/src/PyQt5-5.15.7/build/QtXml/sipQtXmlQDomNotation.cpp"
#line 192 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtXml/qdom.sip"
#include <qdom.h>
#line 66 "/build/pyqt5/src/PyQt5-5.15.7/build/QtXml/sipQtXmlQDomNotation.cpp"
#line 263 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtXml/qdom.sip"
#include <qdom.h>
#line 69 "/build/pyqt5/src/PyQt5-5.15.7/build/QtXml/sipQtXmlQDomNotation.cpp"
#line 376 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtXml/qdom.sip"
#include <qdom.h>
#line 72 "/build/pyqt5/src/PyQt5-5.15.7/build/QtXml/sipQtXmlQDomNotation.cpp"
#line 295 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtXml/qdom.sip"
#include <qdom.h>
#line 75 "/build/pyqt5/src/PyQt5-5.15.7/build/QtXml/sipQtXmlQDomNotation.cpp"
#line 237 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtXml/qdom.sip"
#include <qdom.h>
#line 78 "/build/pyqt5/src/PyQt5-5.15.7/build/QtXml/sipQtXmlQDomNotation.cpp"
#line 154 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtXml/qdom.sip"
#include <qdom.h>
#line 81 "/build/pyqt5/src/PyQt5-5.15.7/build/QtXml/sipQtXmlQDomNotation.cpp"


PyDoc_STRVAR(doc_QDomNotation_publicId, "publicId(self) -> str");

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

    {
        const  ::QDomNotation *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QDomNotation, sipName_publicId, doc_QDomNotation_publicId);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QDomNotation_systemId, "systemId(self) -> str");

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

    {
        const  ::QDomNotation *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QDomNotation, sipName_systemId, doc_QDomNotation_systemId);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QDomNotation_nodeType, "nodeType(self) -> QDomNode.NodeType");

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

    {
        const  ::QDomNotation *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDomNotation, &sipCpp))
        {
             ::QDomNode::NodeType sipRes;

            sipRes = sipCpp->nodeType();

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

    sipNoMethod(sipParseErr, sipName_QDomNotation, sipName_nodeType, doc_QDomNotation_nodeType);

    return SIP_NULLPTR;
}


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

    if (targetType == sipType_QDomNotation)
        return sipCppV;

    if (targetType == sipType_QDomNode)
        return static_cast< ::QDomNode *>(sipCpp);

    return SIP_NULLPTR;
}


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


extern "C" {static void *array_QDomNotation(Py_ssize_t);}
static void *array_QDomNotation(Py_ssize_t sipNrElem)
{
    return new  ::QDomNotation[sipNrElem];
}


extern "C" {static void array_delete_QDomNotation(void *);}
static void array_delete_QDomNotation(void *sipCpp)
{
    delete[] reinterpret_cast< ::QDomNotation *>(sipCpp);
}


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const  ::QDomNotation* a0;

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

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QDomNotation[] = {{13, 255, 1}};


static PyMethodDef methods_QDomNotation[] = {
    {sipName_nodeType, meth_QDomNotation_nodeType, METH_VARARGS, doc_QDomNotation_nodeType},
    {sipName_publicId, meth_QDomNotation_publicId, METH_VARARGS, doc_QDomNotation_publicId},
    {sipName_systemId, meth_QDomNotation_systemId, METH_VARARGS, doc_QDomNotation_systemId}
};

PyDoc_STRVAR(doc_QDomNotation, "\1QDomNotation()\n"
"QDomNotation(QDomNotation)");


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


sipClassTypeDef sipTypeDef_QtXml_QDomNotation = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QDomNotation,
        SIP_NULLPTR,
        &plugin_QDomNotation
    },
    {
        sipNameNr_QDomNotation,
        {0, 0, 1},
        3, methods_QDomNotation,
        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},
    },
    doc_QDomNotation,
    -1,
    -1,
    supers_QDomNotation,
    SIP_NULLPTR,
    init_type_QDomNotation,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QDomNotation,
    assign_QDomNotation,
    array_QDomNotation,
    copy_QDomNotation,
    release_QDomNotation,
    cast_QDomNotation,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_QDomNotation,
    sizeof ( ::QDomNotation),
};
