/*
 * Module code.
 *
 * Generated by SIP 4.16.7
 */

#include "sipAPIkhtml.h"

#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom_doc.sip"
#include <dom_doc.h>
#line 12 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"

#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/html_document.sip"
#include <html_document.h>
#line 16 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 19 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"
#line 88 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/css_stylesheet.sip"
#include <css_stylesheet.h>
#line 22 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"
#line 55 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom_doc.sip"
#include <dom_doc.h>
#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"
#line 149 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom_doc.sip"
#include <dom_doc.h>
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"


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

    {
        const DOM::DOMString* a0;
        const DOM::DOMString* a1;
        DOM::DOMImplementation *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_DOM_DOMImplementation, &sipCpp, sipType_DOM_DOMString, &a0, sipType_DOM_DOMString, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasFeature(*a0,*a1);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DOMImplementation, sipName_hasFeature, NULL);

    return NULL;
}


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

    {
        const DOM::DOMString* a0;
        const DOM::DOMString* a1;
        const DOM::DOMString* a2;
        DOM::DOMImplementation *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9J9", &sipSelf, sipType_DOM_DOMImplementation, &sipCpp, sipType_DOM_DOMString, &a0, sipType_DOM_DOMString, &a1, sipType_DOM_DOMString, &a2))
        {
            DOM::DocumentType*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DocumentType(sipCpp->createDocumentType(*a0,*a1,*a2));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DocumentType,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DOMImplementation, sipName_createDocumentType, NULL);

    return NULL;
}


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

    {
        const DOM::DOMString* a0;
        const DOM::DOMString* a1;
        const DOM::DocumentType* a2;
        DOM::DOMImplementation *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9J9", &sipSelf, sipType_DOM_DOMImplementation, &sipCpp, sipType_DOM_DOMString, &a0, sipType_DOM_DOMString, &a1, sipType_DOM_DocumentType, &a2))
        {
            DOM::Document*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Document(sipCpp->createDocument(*a0,*a1,*a2));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Document,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DOMImplementation, sipName_createDocument, NULL);

    return NULL;
}


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

    {
        const DOM::DOMString* a0;
        const DOM::DOMImplementation *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_DOMImplementation, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            DOM::DOMImplementation*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMImplementation(sipCpp->getInterface(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMImplementation,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DOMImplementation, sipName_getInterface, NULL);

    return NULL;
}


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

    {
        const DOM::DOMString* a0;
        const DOM::DOMString* a1;
        DOM::DOMImplementation *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_DOM_DOMImplementation, &sipCpp, sipType_DOM_DOMString, &a0, sipType_DOM_DOMString, &a1))
        {
            DOM::CSSStyleSheet*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::CSSStyleSheet(sipCpp->createCSSStyleSheet(*a0,*a1));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_CSSStyleSheet,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DOMImplementation, sipName_createCSSStyleSheet, NULL);

    return NULL;
}


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

    {
        const DOM::DOMString* a0;
        DOM::DOMImplementation *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_DOMImplementation, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            DOM::HTMLDocument*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::HTMLDocument(sipCpp->createHTMLDocument(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_HTMLDocument,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DOMImplementation, sipName_createHTMLDocument, NULL);

    return NULL;
}


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

    {
        const DOM::DOMImplementation *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isNull();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DOMImplementation, sipName_isNull, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_DOM_DOMImplementation(void *, const sipTypeDef *);}
static void *cast_DOM_DOMImplementation(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_DOM_DOMImplementation)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_DOM_DOMImplementation(void *, int);}
static void release_DOM_DOMImplementation(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<DOM::DOMImplementation *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_DOMImplementation(void *, SIP_SSIZE_T, const void *);}
static void assign_DOM_DOMImplementation(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<DOM::DOMImplementation *>(sipDst)[sipDstIdx] = *reinterpret_cast<const DOM::DOMImplementation *>(sipSrc);
}


extern "C" {static void *array_DOM_DOMImplementation(SIP_SSIZE_T);}
static void *array_DOM_DOMImplementation(SIP_SSIZE_T sipNrElem)
{
    return new DOM::DOMImplementation[sipNrElem];
}


extern "C" {static void *copy_DOM_DOMImplementation(const void *, SIP_SSIZE_T);}
static void *copy_DOM_DOMImplementation(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new DOM::DOMImplementation(reinterpret_cast<const DOM::DOMImplementation *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_DOM_DOMImplementation(sipSimpleWrapper *);}
static void dealloc_DOM_DOMImplementation(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_DOMImplementation(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_DOM_DOMImplementation(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_DOM_DOMImplementation(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    DOM::DOMImplementation *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::DOMImplementation();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::DOMImplementation* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_DOMImplementation, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::DOMImplementation(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_DOM_DOMImplementation[] = {
    {SIP_MLNAME_CAST(sipName_createCSSStyleSheet), meth_DOM_DOMImplementation_createCSSStyleSheet, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createDocument), meth_DOM_DOMImplementation_createDocument, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createDocumentType), meth_DOM_DOMImplementation_createDocumentType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createHTMLDocument), meth_DOM_DOMImplementation_createHTMLDocument, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getInterface), meth_DOM_DOMImplementation_getInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasFeature), meth_DOM_DOMImplementation_hasFeature, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isNull), meth_DOM_DOMImplementation_isNull, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_DOMImplementation = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__DOMImplementation,
        {0}
    },
    {
        sipNameNr_DOMImplementation,
        {0, 255, 0},
        7, methods_DOM_DOMImplementation,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_DOM_DOMImplementation,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_DOMImplementation,
    assign_DOM_DOMImplementation,
    array_DOM_DOMImplementation,
    copy_DOM_DOMImplementation,
    release_DOM_DOMImplementation,
    cast_DOM_DOMImplementation,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom2_views.sip"
#include <dom2_views.h>
#line 385 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"

#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/css_value.sip"
#include <css_value.h>
#line 389 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"
#line 233 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom_element.sip"
#include <dom_element.h>
#line 392 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 395 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"
#line 55 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom_doc.sip"
#include <dom_doc.h>
#line 398 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"


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

    {
        const DOM::AbstractView *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_AbstractView, &sipCpp))
        {
            DOM::Document*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Document(sipCpp->document());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Document,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_AbstractView, sipName_document, NULL);

    return NULL;
}


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

    {
        const DOM::Element* a0;
        const DOM::DOMString* a1;
        DOM::AbstractView *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_DOM_AbstractView, &sipCpp, sipType_DOM_Element, &a0, sipType_DOM_DOMString, &a1))
        {
            DOM::CSSStyleDeclaration*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::CSSStyleDeclaration(sipCpp->getComputedStyle(*a0,*a1));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_CSSStyleDeclaration,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_AbstractView, sipName_getComputedStyle, NULL);

    return NULL;
}


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

    {
        const DOM::AbstractView *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isNull();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_AbstractView, sipName_isNull, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_DOM_AbstractView(void *, const sipTypeDef *);}
static void *cast_DOM_AbstractView(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_DOM_AbstractView)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_DOM_AbstractView(void *, int);}
static void release_DOM_AbstractView(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<DOM::AbstractView *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_AbstractView(void *, SIP_SSIZE_T, const void *);}
static void assign_DOM_AbstractView(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<DOM::AbstractView *>(sipDst)[sipDstIdx] = *reinterpret_cast<const DOM::AbstractView *>(sipSrc);
}


extern "C" {static void *array_DOM_AbstractView(SIP_SSIZE_T);}
static void *array_DOM_AbstractView(SIP_SSIZE_T sipNrElem)
{
    return new DOM::AbstractView[sipNrElem];
}


extern "C" {static void *copy_DOM_AbstractView(const void *, SIP_SSIZE_T);}
static void *copy_DOM_AbstractView(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new DOM::AbstractView(reinterpret_cast<const DOM::AbstractView *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_DOM_AbstractView(sipSimpleWrapper *);}
static void dealloc_DOM_AbstractView(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_AbstractView(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_DOM_AbstractView(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_DOM_AbstractView(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    DOM::AbstractView *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::AbstractView();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::AbstractView* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_AbstractView, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::AbstractView(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_DOM_AbstractView[] = {
    {SIP_MLNAME_CAST(sipName_document), meth_DOM_AbstractView_document, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getComputedStyle), meth_DOM_AbstractView_getComputedStyle, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isNull), meth_DOM_AbstractView_isNull, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_AbstractView = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__AbstractView,
        {0}
    },
    {
        sipNameNr_AbstractView,
        {0, 255, 0},
        3, methods_DOM_AbstractView,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_DOM_AbstractView,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_AbstractView,
    assign_DOM_AbstractView,
    array_DOM_AbstractView,
    copy_DOM_AbstractView,
    release_DOM_AbstractView,
    cast_DOM_AbstractView,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 121 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom2_traversal.sip"
#include <dom2_traversal.h>
#line 633 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"

#line 61 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 637 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"
#line 56 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom2_traversal.sip"
#include <dom2_traversal.h>
#line 640 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"


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

    {
        DOM::TreeWalker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_TreeWalker, &sipCpp))
        {
            DOM::Node*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->root());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TreeWalker, sipName_root, NULL);

    return NULL;
}


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

    {
        DOM::TreeWalker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_TreeWalker, &sipCpp))
        {
            unsigned long sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->whatToShow();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TreeWalker, sipName_whatToShow, NULL);

    return NULL;
}


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

    {
        DOM::TreeWalker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_TreeWalker, &sipCpp))
        {
            DOM::NodeFilter*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::NodeFilter(sipCpp->filter());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_NodeFilter,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TreeWalker, sipName_filter, NULL);

    return NULL;
}


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

    {
        DOM::TreeWalker *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->expandEntityReferences();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TreeWalker, sipName_expandEntityReferences, NULL);

    return NULL;
}


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

    {
        DOM::TreeWalker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_TreeWalker, &sipCpp))
        {
            DOM::Node*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->currentNode());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TreeWalker, sipName_currentNode, NULL);

    return NULL;
}


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

    {
        const DOM::Node* a0;
        DOM::TreeWalker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_TreeWalker, &sipCpp, sipType_DOM_Node, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCurrentNode(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TreeWalker, sipName_setCurrentNode, NULL);

    return NULL;
}


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

    {
        DOM::TreeWalker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_TreeWalker, &sipCpp))
        {
            DOM::Node*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->parentNode());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TreeWalker, sipName_parentNode, NULL);

    return NULL;
}


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

    {
        DOM::TreeWalker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_TreeWalker, &sipCpp))
        {
            DOM::Node*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->firstChild());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TreeWalker, sipName_firstChild, NULL);

    return NULL;
}


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

    {
        DOM::TreeWalker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_TreeWalker, &sipCpp))
        {
            DOM::Node*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->lastChild());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TreeWalker, sipName_lastChild, NULL);

    return NULL;
}


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

    {
        DOM::TreeWalker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_TreeWalker, &sipCpp))
        {
            DOM::Node*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->previousSibling());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TreeWalker, sipName_previousSibling, NULL);

    return NULL;
}


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

    {
        DOM::TreeWalker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_TreeWalker, &sipCpp))
        {
            DOM::Node*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->nextSibling());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TreeWalker, sipName_nextSibling, NULL);

    return NULL;
}


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

    {
        DOM::TreeWalker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_TreeWalker, &sipCpp))
        {
            DOM::Node*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->previousNode());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TreeWalker, sipName_previousNode, NULL);

    return NULL;
}


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

    {
        DOM::TreeWalker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_TreeWalker, &sipCpp))
        {
            DOM::Node*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->nextNode());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TreeWalker, sipName_nextNode, NULL);

    return NULL;
}


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

    {
        const DOM::TreeWalker *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isNull();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TreeWalker, sipName_isNull, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_DOM_TreeWalker(void *, const sipTypeDef *);}
static void *cast_DOM_TreeWalker(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_DOM_TreeWalker)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_DOM_TreeWalker(void *, int);}
static void release_DOM_TreeWalker(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<DOM::TreeWalker *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_TreeWalker(void *, SIP_SSIZE_T, const void *);}
static void assign_DOM_TreeWalker(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<DOM::TreeWalker *>(sipDst)[sipDstIdx] = *reinterpret_cast<const DOM::TreeWalker *>(sipSrc);
}


extern "C" {static void *array_DOM_TreeWalker(SIP_SSIZE_T);}
static void *array_DOM_TreeWalker(SIP_SSIZE_T sipNrElem)
{
    return new DOM::TreeWalker[sipNrElem];
}


extern "C" {static void *copy_DOM_TreeWalker(const void *, SIP_SSIZE_T);}
static void *copy_DOM_TreeWalker(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new DOM::TreeWalker(reinterpret_cast<const DOM::TreeWalker *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_DOM_TreeWalker(sipSimpleWrapper *);}
static void dealloc_DOM_TreeWalker(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_TreeWalker(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_DOM_TreeWalker(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_DOM_TreeWalker(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    DOM::TreeWalker *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::TreeWalker();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::TreeWalker* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_TreeWalker, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::TreeWalker(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_DOM_TreeWalker[] = {
    {SIP_MLNAME_CAST(sipName_currentNode), meth_DOM_TreeWalker_currentNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_expandEntityReferences), meth_DOM_TreeWalker_expandEntityReferences, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_filter), meth_DOM_TreeWalker_filter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_firstChild), meth_DOM_TreeWalker_firstChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isNull), meth_DOM_TreeWalker_isNull, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_lastChild), meth_DOM_TreeWalker_lastChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_nextNode), meth_DOM_TreeWalker_nextNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_nextSibling), meth_DOM_TreeWalker_nextSibling, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentNode), meth_DOM_TreeWalker_parentNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_previousNode), meth_DOM_TreeWalker_previousNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_previousSibling), meth_DOM_TreeWalker_previousSibling, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_root), meth_DOM_TreeWalker_root, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCurrentNode), meth_DOM_TreeWalker_setCurrentNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_whatToShow), meth_DOM_TreeWalker_whatToShow, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_TreeWalker = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__TreeWalker,
        {0}
    },
    {
        sipNameNr_TreeWalker,
        {0, 255, 0},
        14, methods_DOM_TreeWalker,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_DOM_TreeWalker,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_TreeWalker,
    assign_DOM_TreeWalker,
    array_DOM_TreeWalker,
    copy_DOM_TreeWalker,
    release_DOM_TreeWalker,
    cast_DOM_TreeWalker,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 104 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom2_traversal.sip"
#include <dom2_traversal.h>
#line 1181 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"

#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 1185 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"
#line 61 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 1188 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"


class sipDOM_CustomNodeFilter : public DOM::CustomNodeFilter
{
public:
    sipDOM_CustomNodeFilter();
    sipDOM_CustomNodeFilter(const DOM::CustomNodeFilter&);
    virtual ~sipDOM_CustomNodeFilter();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool deleteMe();
    DOM::DOMString customNodeFilterType();
    bool isNull();
    short acceptNode(const DOM::Node&);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipDOM_CustomNodeFilter(const sipDOM_CustomNodeFilter &);
    sipDOM_CustomNodeFilter &operator = (const sipDOM_CustomNodeFilter &);

    char sipPyMethods[4];
};

sipDOM_CustomNodeFilter::sipDOM_CustomNodeFilter(): DOM::CustomNodeFilter(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipDOM_CustomNodeFilter::sipDOM_CustomNodeFilter(const DOM::CustomNodeFilter& a0): DOM::CustomNodeFilter(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipDOM_CustomNodeFilter::~sipDOM_CustomNodeFilter()
{
    sipCommonDtor(sipPySelf);
}

bool sipDOM_CustomNodeFilter::deleteMe()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_deleteMe);

    if (!sipMeth)
        return DOM::CustomNodeFilter::deleteMe();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_khtml_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

DOM::DOMString sipDOM_CustomNodeFilter::customNodeFilterType()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_customNodeFilterType);

    if (!sipMeth)
        return DOM::CustomNodeFilter::customNodeFilterType();

    extern DOM::DOMString sipVH_khtml_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_khtml_5(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipDOM_CustomNodeFilter::isNull()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_isNull);

    if (!sipMeth)
        return DOM::CustomNodeFilter::isNull();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_khtml_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

short sipDOM_CustomNodeFilter::acceptNode(const DOM::Node& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_acceptNode);

    if (!sipMeth)
        return DOM::CustomNodeFilter::acceptNode(a0);

    extern short sipVH_khtml_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const DOM::Node&);

    return sipVH_khtml_6(sipGILState, 0, sipPySelf, sipMeth, a0);
}


extern "C" {static PyObject *meth_DOM_CustomNodeFilter_acceptNode(PyObject *, PyObject *);}
static PyObject *meth_DOM_CustomNodeFilter_acceptNode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const DOM::Node* a0;
        DOM::CustomNodeFilter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_CustomNodeFilter, &sipCpp, sipType_DOM_Node, &a0))
        {
            short sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->DOM::CustomNodeFilter::acceptNode(*a0) : sipCpp->acceptNode(*a0));
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CustomNodeFilter, sipName_acceptNode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_CustomNodeFilter_isNull(PyObject *, PyObject *);}
static PyObject *meth_DOM_CustomNodeFilter_isNull(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        DOM::CustomNodeFilter *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->DOM::CustomNodeFilter::isNull() : sipCpp->isNull());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CustomNodeFilter, sipName_isNull, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_CustomNodeFilter_customNodeFilterType(PyObject *, PyObject *);}
static PyObject *meth_DOM_CustomNodeFilter_customNodeFilterType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        DOM::CustomNodeFilter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_CustomNodeFilter, &sipCpp))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString((sipSelfWasArg ? sipCpp->DOM::CustomNodeFilter::customNodeFilterType() : sipCpp->customNodeFilterType()));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CustomNodeFilter, sipName_customNodeFilterType, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_DOM_CustomNodeFilter(void *, const sipTypeDef *);}
static void *cast_DOM_CustomNodeFilter(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_DOM_CustomNodeFilter)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_DOM_DomShared)->ctd_cast((DOM::DomShared *)(DOM::CustomNodeFilter *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_DOM_CustomNodeFilter(void *, int);}
static void release_DOM_CustomNodeFilter(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipDOM_CustomNodeFilter *>(sipCppV);
    else
        delete reinterpret_cast<DOM::CustomNodeFilter *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_CustomNodeFilter(void *, SIP_SSIZE_T, const void *);}
static void assign_DOM_CustomNodeFilter(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<DOM::CustomNodeFilter *>(sipDst)[sipDstIdx] = *reinterpret_cast<const DOM::CustomNodeFilter *>(sipSrc);
}


extern "C" {static void *array_DOM_CustomNodeFilter(SIP_SSIZE_T);}
static void *array_DOM_CustomNodeFilter(SIP_SSIZE_T sipNrElem)
{
    return new DOM::CustomNodeFilter[sipNrElem];
}


extern "C" {static void *copy_DOM_CustomNodeFilter(const void *, SIP_SSIZE_T);}
static void *copy_DOM_CustomNodeFilter(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new DOM::CustomNodeFilter(reinterpret_cast<const DOM::CustomNodeFilter *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_DOM_CustomNodeFilter(sipSimpleWrapper *);}
static void dealloc_DOM_CustomNodeFilter(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipDOM_CustomNodeFilter *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_CustomNodeFilter(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_DOM_CustomNodeFilter(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_DOM_CustomNodeFilter(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipDOM_CustomNodeFilter *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipDOM_CustomNodeFilter();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const DOM::CustomNodeFilter* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_CustomNodeFilter, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipDOM_CustomNodeFilter(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_DOM_CustomNodeFilter[] = {
    {SIP_MLNAME_CAST(sipName_acceptNode), meth_DOM_CustomNodeFilter_acceptNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customNodeFilterType), meth_DOM_CustomNodeFilter_customNodeFilterType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isNull), meth_DOM_CustomNodeFilter_isNull, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_CustomNodeFilter = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_DOM__CustomNodeFilter,
        {0}
    },
    {
        sipNameNr_CustomNodeFilter,
        {0, 255, 0},
        3, methods_DOM_CustomNodeFilter,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_DOM_CustomNodeFilter,
    0,
    init_type_DOM_CustomNodeFilter,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_CustomNodeFilter,
    assign_DOM_CustomNodeFilter,
    array_DOM_CustomNodeFilter,
    copy_DOM_CustomNodeFilter,
    release_DOM_CustomNodeFilter,
    cast_DOM_CustomNodeFilter,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 56 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom2_traversal.sip"
#include <dom2_traversal.h>
#line 1547 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"

#line 104 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom2_traversal.sip"
#include <dom2_traversal.h>
#line 1551 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"
#line 61 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 1554 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"


class sipDOM_NodeFilter : public DOM::NodeFilter
{
public:
    sipDOM_NodeFilter();
    sipDOM_NodeFilter(const DOM::NodeFilter&);
    virtual ~sipDOM_NodeFilter();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool isNull() const;
    short acceptNode(const DOM::Node&);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipDOM_NodeFilter(const sipDOM_NodeFilter &);
    sipDOM_NodeFilter &operator = (const sipDOM_NodeFilter &);

    char sipPyMethods[2];
};

sipDOM_NodeFilter::sipDOM_NodeFilter(): DOM::NodeFilter(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipDOM_NodeFilter::sipDOM_NodeFilter(const DOM::NodeFilter& a0): DOM::NodeFilter(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipDOM_NodeFilter::~sipDOM_NodeFilter()
{
    sipCommonDtor(sipPySelf);
}

bool sipDOM_NodeFilter::isNull() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_isNull);

    if (!sipMeth)
        return DOM::NodeFilter::isNull();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_khtml_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

short sipDOM_NodeFilter::acceptNode(const DOM::Node& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_acceptNode);

    if (!sipMeth)
        return DOM::NodeFilter::acceptNode(a0);

    extern short sipVH_khtml_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const DOM::Node&);

    return sipVH_khtml_6(sipGILState, 0, sipPySelf, sipMeth, a0);
}


extern "C" {static PyObject *meth_DOM_NodeFilter_acceptNode(PyObject *, PyObject *);}
static PyObject *meth_DOM_NodeFilter_acceptNode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const DOM::Node* a0;
        DOM::NodeFilter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_NodeFilter, &sipCpp, sipType_DOM_Node, &a0))
        {
            short sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->DOM::NodeFilter::acceptNode(*a0) : sipCpp->acceptNode(*a0));
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NodeFilter, sipName_acceptNode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_NodeFilter_isNull(PyObject *, PyObject *);}
static PyObject *meth_DOM_NodeFilter_isNull(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const DOM::NodeFilter *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->DOM::NodeFilter::isNull() : sipCpp->isNull());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NodeFilter, sipName_isNull, NULL);

    return NULL;
}


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

    {
        DOM::CustomNodeFilter* a0;
        DOM::NodeFilter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_DOM_NodeFilter, &sipCpp, sipType_DOM_CustomNodeFilter, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCustomNodeFilter(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NodeFilter, sipName_setCustomNodeFilter, NULL);

    return NULL;
}


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

    {
        DOM::NodeFilter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_NodeFilter, &sipCpp))
        {
            DOM::CustomNodeFilter*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->customNodeFilter();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_DOM_CustomNodeFilter,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NodeFilter, sipName_customNodeFilter, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_NodeFilter_createCustom(PyObject *, PyObject *);}
static PyObject *meth_DOM_NodeFilter_createCustom(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        DOM::CustomNodeFilter* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8", sipType_DOM_CustomNodeFilter, &a0))
        {
            DOM::NodeFilter*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::NodeFilter(DOM::NodeFilter::createCustom(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_NodeFilter,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NodeFilter, sipName_createCustom, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_DOM_NodeFilter(void *, const sipTypeDef *);}
static void *cast_DOM_NodeFilter(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_DOM_NodeFilter)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_DOM_NodeFilter(void *, int);}
static void release_DOM_NodeFilter(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipDOM_NodeFilter *>(sipCppV);
    else
        delete reinterpret_cast<DOM::NodeFilter *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_NodeFilter(void *, SIP_SSIZE_T, const void *);}
static void assign_DOM_NodeFilter(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<DOM::NodeFilter *>(sipDst)[sipDstIdx] = *reinterpret_cast<const DOM::NodeFilter *>(sipSrc);
}


extern "C" {static void *array_DOM_NodeFilter(SIP_SSIZE_T);}
static void *array_DOM_NodeFilter(SIP_SSIZE_T sipNrElem)
{
    return new DOM::NodeFilter[sipNrElem];
}


extern "C" {static void *copy_DOM_NodeFilter(const void *, SIP_SSIZE_T);}
static void *copy_DOM_NodeFilter(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new DOM::NodeFilter(reinterpret_cast<const DOM::NodeFilter *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_DOM_NodeFilter(sipSimpleWrapper *);}
static void dealloc_DOM_NodeFilter(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipDOM_NodeFilter *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_NodeFilter(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_DOM_NodeFilter(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_DOM_NodeFilter(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipDOM_NodeFilter *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipDOM_NodeFilter();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const DOM::NodeFilter* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_NodeFilter, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipDOM_NodeFilter(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_DOM_NodeFilter[] = {
    {SIP_MLNAME_CAST(sipName_acceptNode), meth_DOM_NodeFilter_acceptNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createCustom), meth_DOM_NodeFilter_createCustom, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customNodeFilter), meth_DOM_NodeFilter_customNodeFilter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isNull), meth_DOM_NodeFilter_isNull, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCustomNodeFilter), meth_DOM_NodeFilter_setCustomNodeFilter, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_DOM_NodeFilter[] = {
    {sipName_FILTER_ACCEPT, static_cast<int>(DOM::NodeFilter::FILTER_ACCEPT), 114},
    {sipName_FILTER_REJECT, static_cast<int>(DOM::NodeFilter::FILTER_REJECT), 114},
    {sipName_FILTER_SKIP, static_cast<int>(DOM::NodeFilter::FILTER_SKIP), 114},
    {sipName_SHOW_ALL, static_cast<int>(DOM::NodeFilter::SHOW_ALL), 115},
    {sipName_SHOW_ATTRIBUTE, static_cast<int>(DOM::NodeFilter::SHOW_ATTRIBUTE), 115},
    {sipName_SHOW_CDATA_SECTION, static_cast<int>(DOM::NodeFilter::SHOW_CDATA_SECTION), 115},
    {sipName_SHOW_COMMENT, static_cast<int>(DOM::NodeFilter::SHOW_COMMENT), 115},
    {sipName_SHOW_DOCUMENT, static_cast<int>(DOM::NodeFilter::SHOW_DOCUMENT), 115},
    {sipName_SHOW_DOCUMENT_FRAGMENT, static_cast<int>(DOM::NodeFilter::SHOW_DOCUMENT_FRAGMENT), 115},
    {sipName_SHOW_DOCUMENT_TYPE, static_cast<int>(DOM::NodeFilter::SHOW_DOCUMENT_TYPE), 115},
    {sipName_SHOW_ELEMENT, static_cast<int>(DOM::NodeFilter::SHOW_ELEMENT), 115},
    {sipName_SHOW_ENTITY, static_cast<int>(DOM::NodeFilter::SHOW_ENTITY), 115},
    {sipName_SHOW_ENTITY_REFERENCE, static_cast<int>(DOM::NodeFilter::SHOW_ENTITY_REFERENCE), 115},
    {sipName_SHOW_NOTATION, static_cast<int>(DOM::NodeFilter::SHOW_NOTATION), 115},
    {sipName_SHOW_PROCESSING_INSTRUCTION, static_cast<int>(DOM::NodeFilter::SHOW_PROCESSING_INSTRUCTION), 115},
    {sipName_SHOW_TEXT, static_cast<int>(DOM::NodeFilter::SHOW_TEXT), 115},
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_NodeFilter = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__NodeFilter,
        {0}
    },
    {
        sipNameNr_NodeFilter,
        {0, 255, 0},
        5, methods_DOM_NodeFilter,
        16, enummembers_DOM_NodeFilter,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_DOM_NodeFilter,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_NodeFilter,
    assign_DOM_NodeFilter,
    array_DOM_NodeFilter,
    copy_DOM_NodeFilter,
    release_DOM_NodeFilter,
    cast_DOM_NodeFilter,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom2_traversal.sip"
#include <dom2_traversal.h>
#line 1946 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"

#line 61 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 1950 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"
#line 56 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom2_traversal.sip"
#include <dom2_traversal.h>
#line 1953 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"


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

    {
        DOM::NodeIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_NodeIterator, &sipCpp))
        {
            DOM::Node*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->root());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NodeIterator, sipName_root, NULL);

    return NULL;
}


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

    {
        DOM::NodeIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_NodeIterator, &sipCpp))
        {
            unsigned long sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->whatToShow();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NodeIterator, sipName_whatToShow, NULL);

    return NULL;
}


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

    {
        DOM::NodeIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_NodeIterator, &sipCpp))
        {
            DOM::NodeFilter*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::NodeFilter(sipCpp->filter());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_NodeFilter,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NodeIterator, sipName_filter, NULL);

    return NULL;
}


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

    {
        DOM::NodeIterator *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->expandEntityReferences();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NodeIterator, sipName_expandEntityReferences, NULL);

    return NULL;
}


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

    {
        DOM::NodeIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_NodeIterator, &sipCpp))
        {
            DOM::Node*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->nextNode());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NodeIterator, sipName_nextNode, NULL);

    return NULL;
}


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

    {
        DOM::NodeIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_NodeIterator, &sipCpp))
        {
            DOM::Node*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->previousNode());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NodeIterator, sipName_previousNode, NULL);

    return NULL;
}


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

    {
        DOM::NodeIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_NodeIterator, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->detach();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NodeIterator, sipName_detach, NULL);

    return NULL;
}


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

    {
        const DOM::NodeIterator *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isNull();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NodeIterator, sipName_isNull, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_DOM_NodeIterator(void *, const sipTypeDef *);}
static void *cast_DOM_NodeIterator(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_DOM_NodeIterator)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_DOM_NodeIterator(void *, int);}
static void release_DOM_NodeIterator(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<DOM::NodeIterator *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_NodeIterator(void *, SIP_SSIZE_T, const void *);}
static void assign_DOM_NodeIterator(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<DOM::NodeIterator *>(sipDst)[sipDstIdx] = *reinterpret_cast<const DOM::NodeIterator *>(sipSrc);
}


extern "C" {static void *array_DOM_NodeIterator(SIP_SSIZE_T);}
static void *array_DOM_NodeIterator(SIP_SSIZE_T sipNrElem)
{
    return new DOM::NodeIterator[sipNrElem];
}


extern "C" {static void *copy_DOM_NodeIterator(const void *, SIP_SSIZE_T);}
static void *copy_DOM_NodeIterator(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new DOM::NodeIterator(reinterpret_cast<const DOM::NodeIterator *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_DOM_NodeIterator(sipSimpleWrapper *);}
static void dealloc_DOM_NodeIterator(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_NodeIterator(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_DOM_NodeIterator(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_DOM_NodeIterator(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    DOM::NodeIterator *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::NodeIterator();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::NodeIterator* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_NodeIterator, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::NodeIterator(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_DOM_NodeIterator[] = {
    {SIP_MLNAME_CAST(sipName_detach), meth_DOM_NodeIterator_detach, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_expandEntityReferences), meth_DOM_NodeIterator_expandEntityReferences, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_filter), meth_DOM_NodeIterator_filter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isNull), meth_DOM_NodeIterator_isNull, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_nextNode), meth_DOM_NodeIterator_nextNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_previousNode), meth_DOM_NodeIterator_previousNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_root), meth_DOM_NodeIterator_root, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_whatToShow), meth_DOM_NodeIterator_whatToShow, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_NodeIterator = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__NodeIterator,
        {0}
    },
    {
        sipNameNr_NodeIterator,
        {0, 255, 0},
        8, methods_DOM_NodeIterator,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_DOM_NodeIterator,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_NodeIterator,
    assign_DOM_NodeIterator,
    array_DOM_NodeIterator,
    copy_DOM_NodeIterator,
    release_DOM_NodeIterator,
    cast_DOM_NodeIterator,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 56 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom2_range.sip"
#include <dom2_range.h>
#line 2325 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"

#line 55 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom_doc.sip"
#include <dom_doc.h>
#line 2329 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"
#line 61 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 2332 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"
#line 127 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom_doc.sip"
#include <dom_doc.h>
#line 2335 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 2338 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"


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

    {
        const DOM::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Range, &sipCpp))
        {
            DOM::Node*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->startContainer());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Range, sipName_startContainer, NULL);

    return NULL;
}


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

    {
        const DOM::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Range, &sipCpp))
        {
            long sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->startOffset();
            Py_END_ALLOW_THREADS

            return PyLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Range, sipName_startOffset, NULL);

    return NULL;
}


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

    {
        const DOM::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Range, &sipCpp))
        {
            DOM::Node*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->endContainer());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Range, sipName_endContainer, NULL);

    return NULL;
}


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

    {
        const DOM::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Range, &sipCpp))
        {
            long sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->endOffset();
            Py_END_ALLOW_THREADS

            return PyLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Range, sipName_endOffset, NULL);

    return NULL;
}


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

    {
        const DOM::Range *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->collapsed();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Range, sipName_collapsed, NULL);

    return NULL;
}


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

    {
        DOM::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Range, &sipCpp))
        {
            DOM::Node*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->commonAncestorContainer());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Range, sipName_commonAncestorContainer, NULL);

    return NULL;
}


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

    {
        const DOM::Node* a0;
        long a1;
        DOM::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9l", &sipSelf, sipType_DOM_Range, &sipCpp, sipType_DOM_Node, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setStart(*a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Range, sipName_setStart, NULL);

    return NULL;
}


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

    {
        const DOM::Node* a0;
        long a1;
        DOM::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9l", &sipSelf, sipType_DOM_Range, &sipCpp, sipType_DOM_Node, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setEnd(*a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Range, sipName_setEnd, NULL);

    return NULL;
}


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

    {
        const DOM::Node* a0;
        DOM::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Range, &sipCpp, sipType_DOM_Node, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setStartBefore(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Range, sipName_setStartBefore, NULL);

    return NULL;
}


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

    {
        const DOM::Node* a0;
        DOM::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Range, &sipCpp, sipType_DOM_Node, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setStartAfter(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Range, sipName_setStartAfter, NULL);

    return NULL;
}


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

    {
        const DOM::Node* a0;
        DOM::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Range, &sipCpp, sipType_DOM_Node, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setEndBefore(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Range, sipName_setEndBefore, NULL);

    return NULL;
}


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

    {
        const DOM::Node* a0;
        DOM::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Range, &sipCpp, sipType_DOM_Node, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setEndAfter(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Range, sipName_setEndAfter, NULL);

    return NULL;
}


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

    {
        bool a0;
        DOM::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_DOM_Range, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->collapse(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Range, sipName_collapse, NULL);

    return NULL;
}


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

    {
        const DOM::Node* a0;
        DOM::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Range, &sipCpp, sipType_DOM_Node, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->selectNode(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Range, sipName_selectNode, NULL);

    return NULL;
}


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

    {
        const DOM::Node* a0;
        DOM::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Range, &sipCpp, sipType_DOM_Node, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->selectNodeContents(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Range, sipName_selectNodeContents, NULL);

    return NULL;
}


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

    {
        DOM::Range::CompareHow a0;
        const DOM::Range* a1;
        DOM::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEJ9", &sipSelf, sipType_DOM_Range, &sipCpp, sipType_DOM_Range_CompareHow, &a0, sipType_DOM_Range, &a1))
        {
            short sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->compareBoundaryPoints(a0,*a1);
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Range, sipName_compareBoundaryPoints, NULL);

    return NULL;
}


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

    {
        DOM::Range *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->boundaryPointsValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Range, sipName_boundaryPointsValid, NULL);

    return NULL;
}


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

    {
        DOM::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Range, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->deleteContents();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Range, sipName_deleteContents, NULL);

    return NULL;
}


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

    {
        DOM::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Range, &sipCpp))
        {
            DOM::DocumentFragment*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DocumentFragment(sipCpp->extractContents());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DocumentFragment,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Range, sipName_extractContents, NULL);

    return NULL;
}


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

    {
        DOM::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Range, &sipCpp))
        {
            DOM::DocumentFragment*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DocumentFragment(sipCpp->cloneContents());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DocumentFragment,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Range, sipName_cloneContents, NULL);

    return NULL;
}


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

    {
        const DOM::Node* a0;
        DOM::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Range, &sipCpp, sipType_DOM_Node, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->insertNode(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Range, sipName_insertNode, NULL);

    return NULL;
}


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

    {
        const DOM::Node* a0;
        DOM::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Range, &sipCpp, sipType_DOM_Node, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->surroundContents(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Range, sipName_surroundContents, NULL);

    return NULL;
}


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

    {
        DOM::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Range, &sipCpp))
        {
            DOM::Range*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Range(sipCpp->cloneRange());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Range,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Range, sipName_cloneRange, NULL);

    return NULL;
}


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

    {
        DOM::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Range, &sipCpp))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->toString());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Range, sipName_toString, NULL);

    return NULL;
}


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

    {
        DOM::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Range, &sipCpp))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->toHTML());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Range, sipName_toHTML, NULL);

    return NULL;
}


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

    {
        const DOM::DOMString* a0;
        DOM::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Range, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            DOM::DocumentFragment*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DocumentFragment(sipCpp->createContextualFragment(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DocumentFragment,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Range, sipName_createContextualFragment, NULL);

    return NULL;
}


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

    {
        DOM::Range *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Range, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->detach();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Range, sipName_detach, NULL);

    return NULL;
}


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

    {
        const DOM::Range *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isDetached();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Range, sipName_isDetached, NULL);

    return NULL;
}


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

    {
        const DOM::Range *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isNull();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Range, sipName_isNull, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_DOM_Range(void *, const sipTypeDef *);}
static void *cast_DOM_Range(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_DOM_Range)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_DOM_Range(void *, int);}
static void release_DOM_Range(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<DOM::Range *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_Range(void *, SIP_SSIZE_T, const void *);}
static void assign_DOM_Range(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<DOM::Range *>(sipDst)[sipDstIdx] = *reinterpret_cast<const DOM::Range *>(sipSrc);
}


extern "C" {static void *array_DOM_Range(SIP_SSIZE_T);}
static void *array_DOM_Range(SIP_SSIZE_T sipNrElem)
{
    return new DOM::Range[sipNrElem];
}


extern "C" {static void *copy_DOM_Range(const void *, SIP_SSIZE_T);}
static void *copy_DOM_Range(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new DOM::Range(reinterpret_cast<const DOM::Range *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_DOM_Range(sipSimpleWrapper *);}
static void dealloc_DOM_Range(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_Range(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_DOM_Range(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_DOM_Range(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    DOM::Range *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Range();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::Document* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_Document, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Range(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::Range* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_Range, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Range(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::Node* a0;
        long a1;
        const DOM::Node* a2;
        long a3;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9lJ9l", sipType_DOM_Node, &a0, &a1, sipType_DOM_Node, &a2, &a3))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Range(*a0,a1,*a2,a3);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_DOM_Range[] = {
    {SIP_MLNAME_CAST(sipName_boundaryPointsValid), meth_DOM_Range_boundaryPointsValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_cloneContents), meth_DOM_Range_cloneContents, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_cloneRange), meth_DOM_Range_cloneRange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_collapse), meth_DOM_Range_collapse, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_collapsed), meth_DOM_Range_collapsed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_commonAncestorContainer), meth_DOM_Range_commonAncestorContainer, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_compareBoundaryPoints), meth_DOM_Range_compareBoundaryPoints, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createContextualFragment), meth_DOM_Range_createContextualFragment, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deleteContents), meth_DOM_Range_deleteContents, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_detach), meth_DOM_Range_detach, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_endContainer), meth_DOM_Range_endContainer, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_endOffset), meth_DOM_Range_endOffset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_extractContents), meth_DOM_Range_extractContents, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_insertNode), meth_DOM_Range_insertNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDetached), meth_DOM_Range_isDetached, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isNull), meth_DOM_Range_isNull, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectNode), meth_DOM_Range_selectNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectNodeContents), meth_DOM_Range_selectNodeContents, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setEnd), meth_DOM_Range_setEnd, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setEndAfter), meth_DOM_Range_setEndAfter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setEndBefore), meth_DOM_Range_setEndBefore, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setStart), meth_DOM_Range_setStart, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setStartAfter), meth_DOM_Range_setStartAfter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setStartBefore), meth_DOM_Range_setStartBefore, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_startContainer), meth_DOM_Range_startContainer, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_startOffset), meth_DOM_Range_startOffset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_surroundContents), meth_DOM_Range_surroundContents, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toHTML), meth_DOM_Range_toHTML, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toString), meth_DOM_Range_toString, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_DOM_Range[] = {
    {sipName_END_TO_END, static_cast<int>(DOM::Range::END_TO_END), 122},
    {sipName_END_TO_START, static_cast<int>(DOM::Range::END_TO_START), 122},
    {sipName_START_TO_END, static_cast<int>(DOM::Range::START_TO_END), 122},
    {sipName_START_TO_START, static_cast<int>(DOM::Range::START_TO_START), 122},
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_Range = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__Range,
        {0}
    },
    {
        sipNameNr_Range,
        {0, 255, 0},
        29, methods_DOM_Range,
        4, enummembers_DOM_Range,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_DOM_Range,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_Range,
    assign_DOM_Range,
    array_DOM_Range,
    copy_DOM_Range,
    release_DOM_Range,
    cast_DOM_Range,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom2_range.sip"
#include <dom2_range.h>
#line 3338 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"

#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 3342 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"


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

    {
        const DOM::RangeException *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_RangeException, &sipCpp))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->codeAsString());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "i", &a0))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(DOM::RangeException::codeAsString(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_RangeException, sipName_codeAsString, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_RangeException_isRangeExceptionCode(PyObject *, PyObject *);}
static PyObject *meth_DOM_RangeException_isRangeExceptionCode(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "i", &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = DOM::RangeException::isRangeExceptionCode(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_RangeException, sipName_isRangeExceptionCode, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_DOM_RangeException(void *, const sipTypeDef *);}
static void *cast_DOM_RangeException(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_DOM_RangeException)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_DOM_RangeException(void *, int);}
static void release_DOM_RangeException(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<DOM::RangeException *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_DOM_RangeException(sipSimpleWrapper *);}
static void dealloc_DOM_RangeException(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_RangeException(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_DOM_RangeException(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_DOM_RangeException(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    DOM::RangeException *sipCpp = 0;

    {
        unsigned short a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "t", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::RangeException(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::RangeException* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_RangeException, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::RangeException(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_DOM_RangeException[] = {
    {SIP_MLNAME_CAST(sipName_codeAsString), meth_DOM_RangeException_codeAsString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isRangeExceptionCode), meth_DOM_RangeException_isRangeExceptionCode, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_DOM_RangeException[] = {
    {sipName_BAD_BOUNDARYPOINTS_ERR, static_cast<int>(DOM::RangeException::BAD_BOUNDARYPOINTS_ERR), 124},
    {sipName_INVALID_NODE_TYPE_ERR, static_cast<int>(DOM::RangeException::INVALID_NODE_TYPE_ERR), 124},
    {sipName__EXCEPTION_MAX, static_cast<int>(DOM::RangeException::_EXCEPTION_MAX), 124},
    {sipName__EXCEPTION_OFFSET, static_cast<int>(DOM::RangeException::_EXCEPTION_OFFSET), 124},
};


extern "C" {static PyObject *varget_DOM_RangeException_code(void *, PyObject *, PyObject *);}
static PyObject *varget_DOM_RangeException_code(void *sipSelf, PyObject *, PyObject *)
{
    unsigned short sipVal;
    DOM::RangeException *sipCpp = reinterpret_cast<DOM::RangeException *>(sipSelf);

    sipVal = sipCpp->code;

#if PY_MAJOR_VERSION >= 3
    return PyLong_FromUnsignedLong(sipVal);
#else
    return PyInt_FromLong(sipVal);
#endif
}


extern "C" {static int varset_DOM_RangeException_code(void *, PyObject *, PyObject *);}
static int varset_DOM_RangeException_code(void *sipSelf, PyObject *sipPy, PyObject *)
{
    unsigned short sipVal;
    DOM::RangeException *sipCpp = reinterpret_cast<DOM::RangeException *>(sipSelf);

    sipVal = (unsigned short)sipLong_AsUnsignedLong(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->code = sipVal;

    return 0;
}

sipVariableDef variables_DOM_RangeException[] = {
    {InstanceVariable, sipName_code, (PyMethodDef *)varget_DOM_RangeException_code, (PyMethodDef *)varset_DOM_RangeException_code, NULL, NULL},
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_RangeException = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__RangeException,
        {0}
    },
    {
        sipNameNr_RangeException,
        {0, 255, 0},
        2, methods_DOM_RangeException,
        4, enummembers_DOM_RangeException,
        1, variables_DOM_RangeException,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_DOM_RangeException,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_RangeException,
    0,
    0,
    0,
    release_DOM_RangeException,
    cast_DOM_RangeException,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 228 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 3587 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"

#line 44 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 3591 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 3594 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"
#line 61 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 3597 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"


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

    {
        const DOM::MutationEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_MutationEvent, &sipCpp))
        {
            DOM::Node*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->relatedNode());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_MutationEvent, sipName_relatedNode, NULL);

    return NULL;
}


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

    {
        const DOM::MutationEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_MutationEvent, &sipCpp))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->prevValue());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_MutationEvent, sipName_prevValue, NULL);

    return NULL;
}


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

    {
        const DOM::MutationEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_MutationEvent, &sipCpp))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->newValue());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_MutationEvent, sipName_newValue, NULL);

    return NULL;
}


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

    {
        const DOM::MutationEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_MutationEvent, &sipCpp))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->attrName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_MutationEvent, sipName_attrName, NULL);

    return NULL;
}


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

    {
        const DOM::MutationEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_MutationEvent, &sipCpp))
        {
            unsigned short sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->attrChange();
            Py_END_ALLOW_THREADS

#if PY_MAJOR_VERSION >= 3
            return PyLong_FromUnsignedLong(sipRes);
#else
            return PyInt_FromLong(sipRes);
#endif
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_MutationEvent, sipName_attrChange, NULL);

    return NULL;
}


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

    {
        const DOM::DOMString* a0;
        bool a1;
        bool a2;
        const DOM::Node* a3;
        const DOM::DOMString* a4;
        const DOM::DOMString* a5;
        const DOM::DOMString* a6;
        unsigned short a7;
        DOM::MutationEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9bbJ9J9J9J9t", &sipSelf, sipType_DOM_MutationEvent, &sipCpp, sipType_DOM_DOMString, &a0, &a1, &a2, sipType_DOM_Node, &a3, sipType_DOM_DOMString, &a4, sipType_DOM_DOMString, &a5, sipType_DOM_DOMString, &a6, &a7))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->initMutationEvent(*a0,a1,a2,*a3,*a4,*a5,*a6,a7);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_MutationEvent, sipName_initMutationEvent, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_DOM_MutationEvent(void *, const sipTypeDef *);}
static void *cast_DOM_MutationEvent(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_DOM_MutationEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_DOM_Event)->ctd_cast((DOM::Event *)(DOM::MutationEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_DOM_MutationEvent(void *, int);}
static void release_DOM_MutationEvent(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<DOM::MutationEvent *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_MutationEvent(void *, SIP_SSIZE_T, const void *);}
static void assign_DOM_MutationEvent(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<DOM::MutationEvent *>(sipDst)[sipDstIdx] = *reinterpret_cast<const DOM::MutationEvent *>(sipSrc);
}


extern "C" {static void *array_DOM_MutationEvent(SIP_SSIZE_T);}
static void *array_DOM_MutationEvent(SIP_SSIZE_T sipNrElem)
{
    return new DOM::MutationEvent[sipNrElem];
}


extern "C" {static void *copy_DOM_MutationEvent(const void *, SIP_SSIZE_T);}
static void *copy_DOM_MutationEvent(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new DOM::MutationEvent(reinterpret_cast<const DOM::MutationEvent *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_DOM_MutationEvent(sipSimpleWrapper *);}
static void dealloc_DOM_MutationEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_MutationEvent(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_DOM_MutationEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_DOM_MutationEvent(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    DOM::MutationEvent *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::MutationEvent();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::MutationEvent* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_MutationEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::MutationEvent(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::Event* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_Event, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::MutationEvent(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_DOM_MutationEvent[] = {
    {SIP_MLNAME_CAST(sipName_attrChange), meth_DOM_MutationEvent_attrChange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_attrName), meth_DOM_MutationEvent_attrName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_initMutationEvent), meth_DOM_MutationEvent_initMutationEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_newValue), meth_DOM_MutationEvent_newValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_prevValue), meth_DOM_MutationEvent_prevValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_relatedNode), meth_DOM_MutationEvent_relatedNode, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_DOM_MutationEvent[] = {
    {sipName_ADDITION, static_cast<int>(DOM::MutationEvent::ADDITION), 108},
    {sipName_MODIFICATION, static_cast<int>(DOM::MutationEvent::MODIFICATION), 108},
    {sipName_REMOVAL, static_cast<int>(DOM::MutationEvent::REMOVAL), 108},
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_MutationEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_DOM__MutationEvent,
        {0}
    },
    {
        sipNameNr_MutationEvent,
        {0, 255, 0},
        6, methods_DOM_MutationEvent,
        3, enummembers_DOM_MutationEvent,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_DOM_MutationEvent,
    0,
    init_type_DOM_MutationEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_MutationEvent,
    assign_DOM_MutationEvent,
    array_DOM_MutationEvent,
    copy_DOM_MutationEvent,
    release_DOM_MutationEvent,
    cast_DOM_MutationEvent,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 195 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 3953 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"

#line 44 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 3957 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 3960 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom2_views.sip"
#include <dom2_views.h>
#line 3963 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"
#line 61 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 3966 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"


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

    {
        const DOM::KeyboardEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_KeyboardEvent, &sipCpp))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->keyIdentifier());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KeyboardEvent, sipName_keyIdentifier, NULL);

    return NULL;
}


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

    {
        const DOM::KeyboardEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_KeyboardEvent, &sipCpp))
        {
            unsigned long sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->keyLocation();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KeyboardEvent, sipName_keyLocation, NULL);

    return NULL;
}


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

    {
        const DOM::KeyboardEvent *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->ctrlKey();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KeyboardEvent, sipName_ctrlKey, NULL);

    return NULL;
}


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

    {
        const DOM::KeyboardEvent *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->shiftKey();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KeyboardEvent, sipName_shiftKey, NULL);

    return NULL;
}


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

    {
        const DOM::KeyboardEvent *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->altKey();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KeyboardEvent, sipName_altKey, NULL);

    return NULL;
}


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

    {
        const DOM::KeyboardEvent *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->metaKey();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KeyboardEvent, sipName_metaKey, NULL);

    return NULL;
}


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

    {
        DOM::DOMString* a0;
        const DOM::KeyboardEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_KeyboardEvent, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->getModifierState(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KeyboardEvent, sipName_getModifierState, NULL);

    return NULL;
}


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

    {
        DOM::DOMString* a0;
        bool a1;
        bool a2;
        DOM::AbstractView* a3;
        DOM::DOMString* a4;
        unsigned long a5;
        DOM::DOMString* a6;
        DOM::KeyboardEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9bbJ9J9mJ9", &sipSelf, sipType_DOM_KeyboardEvent, &sipCpp, sipType_DOM_DOMString, &a0, &a1, &a2, sipType_DOM_AbstractView, &a3, sipType_DOM_DOMString, &a4, &a5, sipType_DOM_DOMString, &a6))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->initKeyboardEvent(*a0,a1,a2,*a3,*a4,a5,*a6);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KeyboardEvent, sipName_initKeyboardEvent, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_DOM_KeyboardEvent(void *, const sipTypeDef *);}
static void *cast_DOM_KeyboardEvent(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_DOM_KeyboardEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_DOM_UIEvent)->ctd_cast((DOM::UIEvent *)(DOM::KeyboardEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_DOM_KeyboardEvent(void *, int);}
static void release_DOM_KeyboardEvent(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<DOM::KeyboardEvent *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_KeyboardEvent(void *, SIP_SSIZE_T, const void *);}
static void assign_DOM_KeyboardEvent(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<DOM::KeyboardEvent *>(sipDst)[sipDstIdx] = *reinterpret_cast<const DOM::KeyboardEvent *>(sipSrc);
}


extern "C" {static void *array_DOM_KeyboardEvent(SIP_SSIZE_T);}
static void *array_DOM_KeyboardEvent(SIP_SSIZE_T sipNrElem)
{
    return new DOM::KeyboardEvent[sipNrElem];
}


extern "C" {static void *copy_DOM_KeyboardEvent(const void *, SIP_SSIZE_T);}
static void *copy_DOM_KeyboardEvent(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new DOM::KeyboardEvent(reinterpret_cast<const DOM::KeyboardEvent *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_DOM_KeyboardEvent(sipSimpleWrapper *);}
static void dealloc_DOM_KeyboardEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_KeyboardEvent(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_DOM_KeyboardEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_DOM_KeyboardEvent(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    DOM::KeyboardEvent *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::KeyboardEvent();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::KeyboardEvent* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_KeyboardEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::KeyboardEvent(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::Event* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_Event, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::KeyboardEvent(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_DOM_KeyboardEvent[] = {
    {SIP_MLNAME_CAST(sipName_altKey), meth_DOM_KeyboardEvent_altKey, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ctrlKey), meth_DOM_KeyboardEvent_ctrlKey, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getModifierState), meth_DOM_KeyboardEvent_getModifierState, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_initKeyboardEvent), meth_DOM_KeyboardEvent_initKeyboardEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_keyIdentifier), meth_DOM_KeyboardEvent_keyIdentifier, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_keyLocation), meth_DOM_KeyboardEvent_keyLocation, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_metaKey), meth_DOM_KeyboardEvent_metaKey, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_shiftKey), meth_DOM_KeyboardEvent_shiftKey, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_DOM_KeyboardEvent[] = {
    {sipName_DOM_KEY_LOCATION_LEFT, static_cast<int>(DOM::KeyboardEvent::DOM_KEY_LOCATION_LEFT), 103},
    {sipName_DOM_KEY_LOCATION_NUMPAD, static_cast<int>(DOM::KeyboardEvent::DOM_KEY_LOCATION_NUMPAD), 103},
    {sipName_DOM_KEY_LOCATION_RIGHT, static_cast<int>(DOM::KeyboardEvent::DOM_KEY_LOCATION_RIGHT), 103},
    {sipName_DOM_KEY_LOCATION_STANDARD, static_cast<int>(DOM::KeyboardEvent::DOM_KEY_LOCATION_STANDARD), 103},
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_KeyboardEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__KeyboardEvent,
        {0}
    },
    {
        sipNameNr_KeyboardEvent,
        {0, 255, 0},
        8, methods_DOM_KeyboardEvent,
        4, enummembers_DOM_KeyboardEvent,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_DOM_KeyboardEvent,
    0,
    init_type_DOM_KeyboardEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_KeyboardEvent,
    assign_DOM_KeyboardEvent,
    array_DOM_KeyboardEvent,
    copy_DOM_KeyboardEvent,
    release_DOM_KeyboardEvent,
    cast_DOM_KeyboardEvent,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 177 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 4375 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"

#line 44 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 4379 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 4382 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom2_views.sip"
#include <dom2_views.h>
#line 4385 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"
#line 61 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 4388 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"


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

    {
        const DOM::DOMString* a0;
        bool a1;
        bool a2;
        const DOM::AbstractView* a3;
        const DOM::DOMString* a4;
        DOM::TextEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9bbJ9J9", &sipSelf, sipType_DOM_TextEvent, &sipCpp, sipType_DOM_DOMString, &a0, &a1, &a2, sipType_DOM_AbstractView, &a3, sipType_DOM_DOMString, &a4))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->initTextEvent(*a0,a1,a2,*a3,*a4);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TextEvent, sipName_initTextEvent, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_DOM_TextEvent(void *, const sipTypeDef *);}
static void *cast_DOM_TextEvent(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_DOM_TextEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_DOM_UIEvent)->ctd_cast((DOM::UIEvent *)(DOM::TextEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_DOM_TextEvent(void *, int);}
static void release_DOM_TextEvent(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<DOM::TextEvent *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_TextEvent(void *, SIP_SSIZE_T, const void *);}
static void assign_DOM_TextEvent(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<DOM::TextEvent *>(sipDst)[sipDstIdx] = *reinterpret_cast<const DOM::TextEvent *>(sipSrc);
}


extern "C" {static void *array_DOM_TextEvent(SIP_SSIZE_T);}
static void *array_DOM_TextEvent(SIP_SSIZE_T sipNrElem)
{
    return new DOM::TextEvent[sipNrElem];
}


extern "C" {static void *copy_DOM_TextEvent(const void *, SIP_SSIZE_T);}
static void *copy_DOM_TextEvent(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new DOM::TextEvent(reinterpret_cast<const DOM::TextEvent *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_DOM_TextEvent(sipSimpleWrapper *);}
static void dealloc_DOM_TextEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_TextEvent(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_DOM_TextEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_DOM_TextEvent(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    DOM::TextEvent *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::TextEvent();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::TextEvent* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_TextEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::TextEvent(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::Event* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_Event, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::TextEvent(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_DOM_TextEvent[] = {
    {SIP_MLNAME_CAST(sipName_initTextEvent), meth_DOM_TextEvent_initTextEvent, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_TextEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__TextEvent,
        {0}
    },
    {
        sipNameNr_TextEvent,
        {0, 255, 0},
        1, methods_DOM_TextEvent,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_DOM_TextEvent,
    0,
    init_type_DOM_TextEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_TextEvent,
    assign_DOM_TextEvent,
    array_DOM_TextEvent,
    copy_DOM_TextEvent,
    release_DOM_TextEvent,
    cast_DOM_TextEvent,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 146 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 4591 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"

#line 44 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 4595 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 4598 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom2_views.sip"
#include <dom2_views.h>
#line 4601 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"
#line 61 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 4604 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"


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

    {
        const DOM::MouseEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_MouseEvent, &sipCpp))
        {
            long sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->screenX();
            Py_END_ALLOW_THREADS

            return PyLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_MouseEvent, sipName_screenX, NULL);

    return NULL;
}


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

    {
        const DOM::MouseEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_MouseEvent, &sipCpp))
        {
            long sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->screenY();
            Py_END_ALLOW_THREADS

            return PyLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_MouseEvent, sipName_screenY, NULL);

    return NULL;
}


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

    {
        const DOM::MouseEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_MouseEvent, &sipCpp))
        {
            long sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->clientX();
            Py_END_ALLOW_THREADS

            return PyLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_MouseEvent, sipName_clientX, NULL);

    return NULL;
}


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

    {
        const DOM::MouseEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_MouseEvent, &sipCpp))
        {
            long sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->clientY();
            Py_END_ALLOW_THREADS

            return PyLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_MouseEvent, sipName_clientY, NULL);

    return NULL;
}


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

    {
        const DOM::MouseEvent *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->ctrlKey();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_MouseEvent, sipName_ctrlKey, NULL);

    return NULL;
}


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

    {
        const DOM::MouseEvent *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->shiftKey();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_MouseEvent, sipName_shiftKey, NULL);

    return NULL;
}


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

    {
        const DOM::MouseEvent *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->altKey();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_MouseEvent, sipName_altKey, NULL);

    return NULL;
}


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

    {
        const DOM::MouseEvent *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->metaKey();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_MouseEvent, sipName_metaKey, NULL);

    return NULL;
}


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

    {
        const DOM::MouseEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_MouseEvent, &sipCpp))
        {
            unsigned short sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->button();
            Py_END_ALLOW_THREADS

#if PY_MAJOR_VERSION >= 3
            return PyLong_FromUnsignedLong(sipRes);
#else
            return PyInt_FromLong(sipRes);
#endif
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_MouseEvent, sipName_button, NULL);

    return NULL;
}


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

    {
        const DOM::MouseEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_MouseEvent, &sipCpp))
        {
            DOM::Node*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->relatedTarget());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_MouseEvent, sipName_relatedTarget, NULL);

    return NULL;
}


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

    {
        const DOM::DOMString* a0;
        bool a1;
        bool a2;
        const DOM::AbstractView* a3;
        long a4;
        long a5;
        long a6;
        long a7;
        long a8;
        bool a9;
        bool a10;
        bool a11;
        bool a12;
        unsigned short a13;
        const DOM::Node* a14;
        DOM::MouseEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9bbJ9lllllbbbbtJ9", &sipSelf, sipType_DOM_MouseEvent, &sipCpp, sipType_DOM_DOMString, &a0, &a1, &a2, sipType_DOM_AbstractView, &a3, &a4, &a5, &a6, &a7, &a8, &a9, &a10, &a11, &a12, &a13, sipType_DOM_Node, &a14))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->initMouseEvent(*a0,a1,a2,*a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,*a14);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_MouseEvent, sipName_initMouseEvent, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_DOM_MouseEvent(void *, const sipTypeDef *);}
static void *cast_DOM_MouseEvent(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_DOM_MouseEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_DOM_UIEvent)->ctd_cast((DOM::UIEvent *)(DOM::MouseEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_DOM_MouseEvent(void *, int);}
static void release_DOM_MouseEvent(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<DOM::MouseEvent *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_MouseEvent(void *, SIP_SSIZE_T, const void *);}
static void assign_DOM_MouseEvent(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<DOM::MouseEvent *>(sipDst)[sipDstIdx] = *reinterpret_cast<const DOM::MouseEvent *>(sipSrc);
}


extern "C" {static void *array_DOM_MouseEvent(SIP_SSIZE_T);}
static void *array_DOM_MouseEvent(SIP_SSIZE_T sipNrElem)
{
    return new DOM::MouseEvent[sipNrElem];
}


extern "C" {static void *copy_DOM_MouseEvent(const void *, SIP_SSIZE_T);}
static void *copy_DOM_MouseEvent(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new DOM::MouseEvent(reinterpret_cast<const DOM::MouseEvent *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_DOM_MouseEvent(sipSimpleWrapper *);}
static void dealloc_DOM_MouseEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_MouseEvent(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_DOM_MouseEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_DOM_MouseEvent(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    DOM::MouseEvent *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::MouseEvent();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::MouseEvent* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_MouseEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::MouseEvent(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::Event* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_Event, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::MouseEvent(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_DOM_MouseEvent[] = {
    {SIP_MLNAME_CAST(sipName_altKey), meth_DOM_MouseEvent_altKey, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_button), meth_DOM_MouseEvent_button, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clientX), meth_DOM_MouseEvent_clientX, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clientY), meth_DOM_MouseEvent_clientY, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ctrlKey), meth_DOM_MouseEvent_ctrlKey, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_initMouseEvent), meth_DOM_MouseEvent_initMouseEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_metaKey), meth_DOM_MouseEvent_metaKey, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_relatedTarget), meth_DOM_MouseEvent_relatedTarget, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_screenX), meth_DOM_MouseEvent_screenX, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_screenY), meth_DOM_MouseEvent_screenY, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_shiftKey), meth_DOM_MouseEvent_shiftKey, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_MouseEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__MouseEvent,
        {0}
    },
    {
        sipNameNr_MouseEvent,
        {0, 255, 0},
        11, methods_DOM_MouseEvent,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_DOM_MouseEvent,
    0,
    init_type_DOM_MouseEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_MouseEvent,
    assign_DOM_MouseEvent,
    array_DOM_MouseEvent,
    copy_DOM_MouseEvent,
    release_DOM_MouseEvent,
    cast_DOM_MouseEvent,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 116 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 5101 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"

#line 44 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 5105 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 5108 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom2_views.sip"
#include <dom2_views.h>
#line 5111 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"
#line 61 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 5114 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"


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

    {
        const DOM::UIEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_UIEvent, &sipCpp))
        {
            DOM::AbstractView*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::AbstractView(sipCpp->view());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_AbstractView,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_UIEvent, sipName_view, NULL);

    return NULL;
}


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

    {
        const DOM::UIEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_UIEvent, &sipCpp))
        {
            long sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->detail();
            Py_END_ALLOW_THREADS

            return PyLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_UIEvent, sipName_detail, NULL);

    return NULL;
}


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

    {
        const DOM::UIEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_UIEvent, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->keyCode();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_UIEvent, sipName_keyCode, NULL);

    return NULL;
}


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

    {
        const DOM::UIEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_UIEvent, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->charCode();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_UIEvent, sipName_charCode, NULL);

    return NULL;
}


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

    {
        const DOM::UIEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_UIEvent, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->pageX();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_UIEvent, sipName_pageX, NULL);

    return NULL;
}


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

    {
        const DOM::UIEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_UIEvent, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->pageY();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_UIEvent, sipName_pageY, NULL);

    return NULL;
}


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

    {
        const DOM::UIEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_UIEvent, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->layerX();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_UIEvent, sipName_layerX, NULL);

    return NULL;
}


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

    {
        const DOM::UIEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_UIEvent, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->layerY();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_UIEvent, sipName_layerY, NULL);

    return NULL;
}


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

    {
        const DOM::UIEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_UIEvent, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->which();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_UIEvent, sipName_which, NULL);

    return NULL;
}


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

    {
        const DOM::DOMString* a0;
        bool a1;
        bool a2;
        const DOM::AbstractView* a3;
        long a4;
        DOM::UIEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9bbJ9l", &sipSelf, sipType_DOM_UIEvent, &sipCpp, sipType_DOM_DOMString, &a0, &a1, &a2, sipType_DOM_AbstractView, &a3, &a4))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->initUIEvent(*a0,a1,a2,*a3,a4);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_UIEvent, sipName_initUIEvent, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_DOM_UIEvent(void *, const sipTypeDef *);}
static void *cast_DOM_UIEvent(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_DOM_UIEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_DOM_Event)->ctd_cast((DOM::Event *)(DOM::UIEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_DOM_UIEvent(void *, int);}
static void release_DOM_UIEvent(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<DOM::UIEvent *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_UIEvent(void *, SIP_SSIZE_T, const void *);}
static void assign_DOM_UIEvent(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<DOM::UIEvent *>(sipDst)[sipDstIdx] = *reinterpret_cast<const DOM::UIEvent *>(sipSrc);
}


extern "C" {static void *array_DOM_UIEvent(SIP_SSIZE_T);}
static void *array_DOM_UIEvent(SIP_SSIZE_T sipNrElem)
{
    return new DOM::UIEvent[sipNrElem];
}


extern "C" {static void *copy_DOM_UIEvent(const void *, SIP_SSIZE_T);}
static void *copy_DOM_UIEvent(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new DOM::UIEvent(reinterpret_cast<const DOM::UIEvent *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_DOM_UIEvent(sipSimpleWrapper *);}
static void dealloc_DOM_UIEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_UIEvent(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_DOM_UIEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_DOM_UIEvent(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    DOM::UIEvent *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::UIEvent();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::UIEvent* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_UIEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::UIEvent(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::Event* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_Event, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::UIEvent(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_DOM_UIEvent[] = {
    {SIP_MLNAME_CAST(sipName_charCode), meth_DOM_UIEvent_charCode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_detail), meth_DOM_UIEvent_detail, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_initUIEvent), meth_DOM_UIEvent_initUIEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_keyCode), meth_DOM_UIEvent_keyCode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_layerX), meth_DOM_UIEvent_layerX, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_layerY), meth_DOM_UIEvent_layerY, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_pageX), meth_DOM_UIEvent_pageX, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_pageY), meth_DOM_UIEvent_pageY, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_view), meth_DOM_UIEvent_view, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_which), meth_DOM_UIEvent_which, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_UIEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__UIEvent,
        {0}
    },
    {
        sipNameNr_UIEvent,
        {0, 255, 0},
        10, methods_DOM_UIEvent,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_DOM_UIEvent,
    0,
    init_type_DOM_UIEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_UIEvent,
    assign_DOM_UIEvent,
    array_DOM_UIEvent,
    copy_DOM_UIEvent,
    release_DOM_UIEvent,
    cast_DOM_UIEvent,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 89 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 5569 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"

#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 5573 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"


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

    {
        const DOM::EventException *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_EventException, &sipCpp))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->codeAsString());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "i", &a0))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(DOM::EventException::codeAsString(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_EventException, sipName_codeAsString, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_EventException_isEventExceptionCode(PyObject *, PyObject *);}
static PyObject *meth_DOM_EventException_isEventExceptionCode(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "i", &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = DOM::EventException::isEventExceptionCode(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_EventException, sipName_isEventExceptionCode, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_DOM_EventException(void *, const sipTypeDef *);}
static void *cast_DOM_EventException(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_DOM_EventException)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_DOM_EventException(void *, int);}
static void release_DOM_EventException(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<DOM::EventException *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_DOM_EventException(sipSimpleWrapper *);}
static void dealloc_DOM_EventException(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_EventException(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_DOM_EventException(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_DOM_EventException(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    DOM::EventException *sipCpp = 0;

    {
        unsigned short a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "t", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::EventException(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::EventException* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_EventException, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::EventException(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_DOM_EventException[] = {
    {SIP_MLNAME_CAST(sipName_codeAsString), meth_DOM_EventException_codeAsString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isEventExceptionCode), meth_DOM_EventException_isEventExceptionCode, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_DOM_EventException[] = {
    {sipName_UNSPECIFIED_EVENT_TYPE_ERR, static_cast<int>(DOM::EventException::UNSPECIFIED_EVENT_TYPE_ERR), 43},
    {sipName__EXCEPTION_MAX, static_cast<int>(DOM::EventException::_EXCEPTION_MAX), 43},
    {sipName__EXCEPTION_OFFSET, static_cast<int>(DOM::EventException::_EXCEPTION_OFFSET), 43},
};


extern "C" {static PyObject *varget_DOM_EventException_code(void *, PyObject *, PyObject *);}
static PyObject *varget_DOM_EventException_code(void *sipSelf, PyObject *, PyObject *)
{
    unsigned short sipVal;
    DOM::EventException *sipCpp = reinterpret_cast<DOM::EventException *>(sipSelf);

    sipVal = sipCpp->code;

#if PY_MAJOR_VERSION >= 3
    return PyLong_FromUnsignedLong(sipVal);
#else
    return PyInt_FromLong(sipVal);
#endif
}


extern "C" {static int varset_DOM_EventException_code(void *, PyObject *, PyObject *);}
static int varset_DOM_EventException_code(void *sipSelf, PyObject *sipPy, PyObject *)
{
    unsigned short sipVal;
    DOM::EventException *sipCpp = reinterpret_cast<DOM::EventException *>(sipSelf);

    sipVal = (unsigned short)sipLong_AsUnsignedLong(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->code = sipVal;

    return 0;
}

sipVariableDef variables_DOM_EventException[] = {
    {InstanceVariable, sipName_code, (PyMethodDef *)varget_DOM_EventException_code, (PyMethodDef *)varset_DOM_EventException_code, NULL, NULL},
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_EventException = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__EventException,
        {0}
    },
    {
        sipNameNr_EventException,
        {0, 255, 0},
        2, methods_DOM_EventException,
        3, enummembers_DOM_EventException,
        1, variables_DOM_EventException,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_DOM_EventException,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_EventException,
    0,
    0,
    0,
    release_DOM_EventException,
    cast_DOM_EventException,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 44 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 5817 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"

#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 5821 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"
#line 61 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 5824 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"


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

    {
        const DOM::Event *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Event, &sipCpp))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->type());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Event, sipName_type, NULL);

    return NULL;
}


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

    {
        const DOM::Event *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Event, &sipCpp))
        {
            DOM::Node*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->target());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Event, sipName_target, NULL);

    return NULL;
}


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

    {
        const DOM::Event *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Event, &sipCpp))
        {
            DOM::Node*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->currentTarget());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Event, sipName_currentTarget, NULL);

    return NULL;
}


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

    {
        const DOM::Event *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Event, &sipCpp))
        {
            unsigned short sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->eventPhase();
            Py_END_ALLOW_THREADS

#if PY_MAJOR_VERSION >= 3
            return PyLong_FromUnsignedLong(sipRes);
#else
            return PyInt_FromLong(sipRes);
#endif
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Event, sipName_eventPhase, NULL);

    return NULL;
}


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

    {
        const DOM::Event *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->bubbles();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Event, sipName_bubbles, NULL);

    return NULL;
}


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

    {
        const DOM::Event *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->cancelable();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Event, sipName_cancelable, NULL);

    return NULL;
}


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

    {
        const DOM::Event *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Event, &sipCpp))
        {
            DOM::DOMTimeStamp sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->timeStamp();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Event, sipName_timeStamp, NULL);

    return NULL;
}


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

    {
        DOM::Event *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Event, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->stopPropagation();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Event, sipName_stopPropagation, NULL);

    return NULL;
}


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

    {
        DOM::Event *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Event, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->preventDefault();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Event, sipName_preventDefault, NULL);

    return NULL;
}


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

    {
        const DOM::DOMString* a0;
        bool a1;
        bool a2;
        DOM::Event *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9bb", &sipSelf, sipType_DOM_Event, &sipCpp, sipType_DOM_DOMString, &a0, &a1, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->initEvent(*a0,a1,a2);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Event, sipName_initEvent, NULL);

    return NULL;
}


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

    {
        const DOM::Event *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isNull();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Event, sipName_isNull, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_DOM_Event(void *, const sipTypeDef *);}
static void *cast_DOM_Event(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_DOM_Event)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_DOM_Event(void *, int);}
static void release_DOM_Event(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<DOM::Event *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_Event(void *, SIP_SSIZE_T, const void *);}
static void assign_DOM_Event(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<DOM::Event *>(sipDst)[sipDstIdx] = *reinterpret_cast<const DOM::Event *>(sipSrc);
}


extern "C" {static void *array_DOM_Event(SIP_SSIZE_T);}
static void *array_DOM_Event(SIP_SSIZE_T sipNrElem)
{
    return new DOM::Event[sipNrElem];
}


extern "C" {static void *copy_DOM_Event(const void *, SIP_SSIZE_T);}
static void *copy_DOM_Event(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new DOM::Event(reinterpret_cast<const DOM::Event *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_DOM_Event(sipSimpleWrapper *);}
static void dealloc_DOM_Event(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_Event(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_DOM_Event(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_DOM_Event(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    DOM::Event *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Event();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::Event* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_Event, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Event(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_DOM_Event[] = {
    {SIP_MLNAME_CAST(sipName_bubbles), meth_DOM_Event_bubbles, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_cancelable), meth_DOM_Event_cancelable, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentTarget), meth_DOM_Event_currentTarget, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_eventPhase), meth_DOM_Event_eventPhase, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_initEvent), meth_DOM_Event_initEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isNull), meth_DOM_Event_isNull, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_preventDefault), meth_DOM_Event_preventDefault, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_stopPropagation), meth_DOM_Event_stopPropagation, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_target), meth_DOM_Event_target, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timeStamp), meth_DOM_Event_timeStamp, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_DOM_Event_type, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_DOM_Event[] = {
    {sipName_AT_TARGET, static_cast<int>(DOM::Event::AT_TARGET), 41},
    {sipName_BUBBLING_PHASE, static_cast<int>(DOM::Event::BUBBLING_PHASE), 41},
    {sipName_CAPTURING_PHASE, static_cast<int>(DOM::Event::CAPTURING_PHASE), 41},
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_Event = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__Event,
        {0}
    },
    {
        sipNameNr_Event,
        {0, 255, 0},
        11, methods_DOM_Event,
        3, enummembers_DOM_Event,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_DOM_Event,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_Event,
    assign_DOM_Event,
    array_DOM_Event,
    copy_DOM_Event,
    release_DOM_Event,
    cast_DOM_Event,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 6291 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"

#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 6295 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"
#line 44 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/src/pykde4-4.14.3/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 6298 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-2.x86_64/build/sip/khtml/sipkhtmlpart5.cpp"


class sipDOM_EventListener : public DOM::EventListener
{
public:
    sipDOM_EventListener();
    sipDOM_EventListener(const DOM::EventListener&);
    virtual ~sipDOM_EventListener();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool deleteMe();
    DOM::DOMString eventListenerType();
    void handleEvent(DOM::Event&);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipDOM_EventListener(const sipDOM_EventListener &);
    sipDOM_EventListener &operator = (const sipDOM_EventListener &);

    char sipPyMethods[3];
};

sipDOM_EventListener::sipDOM_EventListener(): DOM::EventListener(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipDOM_EventListener::sipDOM_EventListener(const DOM::EventListener& a0): DOM::EventListener(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipDOM_EventListener::~sipDOM_EventListener()
{
    sipCommonDtor(sipPySelf);
}

bool sipDOM_EventListener::deleteMe()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_deleteMe);

    if (!sipMeth)
        return DOM::EventListener::deleteMe();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_khtml_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

DOM::DOMString sipDOM_EventListener::eventListenerType()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_eventListenerType);

    if (!sipMeth)
        return DOM::EventListener::eventListenerType();

    extern DOM::DOMString sipVH_khtml_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_khtml_5(sipGILState, 0, sipPySelf, sipMeth);
}

void sipDOM_EventListener::handleEvent(DOM::Event& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_handleEvent);

    if (!sipMeth)
    {
        DOM::EventListener::handleEvent(a0);
        return;
    }

    extern void sipVH_khtml_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, DOM::Event&);

    sipVH_khtml_7(sipGILState, 0, sipPySelf, sipMeth, a0);
}


extern "C" {static PyObject *meth_DOM_EventListener_handleEvent(PyObject *, PyObject *);}
static PyObject *meth_DOM_EventListener_handleEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        DOM::Event* a0;
        DOM::EventListener *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_EventListener, &sipCpp, sipType_DOM_Event, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->DOM::EventListener::handleEvent(*a0) : sipCpp->handleEvent(*a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_EventListener, sipName_handleEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_EventListener_eventListenerType(PyObject *, PyObject *);}
static PyObject *meth_DOM_EventListener_eventListenerType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        DOM::EventListener *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_EventListener, &sipCpp))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString((sipSelfWasArg ? sipCpp->DOM::EventListener::eventListenerType() : sipCpp->eventListenerType()));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_EventListener, sipName_eventListenerType, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_DOM_EventListener(void *, const sipTypeDef *);}
static void *cast_DOM_EventListener(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_DOM_EventListener)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_DOM_DomShared)->ctd_cast((DOM::DomShared *)(DOM::EventListener *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_DOM_EventListener(void *, int);}
static void release_DOM_EventListener(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipDOM_EventListener *>(sipCppV);
    else
        delete reinterpret_cast<DOM::EventListener *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_EventListener(void *, SIP_SSIZE_T, const void *);}
static void assign_DOM_EventListener(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<DOM::EventListener *>(sipDst)[sipDstIdx] = *reinterpret_cast<const DOM::EventListener *>(sipSrc);
}


extern "C" {static void *array_DOM_EventListener(SIP_SSIZE_T);}
static void *array_DOM_EventListener(SIP_SSIZE_T sipNrElem)
{
    return new DOM::EventListener[sipNrElem];
}


extern "C" {static void *copy_DOM_EventListener(const void *, SIP_SSIZE_T);}
static void *copy_DOM_EventListener(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new DOM::EventListener(reinterpret_cast<const DOM::EventListener *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_DOM_EventListener(sipSimpleWrapper *);}
static void dealloc_DOM_EventListener(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipDOM_EventListener *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_EventListener(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_DOM_EventListener(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_DOM_EventListener(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipDOM_EventListener *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipDOM_EventListener();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const DOM::EventListener* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_EventListener, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipDOM_EventListener(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_DOM_EventListener[] = {
    {SIP_MLNAME_CAST(sipName_eventListenerType), meth_DOM_EventListener_eventListenerType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_handleEvent), meth_DOM_EventListener_handleEvent, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_EventListener = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_DOM__EventListener,
        {0}
    },
    {
        sipNameNr_EventListener,
        {0, 255, 0},
        2, methods_DOM_EventListener,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_DOM_EventListener,
    0,
    init_type_DOM_EventListener,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_EventListener,
    assign_DOM_EventListener,
    array_DOM_EventListener,
    copy_DOM_EventListener,
    release_DOM_EventListener,
    cast_DOM_EventListener,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};
