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

#include "sipAPIkhtml.h"

#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 12 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart7.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 16 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart7.cpp"


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

    {
        const DOM::CSSRuleList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_CSSRuleList, &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_CSSRuleList, sipName_length, NULL);

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

    {
        const DOM::CSSRuleList *sipCpp;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const DOM::CSSRuleList* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_DOM_CSSRuleList[] = {
    {SIP_MLNAME_CAST(sipName_isNull), meth_DOM_CSSRuleList_isNull, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_item), meth_DOM_CSSRuleList_item, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_length), meth_DOM_CSSRuleList_length, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_CSSRuleList = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__CSSRuleList,
        {0}
    },
    {
        sipNameNr_CSSRuleList,
        {0, 255, 0},
        3, methods_DOM_CSSRuleList,
        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_CSSRuleList,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_CSSRuleList,
    assign_DOM_CSSRuleList,
    array_DOM_CSSRuleList,
    copy_DOM_CSSRuleList,
    release_DOM_CSSRuleList,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 192 "/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 239 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart7.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 243 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart7.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 246 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart7.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 249 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart7.cpp"


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const DOM::CSSUnknownRule* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_CSSUnknownRule, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::CSSUnknownRule(*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::CSSUnknownRule(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


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


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_CSSUnknownRule = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__CSSUnknownRule,
        {0}
    },
    {
        sipNameNr_CSSUnknownRule,
        {0, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_DOM_CSSUnknownRule,
    0,
    init_type_DOM_CSSUnknownRule,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_CSSUnknownRule,
    assign_DOM_CSSUnknownRule,
    array_DOM_CSSUnknownRule,
    copy_DOM_CSSUnknownRule,
    release_DOM_CSSUnknownRule,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 172 "/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 400 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart7.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 404 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart7.cpp"
#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 407 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart7.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 410 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart7.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 413 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart7.cpp"


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

    {
        const DOM::CSSStyleRule *sipCpp;

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_CSSStyleRule, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSelectorText(*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_CSSStyleRule, sipName_setSelectorText, NULL);

    return NULL;
}


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

    {
        const DOM::CSSStyleRule *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::CSSStyleDeclaration(sipCpp->style());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const DOM::CSSStyleRule* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_CSSStyleRule, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::CSSStyleRule(*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::CSSStyleRule(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_DOM_CSSStyleRule[] = {
    {SIP_MLNAME_CAST(sipName_selectorText), meth_DOM_CSSStyleRule_selectorText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSelectorText), meth_DOM_CSSStyleRule_setSelectorText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_style), meth_DOM_CSSStyleRule_style, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_CSSStyleRule = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__CSSStyleRule,
        {0}
    },
    {
        sipNameNr_CSSStyleRule,
        {0, 255, 0},
        3, methods_DOM_CSSStyleRule,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_DOM_CSSStyleRule,
    0,
    init_type_DOM_CSSStyleRule,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_CSSStyleRule,
    assign_DOM_CSSStyleRule,
    array_DOM_CSSStyleRule,
    copy_DOM_CSSStyleRule,
    release_DOM_CSSStyleRule,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 152 "/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 652 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart7.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 656 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart7.cpp"
#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 659 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart7.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 662 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart7.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 665 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart7.cpp"


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

    {
        const DOM::CSSPageRule *sipCpp;

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_CSSPageRule, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSelectorText(*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_CSSPageRule, sipName_setSelectorText, NULL);

    return NULL;
}


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

    {
        const DOM::CSSPageRule *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::CSSStyleDeclaration(sipCpp->style());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const DOM::CSSPageRule* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_CSSPageRule, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::CSSPageRule(*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::CSSPageRule(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_DOM_CSSPageRule[] = {
    {SIP_MLNAME_CAST(sipName_selectorText), meth_DOM_CSSPageRule_selectorText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSelectorText), meth_DOM_CSSPageRule_setSelectorText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_style), meth_DOM_CSSPageRule_style, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_CSSPageRule = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__CSSPageRule,
        {0}
    },
    {
        sipNameNr_CSSPageRule,
        {0, 255, 0},
        3, methods_DOM_CSSPageRule,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_DOM_CSSPageRule,
    0,
    init_type_DOM_CSSPageRule,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_CSSPageRule,
    assign_DOM_CSSPageRule,
    array_DOM_CSSPageRule,
    copy_DOM_CSSPageRule,
    release_DOM_CSSPageRule,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 131 "/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 904 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart7.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 908 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart7.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 911 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart7.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 914 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart7.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 917 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart7.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 920 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart7.cpp"


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

    {
        const DOM::CSSMediaRule *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_CSSMediaRule, &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_CSSMediaRule, sipName_media, NULL);

    return NULL;
}


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

    {
        const DOM::CSSMediaRule *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_CSSMediaRule, &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_CSSMediaRule, sipName_cssRules, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9m", &sipSelf, sipType_DOM_CSSMediaRule, &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_CSSMediaRule, sipName_insertRule, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "Bm", &sipSelf, sipType_DOM_CSSMediaRule, &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_CSSMediaRule, sipName_deleteRule, NULL);

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const DOM::CSSMediaRule* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_CSSMediaRule, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::CSSMediaRule(*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::CSSMediaRule(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_DOM_CSSMediaRule[] = {
    {SIP_MLNAME_CAST(sipName_cssRules), meth_DOM_CSSMediaRule_cssRules, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deleteRule), meth_DOM_CSSMediaRule_deleteRule, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_insertRule), meth_DOM_CSSMediaRule_insertRule, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_media), meth_DOM_CSSMediaRule_media, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_CSSMediaRule = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__CSSMediaRule,
        {0}
    },
    {
        sipNameNr_CSSMediaRule,
        {0, 255, 0},
        4, methods_DOM_CSSMediaRule,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_DOM_CSSMediaRule,
    0,
    init_type_DOM_CSSMediaRule,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_CSSMediaRule,
    assign_DOM_CSSMediaRule,
    array_DOM_CSSMediaRule,
    copy_DOM_CSSMediaRule,
    release_DOM_CSSMediaRule,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 111 "/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 1189 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart7.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 1193 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart7.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 1196 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart7.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 1199 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart7.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 1202 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart7.cpp"


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

    {
        const DOM::CSSImportRule *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_CSSImportRule, &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_CSSImportRule, sipName_href, NULL);

    return NULL;
}


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

    {
        const DOM::CSSImportRule *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_CSSImportRule, &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_CSSImportRule, sipName_media, NULL);

    return NULL;
}


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

    {
        const DOM::CSSImportRule *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::CSSStyleSheet(sipCpp->styleSheet());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const DOM::CSSImportRule* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_CSSImportRule, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::CSSImportRule(*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::CSSImportRule(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_DOM_CSSImportRule[] = {
    {SIP_MLNAME_CAST(sipName_href), meth_DOM_CSSImportRule_href, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_media), meth_DOM_CSSImportRule_media, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_styleSheet), meth_DOM_CSSImportRule_styleSheet, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_CSSImportRule = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__CSSImportRule,
        {0}
    },
    {
        sipNameNr_CSSImportRule,
        {0, 255, 0},
        3, methods_DOM_CSSImportRule,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_DOM_CSSImportRule,
    0,
    init_type_DOM_CSSImportRule,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_CSSImportRule,
    assign_DOM_CSSImportRule,
    array_DOM_CSSImportRule,
    copy_DOM_CSSImportRule,
    release_DOM_CSSImportRule,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 93 "/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 1441 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart7.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 1445 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart7.cpp"
#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 1448 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart7.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 1451 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart7.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 1454 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart7.cpp"


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

    {
        const DOM::CSSFontFaceRule *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::CSSStyleDeclaration(sipCpp->style());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const DOM::CSSFontFaceRule* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_CSSFontFaceRule, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::CSSFontFaceRule(*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::CSSFontFaceRule(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_DOM_CSSFontFaceRule[] = {
    {SIP_MLNAME_CAST(sipName_style), meth_DOM_CSSFontFaceRule_style, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_CSSFontFaceRule = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__CSSFontFaceRule,
        {0}
    },
    {
        sipNameNr_CSSFontFaceRule,
        {0, 255, 0},
        1, methods_DOM_CSSFontFaceRule,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_DOM_CSSFontFaceRule,
    0,
    init_type_DOM_CSSFontFaceRule,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_CSSFontFaceRule,
    assign_DOM_CSSFontFaceRule,
    array_DOM_CSSFontFaceRule,
    copy_DOM_CSSFontFaceRule,
    release_DOM_CSSFontFaceRule,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 74 "/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 1637 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart7.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 1641 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart7.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 1644 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart7.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 1647 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart7.cpp"


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

    {
        const DOM::CSSCharsetRule *sipCpp;

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_CSSCharsetRule, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setEncoding(*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_CSSCharsetRule, sipName_setEncoding, NULL);

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const DOM::CSSCharsetRule* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_CSSCharsetRule, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::CSSCharsetRule(*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::CSSCharsetRule(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_DOM_CSSCharsetRule[] = {
    {SIP_MLNAME_CAST(sipName_encoding), meth_DOM_CSSCharsetRule_encoding, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setEncoding), meth_DOM_CSSCharsetRule_setEncoding, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_CSSCharsetRule = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__CSSCharsetRule,
        {0}
    },
    {
        sipNameNr_CSSCharsetRule,
        {0, 255, 0},
        2, methods_DOM_CSSCharsetRule,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_DOM_CSSCharsetRule,
    0,
    init_type_DOM_CSSCharsetRule,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_CSSCharsetRule,
    assign_DOM_CSSCharsetRule,
    array_DOM_CSSCharsetRule,
    copy_DOM_CSSCharsetRule,
    release_DOM_CSSCharsetRule,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#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 1858 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart7.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 1862 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart7.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 1865 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart7.cpp"


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

    {
        const DOM::CSSRule *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->type();
            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_CSSRule, sipName_type, NULL);

    return NULL;
}


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

    {
        const DOM::CSSRule *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_CSSRule, &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_CSSRule, sipName_cssText, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_CSSRule, &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_CSSRule, sipName_setCssText, NULL);

    return NULL;
}


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

    {
        const DOM::CSSRule *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const DOM::CSSRule *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_CSSRule, &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_CSSRule, sipName_parentRule, NULL);

    return NULL;
}


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

    {
        const DOM::CSSRule *sipCpp;

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

    return NULL;
}


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

    {
        const DOM::CSSRule* a0;
        DOM::CSSRule::RuleType a1;
        DOM::CSSRule *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ9E", &sipSelf, sipType_DOM_CSSRule, &sipCpp, sipType_DOM_CSSRule, &a0, sipType_DOM_CSSRule_RuleType, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->assignOther(*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_CSSRule, sipName_assignOther, NULL);

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::CSSRule();
            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::CSSRule(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_DOM_CSSRule[] = {
    {SIP_MLNAME_CAST(sipName_assignOther), meth_DOM_CSSRule_assignOther, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_cssText), meth_DOM_CSSRule_cssText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isNull), meth_DOM_CSSRule_isNull, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentRule), meth_DOM_CSSRule_parentRule, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentStyleSheet), meth_DOM_CSSRule_parentStyleSheet, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCssText), meth_DOM_CSSRule_setCssText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_DOM_CSSRule_type, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_DOM_CSSRule[] = {
    {sipName_CHARSET_RULE, static_cast<int>(DOM::CSSRule::CHARSET_RULE), 15},
    {sipName_FONT_FACE_RULE, static_cast<int>(DOM::CSSRule::FONT_FACE_RULE), 15},
    {sipName_IMPORT_RULE, static_cast<int>(DOM::CSSRule::IMPORT_RULE), 15},
    {sipName_MEDIA_RULE, static_cast<int>(DOM::CSSRule::MEDIA_RULE), 15},
    {sipName_NAMESPACE_RULE, static_cast<int>(DOM::CSSRule::NAMESPACE_RULE), 15},
    {sipName_PAGE_RULE, static_cast<int>(DOM::CSSRule::PAGE_RULE), 15},
    {sipName_QUIRKS_RULE, static_cast<int>(DOM::CSSRule::QUIRKS_RULE), 15},
    {sipName_STYLE_RULE, static_cast<int>(DOM::CSSRule::STYLE_RULE), 15},
    {sipName_UNKNOWN_RULE, static_cast<int>(DOM::CSSRule::UNKNOWN_RULE), 15},
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_CSSRule = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__CSSRule,
        {0}
    },
    {
        sipNameNr_CSSRule,
        {0, 255, 0},
        7, methods_DOM_CSSRule,
        9, enummembers_DOM_CSSRule,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_DOM_CSSRule,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_CSSRule,
    assign_DOM_CSSRule,
    array_DOM_CSSRule,
    copy_DOM_CSSRule,
    release_DOM_CSSRule,
    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/dom_string.sip"
#include <dom_string.h>
#line 2217 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart7.cpp"


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J9", sipType_DOM_DOMString, &a0, sipType_DOM_DOMString, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = DOM::strcasecmp(*a0,*a1);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const DOM::DOMString* a0;
        const char* a1;
        PyObject *a1Keep;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9AA", sipType_DOM_DOMString, &a0, &a1Keep, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = DOM::strcasecmp(*a0,a1);
            Py_END_ALLOW_THREADS
            Py_DECREF(a1Keep);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J9", sipType_DOM_DOMString, &a0, sipType_DOM_DOMString, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = DOM::strcmp(*a0,*a1);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


static PyMethodDef methods_DOM[] = {
    {SIP_MLNAME_CAST(sipName_strcasecmp), meth_DOM_strcasecmp, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_strcmp), meth_DOM_strcmp, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_DOM,
        {0}
    },
    {
        sipNameNr_DOM,
        {0, 0, 1},
        2, methods_DOM,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};
