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

#include "sipAPIkhtml.h"

#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_misc.sip"
#include <dom_misc.h>
#line 12 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"



class sipDOM_DomShared : public DOM::DomShared
{
public:
    sipDOM_DomShared();
    sipDOM_DomShared(const DOM::DomShared&);
    virtual ~sipDOM_DomShared();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool deleteMe();

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[1];
};

sipDOM_DomShared::sipDOM_DomShared(): DOM::DomShared(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

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

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

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

    if (!sipMeth)
        return DOM::DomShared::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);
}


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

    {
        DOM::DomShared *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->DOM::DomShared::deleteMe() : sipCpp->deleteMe());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        DOM::DomShared *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        DOM::DomShared *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const DOM::DomShared *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasOneRef();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const DOM::DomShared *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_DomShared, &sipCpp))
        {
            uint sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->refCount();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const DOM::DomShared* a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_DOM_DomShared[] = {
    {SIP_MLNAME_CAST(sipName_deleteMe), meth_DOM_DomShared_deleteMe, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deref), meth_DOM_DomShared_deref, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasOneRef), meth_DOM_DomShared_hasOneRef, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ref), meth_DOM_DomShared_ref, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_refCount), meth_DOM_DomShared_refCount, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_DomShared = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_DOM__DomShared,
        {0}
    },
    {
        sipNameNr_DomShared,
        {0, 255, 0},
        5, methods_DOM_DomShared,
        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_DomShared,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_DomShared,
    assign_DOM_DomShared,
    array_DOM_DomShared,
    copy_DOM_DomShared,
    release_DOM_DomShared,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 216 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/css_value.sip"
#include <css_value.h>
#line 355 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"

#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 359 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"


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

    {
        const DOM::Counter *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const DOM::Counter *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const DOM::Counter *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const DOM::Counter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Counter, &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_Counter, sipName_isNull, NULL);

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const DOM::Counter* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_DOM_Counter[] = {
    {SIP_MLNAME_CAST(sipName_identifier), meth_DOM_Counter_identifier, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isNull), meth_DOM_Counter_isNull, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_listStyle), meth_DOM_Counter_listStyle, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_separator), meth_DOM_Counter_separator, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_Counter = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__Counter,
        {0}
    },
    {
        sipNameNr_Counter,
        {0, 255, 0},
        4, methods_DOM_Counter,
        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_Counter,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_Counter,
    assign_DOM_Counter,
    array_DOM_Counter,
    copy_DOM_Counter,
    release_DOM_Counter,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 191 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/css_value.sip"
#include <css_value.h>
#line 609 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"

#line 110 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/css_value.sip"
#include <css_value.h>
#line 613 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"


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

    {
        const DOM::Rect *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::CSSPrimitiveValue(sipCpp->top());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const DOM::Rect *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::CSSPrimitiveValue(sipCpp->right());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const DOM::Rect *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::CSSPrimitiveValue(sipCpp->bottom());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const DOM::Rect *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::CSSPrimitiveValue(sipCpp->left());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const DOM::Rect *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Rect, &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_Rect, sipName_isNull, NULL);

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const DOM::Rect* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_DOM_Rect[] = {
    {SIP_MLNAME_CAST(sipName_bottom), meth_DOM_Rect_bottom, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isNull), meth_DOM_Rect_isNull, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_left), meth_DOM_Rect_left, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_right), meth_DOM_Rect_right, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_top), meth_DOM_Rect_top, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_Rect = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__Rect,
        {0}
    },
    {
        sipNameNr_Rect,
        {0, 255, 0},
        5, methods_DOM_Rect,
        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_Rect,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_Rect,
    assign_DOM_Rect,
    array_DOM_Rect,
    copy_DOM_Rect,
    release_DOM_Rect,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 170 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/css_value.sip"
#include <css_value.h>
#line 891 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"

#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qcolor.sip"
#include <qcolor.h>
#line 895 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"
#line 110 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/css_value.sip"
#include <css_value.h>
#line 898 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"


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

    {
        const DOM::RGBColor *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::CSSPrimitiveValue(sipCpp->red());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const DOM::RGBColor *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::CSSPrimitiveValue(sipCpp->green());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const DOM::RGBColor *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::CSSPrimitiveValue(sipCpp->blue());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const DOM::RGBColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_RGBColor, &sipCpp))
        {
            QRgb sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->color();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const QColor* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QColor, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::RGBColor(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QColor *>(a0),sipType_QColor,a0State);

            return sipCpp;
        }
    }

    {
        QRgb a0;

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

            return sipCpp;
        }
    }

    {
        const DOM::RGBColor* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_DOM_RGBColor[] = {
    {SIP_MLNAME_CAST(sipName_blue), meth_DOM_RGBColor_blue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_color), meth_DOM_RGBColor_color, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_green), meth_DOM_RGBColor_green, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_red), meth_DOM_RGBColor_red, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_RGBColor = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__RGBColor,
        {0}
    },
    {
        sipNameNr_RGBColor,
        {0, 255, 0},
        4, methods_DOM_RGBColor,
        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_RGBColor,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_RGBColor,
    assign_DOM_RGBColor,
    array_DOM_RGBColor,
    copy_DOM_RGBColor,
    release_DOM_RGBColor,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 110 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/css_value.sip"
#include <css_value.h>
#line 1176 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"

#line 57 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/css_value.sip"
#include <css_value.h>
#line 1180 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"
#line 170 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/css_value.sip"
#include <css_value.h>
#line 1183 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"
#line 191 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/css_value.sip"
#include <css_value.h>
#line 1186 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"
#line 216 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/css_value.sip"
#include <css_value.h>
#line 1189 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 1192 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"


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

    {
        const DOM::CSSPrimitiveValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->primitiveType();
            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_CSSPrimitiveValue, sipName_primitiveType, NULL);

    return NULL;
}


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

    {
        unsigned short a0;
        float a1;
        DOM::CSSPrimitiveValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Btf", &sipSelf, sipType_DOM_CSSPrimitiveValue, &sipCpp, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setFloatValue(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_CSSPrimitiveValue, sipName_setFloatValue, NULL);

    return NULL;
}


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

    {
        unsigned short a0;
        const DOM::CSSPrimitiveValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bt", &sipSelf, sipType_DOM_CSSPrimitiveValue, &sipCpp, &a0))
        {
            float sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->getFloatValue(a0);
            Py_END_ALLOW_THREADS

            return PyFloat_FromDouble((double)sipRes);
        }
    }

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

    return NULL;
}


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

    {
        unsigned short a0;
        const DOM::DOMString* a1;
        DOM::CSSPrimitiveValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BtJ9", &sipSelf, sipType_DOM_CSSPrimitiveValue, &sipCpp, &a0, sipType_DOM_DOMString, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setStringValue(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_CSSPrimitiveValue, sipName_setStringValue, NULL);

    return NULL;
}


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

    {
        const DOM::CSSPrimitiveValue *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const DOM::CSSPrimitiveValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Counter(sipCpp->getCounterValue());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const DOM::CSSPrimitiveValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Rect(sipCpp->getRectValue());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const DOM::CSSPrimitiveValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::RGBColor(sipCpp->getRGBColorValue());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const DOM::CSSPrimitiveValue* a0;

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

            return sipCpp;
        }
    }

    {
        const DOM::CSSValue* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_DOM_CSSPrimitiveValue[] = {
    {SIP_MLNAME_CAST(sipName_getCounterValue), meth_DOM_CSSPrimitiveValue_getCounterValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getFloatValue), meth_DOM_CSSPrimitiveValue_getFloatValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getRGBColorValue), meth_DOM_CSSPrimitiveValue_getRGBColorValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getRectValue), meth_DOM_CSSPrimitiveValue_getRectValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getStringValue), meth_DOM_CSSPrimitiveValue_getStringValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_primitiveType), meth_DOM_CSSPrimitiveValue_primitiveType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setFloatValue), meth_DOM_CSSPrimitiveValue_setFloatValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setStringValue), meth_DOM_CSSPrimitiveValue_setStringValue, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_DOM_CSSPrimitiveValue[] = {
    {sipName_CSS_ATTR, static_cast<int>(DOM::CSSPrimitiveValue::CSS_ATTR), 13},
    {sipName_CSS_CM, static_cast<int>(DOM::CSSPrimitiveValue::CSS_CM), 13},
    {sipName_CSS_COUNTER, static_cast<int>(DOM::CSSPrimitiveValue::CSS_COUNTER), 13},
    {sipName_CSS_DEG, static_cast<int>(DOM::CSSPrimitiveValue::CSS_DEG), 13},
    {sipName_CSS_DIMENSION, static_cast<int>(DOM::CSSPrimitiveValue::CSS_DIMENSION), 13},
    {sipName_CSS_DPCM, static_cast<int>(DOM::CSSPrimitiveValue::CSS_DPCM), 13},
    {sipName_CSS_DPI, static_cast<int>(DOM::CSSPrimitiveValue::CSS_DPI), 13},
    {sipName_CSS_EMS, static_cast<int>(DOM::CSSPrimitiveValue::CSS_EMS), 13},
    {sipName_CSS_EXS, static_cast<int>(DOM::CSSPrimitiveValue::CSS_EXS), 13},
    {sipName_CSS_GRAD, static_cast<int>(DOM::CSSPrimitiveValue::CSS_GRAD), 13},
    {sipName_CSS_HTML_RELATIVE, static_cast<int>(DOM::CSSPrimitiveValue::CSS_HTML_RELATIVE), 13},
    {sipName_CSS_HZ, static_cast<int>(DOM::CSSPrimitiveValue::CSS_HZ), 13},
    {sipName_CSS_IDENT, static_cast<int>(DOM::CSSPrimitiveValue::CSS_IDENT), 13},
    {sipName_CSS_IN, static_cast<int>(DOM::CSSPrimitiveValue::CSS_IN), 13},
    {sipName_CSS_KHZ, static_cast<int>(DOM::CSSPrimitiveValue::CSS_KHZ), 13},
    {sipName_CSS_MM, static_cast<int>(DOM::CSSPrimitiveValue::CSS_MM), 13},
    {sipName_CSS_MS, static_cast<int>(DOM::CSSPrimitiveValue::CSS_MS), 13},
    {sipName_CSS_NUMBER, static_cast<int>(DOM::CSSPrimitiveValue::CSS_NUMBER), 13},
    {sipName_CSS_PAIR, static_cast<int>(DOM::CSSPrimitiveValue::CSS_PAIR), 13},
    {sipName_CSS_PC, static_cast<int>(DOM::CSSPrimitiveValue::CSS_PC), 13},
    {sipName_CSS_PERCENTAGE, static_cast<int>(DOM::CSSPrimitiveValue::CSS_PERCENTAGE), 13},
    {sipName_CSS_PT, static_cast<int>(DOM::CSSPrimitiveValue::CSS_PT), 13},
    {sipName_CSS_PX, static_cast<int>(DOM::CSSPrimitiveValue::CSS_PX), 13},
    {sipName_CSS_RAD, static_cast<int>(DOM::CSSPrimitiveValue::CSS_RAD), 13},
    {sipName_CSS_RECT, static_cast<int>(DOM::CSSPrimitiveValue::CSS_RECT), 13},
    {sipName_CSS_RGBCOLOR, static_cast<int>(DOM::CSSPrimitiveValue::CSS_RGBCOLOR), 13},
    {sipName_CSS_S, static_cast<int>(DOM::CSSPrimitiveValue::CSS_S), 13},
    {sipName_CSS_STRING, static_cast<int>(DOM::CSSPrimitiveValue::CSS_STRING), 13},
    {sipName_CSS_UNKNOWN, static_cast<int>(DOM::CSSPrimitiveValue::CSS_UNKNOWN), 13},
    {sipName_CSS_URI, static_cast<int>(DOM::CSSPrimitiveValue::CSS_URI), 13},
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_CSSPrimitiveValue = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__CSSPrimitiveValue,
        {0}
    },
    {
        sipNameNr_CSSPrimitiveValue,
        {0, 255, 0},
        8, methods_DOM_CSSPrimitiveValue,
        30, enummembers_DOM_CSSPrimitiveValue,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_DOM_CSSPrimitiveValue,
    0,
    init_type_DOM_CSSPrimitiveValue,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_CSSPrimitiveValue,
    assign_DOM_CSSPrimitiveValue,
    array_DOM_CSSPrimitiveValue,
    copy_DOM_CSSPrimitiveValue,
    release_DOM_CSSPrimitiveValue,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 91 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/css_value.sip"
#include <css_value.h>
#line 1611 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"

#line 57 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/css_value.sip"
#include <css_value.h>
#line 1615 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 1618 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"


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

    {
        const DOM::CSSValueList *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->length();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        unsigned long a0;
        DOM::CSSValueList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bm", &sipSelf, sipType_DOM_CSSValueList, &sipCpp, &a0))
        {
            DOM::CSSValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::CSSValue(sipCpp->item(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const DOM::CSSValueList* a0;

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

            return sipCpp;
        }
    }

    {
        const DOM::CSSValue* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_DOM_CSSValueList[] = {
    {SIP_MLNAME_CAST(sipName_item), meth_DOM_CSSValueList_item, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_length), meth_DOM_CSSValueList_length, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_CSSValueList = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__CSSValueList,
        {0}
    },
    {
        sipNameNr_CSSValueList,
        {0, 255, 0},
        2, methods_DOM_CSSValueList,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_DOM_CSSValueList,
    0,
    init_type_DOM_CSSValueList,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_CSSValueList,
    assign_DOM_CSSValueList,
    array_DOM_CSSValueList,
    copy_DOM_CSSValueList,
    release_DOM_CSSValueList,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 57 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/css_value.sip"
#include <css_value.h>
#line 1830 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"

#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 1834 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"


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

    {
        const DOM::CSSValue *sipCpp;

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_CSSValue, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCssText(*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_CSSValue, sipName_setCssText, NULL);

    return NULL;
}


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

    {
        const DOM::CSSValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->cssValueType();
            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_CSSValue, sipName_cssValueType, NULL);

    return NULL;
}


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

    {
        const DOM::CSSValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isCSSValueList();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const DOM::CSSValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isCSSPrimitiveValue();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const DOM::CSSValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_CSSValue, &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_CSSValue, sipName_isNull, NULL);

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const DOM::CSSValue* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_DOM_CSSValue[] = {
    {SIP_MLNAME_CAST(sipName_cssText), meth_DOM_CSSValue_cssText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_cssValueType), meth_DOM_CSSValue_cssValueType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isCSSPrimitiveValue), meth_DOM_CSSValue_isCSSPrimitiveValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isCSSValueList), meth_DOM_CSSValue_isCSSValueList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isNull), meth_DOM_CSSValue_isNull, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCssText), meth_DOM_CSSValue_setCssText, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_DOM_CSSValue[] = {
    {sipName_CSS_CUSTOM, static_cast<int>(DOM::CSSValue::CSS_CUSTOM), 22},
    {sipName_CSS_INHERIT, static_cast<int>(DOM::CSSValue::CSS_INHERIT), 22},
    {sipName_CSS_INITIAL, static_cast<int>(DOM::CSSValue::CSS_INITIAL), 22},
    {sipName_CSS_PRIMITIVE_VALUE, static_cast<int>(DOM::CSSValue::CSS_PRIMITIVE_VALUE), 22},
    {sipName_CSS_SVG_VALUE, static_cast<int>(DOM::CSSValue::CSS_SVG_VALUE), 22},
    {sipName_CSS_VALUE_LIST, static_cast<int>(DOM::CSSValue::CSS_VALUE_LIST), 22},
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_CSSValue = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__CSSValue,
        {0}
    },
    {
        sipNameNr_CSSValue,
        {0, 255, 0},
        6, methods_DOM_CSSValue,
        6, enummembers_DOM_CSSValue,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_DOM_CSSValue,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_CSSValue,
    assign_DOM_CSSValue,
    array_DOM_CSSValue,
    copy_DOM_CSSValue,
    release_DOM_CSSValue,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/css_value.sip"
#include <css_value.h>
#line 2153 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"

#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 2157 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"
#line 57 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/css_value.sip"
#include <css_value.h>
#line 2160 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"
#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/css_rule.sip"
#include <css_rule.h>
#line 2163 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"


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

    {
        const DOM::CSSStyleDeclaration *sipCpp;

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_CSSStyleDeclaration, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCssText(*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_CSSStyleDeclaration, sipName_setCssText, NULL);

    return NULL;
}


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

    {
        const DOM::CSSStyleDeclaration *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->length();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const DOM::CSSStyleDeclaration *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::CSSRule(sipCpp->parentRule());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->getPropertyValue(*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_CSSStyleDeclaration, sipName_getPropertyValue, NULL);

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::CSSValue(sipCpp->getPropertyCSSValue(*a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->removeProperty(*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_CSSStyleDeclaration, sipName_removeProperty, NULL);

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->getPropertyPriority(*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_CSSStyleDeclaration, sipName_getPropertyPriority, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9J9", &sipSelf, sipType_DOM_CSSStyleDeclaration, &sipCpp, sipType_DOM_DOMString, &a0, sipType_DOM_DOMString, &a1, sipType_DOM_DOMString, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setProperty(*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_CSSStyleDeclaration, sipName_setProperty, NULL);

    return NULL;
}


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

    {
        unsigned long a0;
        DOM::CSSStyleDeclaration *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bm", &sipSelf, sipType_DOM_CSSStyleDeclaration, &sipCpp, &a0))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->item(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_CSSStyleDeclaration, sipName_item, NULL);

    return NULL;
}


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

    {
        const DOM::CSSStyleDeclaration *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_CSSStyleDeclaration, &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_CSSStyleDeclaration, sipName_isNull, NULL);

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const DOM::CSSStyleDeclaration* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_DOM_CSSStyleDeclaration[] = {
    {SIP_MLNAME_CAST(sipName_cssText), meth_DOM_CSSStyleDeclaration_cssText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getPropertyCSSValue), meth_DOM_CSSStyleDeclaration_getPropertyCSSValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getPropertyPriority), meth_DOM_CSSStyleDeclaration_getPropertyPriority, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getPropertyValue), meth_DOM_CSSStyleDeclaration_getPropertyValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isNull), meth_DOM_CSSStyleDeclaration_isNull, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_item), meth_DOM_CSSStyleDeclaration_item, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_length), meth_DOM_CSSStyleDeclaration_length, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentRule), meth_DOM_CSSStyleDeclaration_parentRule, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeProperty), meth_DOM_CSSStyleDeclaration_removeProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCssText), meth_DOM_CSSStyleDeclaration_setCssText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProperty), meth_DOM_CSSStyleDeclaration_setProperty, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_CSSStyleDeclaration = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__CSSStyleDeclaration,
        {0}
    },
    {
        sipNameNr_CSSStyleDeclaration,
        {0, 255, 0},
        11, methods_DOM_CSSStyleDeclaration,
        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_CSSStyleDeclaration,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_CSSStyleDeclaration,
    assign_DOM_CSSStyleDeclaration,
    array_DOM_CSSStyleDeclaration,
    copy_DOM_CSSStyleDeclaration,
    release_DOM_CSSStyleDeclaration,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 171 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/css_stylesheet.sip"
#include <css_stylesheet.h>
#line 2616 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"

#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 2620 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"
#line 110 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/css_stylesheet.sip"
#include <css_stylesheet.h>
#line 2623 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"


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

    {
        const DOM::DocumentStyle *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::StyleSheetList(sipCpp->styleSheets());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const DOM::DocumentStyle *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const DOM::DocumentStyle *sipCpp;

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_DocumentStyle, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSelectedStylesheetSet(*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_DocumentStyle, sipName_setSelectedStylesheetSet, NULL);

    return NULL;
}


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

    {
        const DOM::DocumentStyle *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_DocumentStyle, &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_DocumentStyle, sipName_isNull, NULL);

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const DOM::DocumentStyle* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_DOM_DocumentStyle[] = {
    {SIP_MLNAME_CAST(sipName_isNull), meth_DOM_DocumentStyle_isNull, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_preferredStylesheetSet), meth_DOM_DocumentStyle_preferredStylesheetSet, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectedStylesheetSet), meth_DOM_DocumentStyle_selectedStylesheetSet, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSelectedStylesheetSet), meth_DOM_DocumentStyle_setSelectedStylesheetSet, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_styleSheets), meth_DOM_DocumentStyle_styleSheets, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_DocumentStyle = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__DocumentStyle,
        {0}
    },
    {
        sipNameNr_DocumentStyle,
        {0, 255, 0},
        5, methods_DOM_DocumentStyle,
        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_DocumentStyle,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_DocumentStyle,
    assign_DOM_DocumentStyle,
    array_DOM_DocumentStyle,
    copy_DOM_DocumentStyle,
    release_DOM_DocumentStyle,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 154 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/css_stylesheet.sip"
#include <css_stylesheet.h>
#line 2901 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"

#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/css_stylesheet.sip"
#include <css_stylesheet.h>
#line 2905 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"


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

    {
        DOM::LinkStyle *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::StyleSheet(sipCpp->sheet());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const DOM::LinkStyle *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_LinkStyle, &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_LinkStyle, sipName_isNull, NULL);

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const DOM::LinkStyle* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_DOM_LinkStyle[] = {
    {SIP_MLNAME_CAST(sipName_isNull), meth_DOM_LinkStyle_isNull, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sheet), meth_DOM_LinkStyle_sheet, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_LinkStyle = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__LinkStyle,
        {0}
    },
    {
        sipNameNr_LinkStyle,
        {0, 255, 0},
        2, methods_DOM_LinkStyle,
        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_LinkStyle,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_LinkStyle,
    assign_DOM_LinkStyle,
    array_DOM_LinkStyle,
    copy_DOM_LinkStyle,
    release_DOM_LinkStyle,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 130 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/css_stylesheet.sip"
#include <css_stylesheet.h>
#line 3099 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"

#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 3103 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"


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

    {
        const DOM::MediaList *sipCpp;

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_MediaList, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setMediaText(*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_MediaList, sipName_setMediaText, NULL);

    return NULL;
}


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

    {
        const DOM::MediaList *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->length();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        unsigned long a0;
        const DOM::MediaList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bm", &sipSelf, sipType_DOM_MediaList, &sipCpp, &a0))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->item(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_MediaList, sipName_item, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_MediaList, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->deleteMedium(*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_MediaList, sipName_deleteMedium, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_MediaList, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->appendMedium(*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_MediaList, sipName_appendMedium, NULL);

    return NULL;
}


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

    {
        const DOM::MediaList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_MediaList, &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_MediaList, sipName_isNull, NULL);

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const DOM::MediaList* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_DOM_MediaList[] = {
    {SIP_MLNAME_CAST(sipName_appendMedium), meth_DOM_MediaList_appendMedium, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deleteMedium), meth_DOM_MediaList_deleteMedium, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isNull), meth_DOM_MediaList_isNull, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_item), meth_DOM_MediaList_item, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_length), meth_DOM_MediaList_length, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mediaText), meth_DOM_MediaList_mediaText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMediaText), meth_DOM_MediaList_setMediaText, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_MediaList = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__MediaList,
        {0}
    },
    {
        sipNameNr_MediaList,
        {0, 255, 0},
        7, methods_DOM_MediaList,
        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_MediaList,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_MediaList,
    assign_DOM_MediaList,
    array_DOM_MediaList,
    copy_DOM_MediaList,
    release_DOM_MediaList,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 110 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/css_stylesheet.sip"
#include <css_stylesheet.h>
#line 3438 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"

#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/css_stylesheet.sip"
#include <css_stylesheet.h>
#line 3442 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"


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

    {
        const DOM::StyleSheetList *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->length();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        unsigned long a0;
        DOM::StyleSheetList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bm", &sipSelf, sipType_DOM_StyleSheetList, &sipCpp, &a0))
        {
            DOM::StyleSheet*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::StyleSheet(sipCpp->item(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const DOM::StyleSheetList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_StyleSheetList, &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_StyleSheetList, sipName_isNull, NULL);

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const DOM::StyleSheetList* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_DOM_StyleSheetList[] = {
    {SIP_MLNAME_CAST(sipName_isNull), meth_DOM_StyleSheetList_isNull, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_item), meth_DOM_StyleSheetList_item, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_length), meth_DOM_StyleSheetList_length, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_StyleSheetList = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__StyleSheetList,
        {0}
    },
    {
        sipNameNr_StyleSheetList,
        {0, 255, 0},
        3, methods_DOM_StyleSheetList,
        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_StyleSheetList,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_StyleSheetList,
    assign_DOM_StyleSheetList,
    array_DOM_StyleSheetList,
    copy_DOM_StyleSheetList,
    release_DOM_StyleSheetList,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 88 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/css_stylesheet.sip"
#include <css_stylesheet.h>
#line 3665 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"

#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/css_stylesheet.sip"
#include <css_stylesheet.h>
#line 3669 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 3672 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"
#line 209 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/css_rule.sip"
#include <css_rule.h>
#line 3675 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"
#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/css_rule.sip"
#include <css_rule.h>
#line 3678 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"
#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 3681 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"
#line 130 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/css_stylesheet.sip"
#include <css_stylesheet.h>
#line 3684 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"
#line 61 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 3687 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"


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

    {
        const DOM::CSSStyleSheet *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::CSSRule(sipCpp->ownerRule());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const DOM::CSSStyleSheet *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::CSSRuleList(sipCpp->cssRules());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const DOM::DOMString* a0;
        unsigned long a1;
        DOM::CSSStyleSheet *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9m", &sipSelf, sipType_DOM_CSSStyleSheet, &sipCpp, sipType_DOM_DOMString, &a0, &a1))
        {
            unsigned long sipRes;

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

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        unsigned long a0;
        DOM::CSSStyleSheet *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bm", &sipSelf, sipType_DOM_CSSStyleSheet, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->deleteRule(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_CSSStyleSheet, sipName_deleteRule, NULL);

    return NULL;
}


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

    {
        const DOM::CSSStyleSheet *sipCpp;

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

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

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

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const DOM::CSSStyleSheet* a0;

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

            return sipCpp;
        }
    }

    {
        const DOM::StyleSheet* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_DOM_CSSStyleSheet[] = {
    {SIP_MLNAME_CAST(sipName_charset), meth_DOM_CSSStyleSheet_charset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_cssRules), meth_DOM_CSSStyleSheet_cssRules, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deleteRule), meth_DOM_CSSStyleSheet_deleteRule, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_insertRule), meth_DOM_CSSStyleSheet_insertRule, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ownerRule), meth_DOM_CSSStyleSheet_ownerRule, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_CSSStyleSheet = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__CSSStyleSheet,
        {0}
    },
    {
        sipNameNr_CSSStyleSheet,
        {0, 255, 0},
        5, methods_DOM_CSSStyleSheet,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_DOM_CSSStyleSheet,
    0,
    init_type_DOM_CSSStyleSheet,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_CSSStyleSheet,
    assign_DOM_CSSStyleSheet,
    array_DOM_CSSStyleSheet,
    copy_DOM_CSSStyleSheet,
    release_DOM_CSSStyleSheet,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 60 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/css_stylesheet.sip"
#include <css_stylesheet.h>
#line 3984 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"

#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 3988 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"


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

    {
        const DOM::CSSException *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_CSSException, &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::CSSException::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_CSSException, sipName_codeAsString, NULL);

    return NULL;
}


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

    {
        int a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = DOM::CSSException::isCSSExceptionCode(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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

    {
        unsigned short a0;

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

            return sipCpp;
        }
    }

    {
        const DOM::CSSException* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_DOM_CSSException[] = {
    {SIP_MLNAME_CAST(sipName_codeAsString), meth_DOM_CSSException_codeAsString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isCSSExceptionCode), meth_DOM_CSSException_isCSSExceptionCode, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_DOM_CSSException[] = {
    {sipName_INVALID_MODIFICATION_ERR, static_cast<int>(DOM::CSSException::INVALID_MODIFICATION_ERR), 6},
    {sipName_SYNTAX_ERR, static_cast<int>(DOM::CSSException::SYNTAX_ERR), 6},
    {sipName__EXCEPTION_MAX, static_cast<int>(DOM::CSSException::_EXCEPTION_MAX), 6},
    {sipName__EXCEPTION_OFFSET, static_cast<int>(DOM::CSSException::_EXCEPTION_OFFSET), 6},
};


extern "C" {static PyObject *varget_DOM_CSSException_code(void *, PyObject *, PyObject *);}
static PyObject *varget_DOM_CSSException_code(void *sipSelf, PyObject *, PyObject *)
{
    unsigned short sipVal;
    DOM::CSSException *sipCpp = reinterpret_cast<DOM::CSSException *>(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_CSSException_code(void *, PyObject *, PyObject *);}
static int varset_DOM_CSSException_code(void *sipSelf, PyObject *sipPy, PyObject *)
{
    unsigned short sipVal;
    DOM::CSSException *sipCpp = reinterpret_cast<DOM::CSSException *>(sipSelf);

    sipVal = (unsigned short)sipLong_AsUnsignedLong(sipPy);

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

    sipCpp->code = sipVal;

    return 0;
}

sipVariableDef variables_DOM_CSSException[] = {
    {InstanceVariable, sipName_code, (PyMethodDef *)varget_DOM_CSSException_code, (PyMethodDef *)varset_DOM_CSSException_code, NULL, NULL},
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_CSSException = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__CSSException,
        {0}
    },
    {
        sipNameNr_CSSException,
        {0, 255, 0},
        2, methods_DOM_CSSException,
        4, enummembers_DOM_CSSException,
        1, variables_DOM_CSSException,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_DOM_CSSException,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_CSSException,
    0,
    0,
    0,
    release_DOM_CSSException,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/css_stylesheet.sip"
#include <css_stylesheet.h>
#line 4222 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"

#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 4226 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"
#line 130 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/css_stylesheet.sip"
#include <css_stylesheet.h>
#line 4229 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 4232 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"
#line 61 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 4235 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"


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

    {
        const DOM::StyleSheet *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_StyleSheet, &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_StyleSheet, sipName_type, NULL);

    return NULL;
}


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

    {
        const DOM::StyleSheet *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->disabled();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        DOM::StyleSheet *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_DOM_StyleSheet, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDisabled(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_StyleSheet, sipName_setDisabled, NULL);

    return NULL;
}


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

    {
        const DOM::StyleSheet *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const DOM::StyleSheet *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::StyleSheet(sipCpp->parentStyleSheet());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const DOM::StyleSheet *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const DOM::StyleSheet *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const DOM::StyleSheet *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::MediaList(sipCpp->media());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        DOM::StyleSheet *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_StyleSheet, &sipCpp))
        {
            KUrl*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl(sipCpp->baseUrl());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const DOM::StyleSheet *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isCSSStyleSheet();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const DOM::StyleSheet *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_StyleSheet, &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_StyleSheet, sipName_isNull, NULL);

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const DOM::StyleSheet* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_DOM_StyleSheet[] = {
    {SIP_MLNAME_CAST(sipName_baseUrl), meth_DOM_StyleSheet_baseUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disabled), meth_DOM_StyleSheet_disabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_href), meth_DOM_StyleSheet_href, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isCSSStyleSheet), meth_DOM_StyleSheet_isCSSStyleSheet, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isNull), meth_DOM_StyleSheet_isNull, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_media), meth_DOM_StyleSheet_media, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ownerNode), meth_DOM_StyleSheet_ownerNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentStyleSheet), meth_DOM_StyleSheet_parentStyleSheet, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDisabled), meth_DOM_StyleSheet_setDisabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_title), meth_DOM_StyleSheet_title, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_DOM_StyleSheet_type, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_StyleSheet = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__StyleSheet,
        {0}
    },
    {
        sipNameNr_StyleSheet,
        {0, 255, 0},
        11, methods_DOM_StyleSheet,
        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_StyleSheet,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_StyleSheet,
    assign_DOM_StyleSheet,
    array_DOM_StyleSheet,
    copy_DOM_StyleSheet,
    release_DOM_StyleSheet,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 229 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/css_rule.sip"
#include <css_rule.h>
#line 4681 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"

#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/css_rule.sip"
#include <css_rule.h>
#line 4685 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 4688 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"
#line 88 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/css_stylesheet.sip"
#include <css_stylesheet.h>
#line 4691 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart6.cpp"


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

    {
        const DOM::CSSNamespaceRule *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const DOM::CSSNamespaceRule *sipCpp;

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

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

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

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const DOM::CSSNamespaceRule* a0;

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

            return sipCpp;
        }
    }

    {
        const DOM::CSSRule* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_DOM_CSSNamespaceRule[] = {
    {SIP_MLNAME_CAST(sipName_namespaceURI), meth_DOM_CSSNamespaceRule_namespaceURI, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_prefix), meth_DOM_CSSNamespaceRule_prefix, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_CSSNamespaceRule = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__CSSNamespaceRule,
        {0}
    },
    {
        sipNameNr_CSSNamespaceRule,
        {0, 255, 0},
        2, methods_DOM_CSSNamespaceRule,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_DOM_CSSNamespaceRule,
    0,
    init_type_DOM_CSSNamespaceRule,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_CSSNamespaceRule,
    assign_DOM_CSSNamespaceRule,
    array_DOM_CSSNamespaceRule,
    copy_DOM_CSSNamespaceRule,
    release_DOM_CSSNamespaceRule,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};
