/*
 * Module code.
 *
 * Generated by SIP 4.8.2 on Sun Oct 11 20:11:19 2009
 */

#include "sipAPIkhtml.h"

#line 175 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/css_rule.sip"
#include <css_rule.h>
#line 12 "sipkhtmlpart7.cpp"

#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/css_rule.sip"
#include <css_rule.h>
#line 16 "sipkhtmlpart7.cpp"
#line 81 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/css_stylesheet.sip"
#include <css_stylesheet.h>
#line 19 "sipkhtmlpart7.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 22 "sipkhtmlpart7.cpp"


class sipDOM_CSSUnknownRule : public DOM::CSSUnknownRule
{
public:
    sipDOM_CSSUnknownRule();
    sipDOM_CSSUnknownRule(const DOM::CSSUnknownRule&);
    sipDOM_CSSUnknownRule(const DOM::CSSRule&);
    ~sipDOM_CSSUnknownRule();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    void sipProtect_assignOther(const DOM::CSSRule&,DOM::CSSRule::RuleType);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipDOM_CSSUnknownRule(const sipDOM_CSSUnknownRule &);
    sipDOM_CSSUnknownRule &operator = (const sipDOM_CSSUnknownRule &);
};

sipDOM_CSSUnknownRule::sipDOM_CSSUnknownRule(): DOM::CSSUnknownRule(), sipPySelf(0)
{
}

sipDOM_CSSUnknownRule::sipDOM_CSSUnknownRule(const DOM::CSSUnknownRule& a0): DOM::CSSUnknownRule(a0), sipPySelf(0)
{
}

sipDOM_CSSUnknownRule::sipDOM_CSSUnknownRule(const DOM::CSSRule& a0): DOM::CSSUnknownRule(a0), sipPySelf(0)
{
}

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

void sipDOM_CSSUnknownRule::sipProtect_assignOther(const DOM::CSSRule& a0,DOM::CSSRule::RuleType a1)
{
    DOM::CSSRule::assignOther(a0,a1);
}


extern "C" {static PyObject *meth_DOM_CSSUnknownRule_assignOther(PyObject *, PyObject *);}
static PyObject *meth_DOM_CSSUnknownRule_assignOther(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9E",&sipSelf,sipType_DOM_CSSUnknownRule,&sipCpp,sipType_DOM_CSSRule,&a0,sipType_DOM_CSSRule_RuleType,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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(sipArgsParsed,sipName_CSSUnknownRule,sipName_assignOther);

    return NULL;
}


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

    if (targetType == sipType_DOM_CSSUnknownRule)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_DOM_CSSRule)->ctd_cast((DOM::CSSRule *)(DOM::CSSUnknownRule *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipDOM_CSSUnknownRule *>(sipCppV);
    else
        delete reinterpret_cast<DOM::CSSUnknownRule *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void dealloc_DOM_CSSUnknownRule(sipSimpleWrapper *);}
static void dealloc_DOM_CSSUnknownRule(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipDOM_CSSUnknownRule *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_CSSUnknownRule(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_DOM_CSSUnknownRule(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_DOM_CSSUnknownRule(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    sipDOM_CSSUnknownRule *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipDOM_CSSUnknownRule();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::CSSUnknownRule * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_CSSUnknownRule,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipDOM_CSSUnknownRule(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::CSSRule * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_CSSRule,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipDOM_CSSUnknownRule(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_DOM_CSSUnknownRule[] = {
    {SIP_MLNAME_CAST(sipName_assignOther), meth_DOM_CSSUnknownRule_assignOther, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_khtml_DOM_CSSUnknownRule = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__CSSUnknownRule,
        {0}
    },
    sipNameNr_CSSUnknownRule,
    -1,
    -1,
    {0, 255, 0},
    supers_DOM_CSSUnknownRule,
    0,
    1, methods_DOM_CSSUnknownRule,
    0, 0,
    0, 0,
    init_DOM_CSSUnknownRule,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_CSSUnknownRule,
    release_DOM_CSSUnknownRule,
    cast_DOM_CSSUnknownRule,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_DOM_CSSUnknownRule,
    0,
    0,
    0
};

#line 157 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/css_rule.sip"
#include <css_rule.h>
#line 251 "sipkhtmlpart7.cpp"

#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/css_rule.sip"
#include <css_rule.h>
#line 255 "sipkhtmlpart7.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/css_value.sip"
#include <css_value.h>
#line 258 "sipkhtmlpart7.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 261 "sipkhtmlpart7.cpp"
#line 81 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/css_stylesheet.sip"
#include <css_stylesheet.h>
#line 264 "sipkhtmlpart7.cpp"


class sipDOM_CSSStyleRule : public DOM::CSSStyleRule
{
public:
    sipDOM_CSSStyleRule();
    sipDOM_CSSStyleRule(const DOM::CSSStyleRule&);
    sipDOM_CSSStyleRule(const DOM::CSSRule&);
    ~sipDOM_CSSStyleRule();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    void sipProtect_assignOther(const DOM::CSSRule&,DOM::CSSRule::RuleType);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipDOM_CSSStyleRule(const sipDOM_CSSStyleRule &);
    sipDOM_CSSStyleRule &operator = (const sipDOM_CSSStyleRule &);
};

sipDOM_CSSStyleRule::sipDOM_CSSStyleRule(): DOM::CSSStyleRule(), sipPySelf(0)
{
}

sipDOM_CSSStyleRule::sipDOM_CSSStyleRule(const DOM::CSSStyleRule& a0): DOM::CSSStyleRule(a0), sipPySelf(0)
{
}

sipDOM_CSSStyleRule::sipDOM_CSSStyleRule(const DOM::CSSRule& a0): DOM::CSSStyleRule(a0), sipPySelf(0)
{
}

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

void sipDOM_CSSStyleRule::sipProtect_assignOther(const DOM::CSSRule& a0,DOM::CSSRule::RuleType a1)
{
    DOM::CSSRule::assignOther(a0,a1);
}


extern "C" {static PyObject *meth_DOM_CSSStyleRule_assignOther(PyObject *, PyObject *);}
static PyObject *meth_DOM_CSSStyleRule_assignOther(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9E",&sipSelf,sipType_DOM_CSSStyleRule,&sipCpp,sipType_DOM_CSSRule,&a0,sipType_DOM_CSSRule_RuleType,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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(sipArgsParsed,sipName_CSSStyleRule,sipName_assignOther);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_CSSStyleRule_selectorText(PyObject *, PyObject *);}
static PyObject *meth_DOM_CSSStyleRule_selectorText(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::CSSStyleRule *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_CSSStyleRule,sipName_selectorText);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_CSSStyleRule_setSelectorText(PyObject *, PyObject *);}
static PyObject *meth_DOM_CSSStyleRule_setSelectorText(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_CSSStyleRule,sipName_setSelectorText);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_CSSStyleRule_style(PyObject *, PyObject *);}
static PyObject *meth_DOM_CSSStyleRule_style(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::CSSStyleRule *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_CSSStyleRule,sipName_style);

    return NULL;
}


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

    if (targetType == sipType_DOM_CSSStyleRule)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_DOM_CSSRule)->ctd_cast((DOM::CSSRule *)(DOM::CSSStyleRule *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipDOM_CSSStyleRule *>(sipCppV);
    else
        delete reinterpret_cast<DOM::CSSStyleRule *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void dealloc_DOM_CSSStyleRule(sipSimpleWrapper *);}
static void dealloc_DOM_CSSStyleRule(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipDOM_CSSStyleRule *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_CSSStyleRule(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_DOM_CSSStyleRule(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_DOM_CSSStyleRule(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    sipDOM_CSSStyleRule *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipDOM_CSSStyleRule();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::CSSStyleRule * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_CSSStyleRule,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipDOM_CSSStyleRule(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::CSSRule * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_CSSRule,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipDOM_CSSStyleRule(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_DOM_CSSStyleRule[] = {
    {SIP_MLNAME_CAST(sipName_assignOther), meth_DOM_CSSStyleRule_assignOther, METH_VARARGS, NULL},
    {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 pyqt4Type_khtml_DOM_CSSStyleRule = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__CSSStyleRule,
        {0}
    },
    sipNameNr_CSSStyleRule,
    -1,
    -1,
    {0, 255, 0},
    supers_DOM_CSSStyleRule,
    0,
    4, methods_DOM_CSSStyleRule,
    0, 0,
    0, 0,
    init_DOM_CSSStyleRule,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_CSSStyleRule,
    release_DOM_CSSStyleRule,
    cast_DOM_CSSStyleRule,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_DOM_CSSStyleRule,
    0,
    0,
    0
};

#line 139 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/css_rule.sip"
#include <css_rule.h>
#line 577 "sipkhtmlpart7.cpp"

#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/css_rule.sip"
#include <css_rule.h>
#line 581 "sipkhtmlpart7.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/css_value.sip"
#include <css_value.h>
#line 584 "sipkhtmlpart7.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 587 "sipkhtmlpart7.cpp"
#line 81 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/css_stylesheet.sip"
#include <css_stylesheet.h>
#line 590 "sipkhtmlpart7.cpp"


class sipDOM_CSSPageRule : public DOM::CSSPageRule
{
public:
    sipDOM_CSSPageRule();
    sipDOM_CSSPageRule(const DOM::CSSPageRule&);
    sipDOM_CSSPageRule(const DOM::CSSRule&);
    ~sipDOM_CSSPageRule();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    void sipProtect_assignOther(const DOM::CSSRule&,DOM::CSSRule::RuleType);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipDOM_CSSPageRule(const sipDOM_CSSPageRule &);
    sipDOM_CSSPageRule &operator = (const sipDOM_CSSPageRule &);
};

sipDOM_CSSPageRule::sipDOM_CSSPageRule(): DOM::CSSPageRule(), sipPySelf(0)
{
}

sipDOM_CSSPageRule::sipDOM_CSSPageRule(const DOM::CSSPageRule& a0): DOM::CSSPageRule(a0), sipPySelf(0)
{
}

sipDOM_CSSPageRule::sipDOM_CSSPageRule(const DOM::CSSRule& a0): DOM::CSSPageRule(a0), sipPySelf(0)
{
}

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

void sipDOM_CSSPageRule::sipProtect_assignOther(const DOM::CSSRule& a0,DOM::CSSRule::RuleType a1)
{
    DOM::CSSRule::assignOther(a0,a1);
}


extern "C" {static PyObject *meth_DOM_CSSPageRule_assignOther(PyObject *, PyObject *);}
static PyObject *meth_DOM_CSSPageRule_assignOther(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9E",&sipSelf,sipType_DOM_CSSPageRule,&sipCpp,sipType_DOM_CSSRule,&a0,sipType_DOM_CSSRule_RuleType,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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(sipArgsParsed,sipName_CSSPageRule,sipName_assignOther);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_CSSPageRule_selectorText(PyObject *, PyObject *);}
static PyObject *meth_DOM_CSSPageRule_selectorText(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::CSSPageRule *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_CSSPageRule,sipName_selectorText);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_CSSPageRule_setSelectorText(PyObject *, PyObject *);}
static PyObject *meth_DOM_CSSPageRule_setSelectorText(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_CSSPageRule,sipName_setSelectorText);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_CSSPageRule_style(PyObject *, PyObject *);}
static PyObject *meth_DOM_CSSPageRule_style(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::CSSPageRule *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_CSSPageRule,sipName_style);

    return NULL;
}


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

    if (targetType == sipType_DOM_CSSPageRule)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_DOM_CSSRule)->ctd_cast((DOM::CSSRule *)(DOM::CSSPageRule *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipDOM_CSSPageRule *>(sipCppV);
    else
        delete reinterpret_cast<DOM::CSSPageRule *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void dealloc_DOM_CSSPageRule(sipSimpleWrapper *);}
static void dealloc_DOM_CSSPageRule(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipDOM_CSSPageRule *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_CSSPageRule(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_DOM_CSSPageRule(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_DOM_CSSPageRule(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    sipDOM_CSSPageRule *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipDOM_CSSPageRule();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::CSSPageRule * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_CSSPageRule,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipDOM_CSSPageRule(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::CSSRule * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_CSSRule,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipDOM_CSSPageRule(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_DOM_CSSPageRule[] = {
    {SIP_MLNAME_CAST(sipName_assignOther), meth_DOM_CSSPageRule_assignOther, METH_VARARGS, NULL},
    {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 pyqt4Type_khtml_DOM_CSSPageRule = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__CSSPageRule,
        {0}
    },
    sipNameNr_CSSPageRule,
    -1,
    -1,
    {0, 255, 0},
    supers_DOM_CSSPageRule,
    0,
    4, methods_DOM_CSSPageRule,
    0, 0,
    0, 0,
    init_DOM_CSSPageRule,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_CSSPageRule,
    release_DOM_CSSPageRule,
    cast_DOM_CSSPageRule,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_DOM_CSSPageRule,
    0,
    0,
    0
};

#line 120 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/css_rule.sip"
#include <css_rule.h>
#line 903 "sipkhtmlpart7.cpp"

#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/css_rule.sip"
#include <css_rule.h>
#line 907 "sipkhtmlpart7.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 910 "sipkhtmlpart7.cpp"
#line 190 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/css_rule.sip"
#include <css_rule.h>
#line 913 "sipkhtmlpart7.cpp"
#line 119 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/css_stylesheet.sip"
#include <css_stylesheet.h>
#line 916 "sipkhtmlpart7.cpp"
#line 81 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/css_stylesheet.sip"
#include <css_stylesheet.h>
#line 919 "sipkhtmlpart7.cpp"


class sipDOM_CSSMediaRule : public DOM::CSSMediaRule
{
public:
    sipDOM_CSSMediaRule();
    sipDOM_CSSMediaRule(const DOM::CSSMediaRule&);
    sipDOM_CSSMediaRule(const DOM::CSSRule&);
    ~sipDOM_CSSMediaRule();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    void sipProtect_assignOther(const DOM::CSSRule&,DOM::CSSRule::RuleType);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipDOM_CSSMediaRule(const sipDOM_CSSMediaRule &);
    sipDOM_CSSMediaRule &operator = (const sipDOM_CSSMediaRule &);
};

sipDOM_CSSMediaRule::sipDOM_CSSMediaRule(): DOM::CSSMediaRule(), sipPySelf(0)
{
}

sipDOM_CSSMediaRule::sipDOM_CSSMediaRule(const DOM::CSSMediaRule& a0): DOM::CSSMediaRule(a0), sipPySelf(0)
{
}

sipDOM_CSSMediaRule::sipDOM_CSSMediaRule(const DOM::CSSRule& a0): DOM::CSSMediaRule(a0), sipPySelf(0)
{
}

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

void sipDOM_CSSMediaRule::sipProtect_assignOther(const DOM::CSSRule& a0,DOM::CSSRule::RuleType a1)
{
    DOM::CSSRule::assignOther(a0,a1);
}


extern "C" {static PyObject *meth_DOM_CSSMediaRule_assignOther(PyObject *, PyObject *);}
static PyObject *meth_DOM_CSSMediaRule_assignOther(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9E",&sipSelf,sipType_DOM_CSSMediaRule,&sipCpp,sipType_DOM_CSSRule,&a0,sipType_DOM_CSSRule_RuleType,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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(sipArgsParsed,sipName_CSSMediaRule,sipName_assignOther);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_CSSMediaRule_media(PyObject *, PyObject *);}
static PyObject *meth_DOM_CSSMediaRule_media(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::CSSMediaRule *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_CSSMediaRule,sipName_media);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_CSSMediaRule_cssRules(PyObject *, PyObject *);}
static PyObject *meth_DOM_CSSMediaRule_cssRules(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::CSSMediaRule *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_CSSMediaRule,sipName_cssRules);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_CSSMediaRule_insertRule(PyObject *, PyObject *);}
static PyObject *meth_DOM_CSSMediaRule_insertRule(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_CSSMediaRule,sipName_insertRule);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_CSSMediaRule_deleteRule(PyObject *, PyObject *);}
static PyObject *meth_DOM_CSSMediaRule_deleteRule(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_CSSMediaRule,sipName_deleteRule);

    return NULL;
}


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

    if (targetType == sipType_DOM_CSSMediaRule)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_DOM_CSSRule)->ctd_cast((DOM::CSSRule *)(DOM::CSSMediaRule *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipDOM_CSSMediaRule *>(sipCppV);
    else
        delete reinterpret_cast<DOM::CSSMediaRule *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void dealloc_DOM_CSSMediaRule(sipSimpleWrapper *);}
static void dealloc_DOM_CSSMediaRule(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipDOM_CSSMediaRule *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_CSSMediaRule(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_DOM_CSSMediaRule(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_DOM_CSSMediaRule(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    sipDOM_CSSMediaRule *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipDOM_CSSMediaRule();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::CSSMediaRule * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_CSSMediaRule,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipDOM_CSSMediaRule(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::CSSRule * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_CSSRule,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipDOM_CSSMediaRule(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_DOM_CSSMediaRule[] = {
    {SIP_MLNAME_CAST(sipName_assignOther), meth_DOM_CSSMediaRule_assignOther, METH_VARARGS, NULL},
    {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 pyqt4Type_khtml_DOM_CSSMediaRule = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__CSSMediaRule,
        {0}
    },
    sipNameNr_CSSMediaRule,
    -1,
    -1,
    {0, 255, 0},
    supers_DOM_CSSMediaRule,
    0,
    5, methods_DOM_CSSMediaRule,
    0, 0,
    0, 0,
    init_DOM_CSSMediaRule,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_CSSMediaRule,
    release_DOM_CSSMediaRule,
    cast_DOM_CSSMediaRule,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_DOM_CSSMediaRule,
    0,
    0,
    0
};

#line 102 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/css_rule.sip"
#include <css_rule.h>
#line 1262 "sipkhtmlpart7.cpp"

#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/css_rule.sip"
#include <css_rule.h>
#line 1266 "sipkhtmlpart7.cpp"
#line 81 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/css_stylesheet.sip"
#include <css_stylesheet.h>
#line 1269 "sipkhtmlpart7.cpp"
#line 119 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/css_stylesheet.sip"
#include <css_stylesheet.h>
#line 1272 "sipkhtmlpart7.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 1275 "sipkhtmlpart7.cpp"


class sipDOM_CSSImportRule : public DOM::CSSImportRule
{
public:
    sipDOM_CSSImportRule();
    sipDOM_CSSImportRule(const DOM::CSSImportRule&);
    sipDOM_CSSImportRule(const DOM::CSSRule&);
    ~sipDOM_CSSImportRule();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    void sipProtect_assignOther(const DOM::CSSRule&,DOM::CSSRule::RuleType);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipDOM_CSSImportRule(const sipDOM_CSSImportRule &);
    sipDOM_CSSImportRule &operator = (const sipDOM_CSSImportRule &);
};

sipDOM_CSSImportRule::sipDOM_CSSImportRule(): DOM::CSSImportRule(), sipPySelf(0)
{
}

sipDOM_CSSImportRule::sipDOM_CSSImportRule(const DOM::CSSImportRule& a0): DOM::CSSImportRule(a0), sipPySelf(0)
{
}

sipDOM_CSSImportRule::sipDOM_CSSImportRule(const DOM::CSSRule& a0): DOM::CSSImportRule(a0), sipPySelf(0)
{
}

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

void sipDOM_CSSImportRule::sipProtect_assignOther(const DOM::CSSRule& a0,DOM::CSSRule::RuleType a1)
{
    DOM::CSSRule::assignOther(a0,a1);
}


extern "C" {static PyObject *meth_DOM_CSSImportRule_assignOther(PyObject *, PyObject *);}
static PyObject *meth_DOM_CSSImportRule_assignOther(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9E",&sipSelf,sipType_DOM_CSSImportRule,&sipCpp,sipType_DOM_CSSRule,&a0,sipType_DOM_CSSRule_RuleType,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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(sipArgsParsed,sipName_CSSImportRule,sipName_assignOther);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_CSSImportRule_href(PyObject *, PyObject *);}
static PyObject *meth_DOM_CSSImportRule_href(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::CSSImportRule *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_CSSImportRule,sipName_href);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_CSSImportRule_media(PyObject *, PyObject *);}
static PyObject *meth_DOM_CSSImportRule_media(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::CSSImportRule *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_CSSImportRule,sipName_media);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_CSSImportRule_styleSheet(PyObject *, PyObject *);}
static PyObject *meth_DOM_CSSImportRule_styleSheet(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::CSSImportRule *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_CSSImportRule,sipName_styleSheet);

    return NULL;
}


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

    if (targetType == sipType_DOM_CSSImportRule)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_DOM_CSSRule)->ctd_cast((DOM::CSSRule *)(DOM::CSSImportRule *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipDOM_CSSImportRule *>(sipCppV);
    else
        delete reinterpret_cast<DOM::CSSImportRule *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void dealloc_DOM_CSSImportRule(sipSimpleWrapper *);}
static void dealloc_DOM_CSSImportRule(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipDOM_CSSImportRule *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_CSSImportRule(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_DOM_CSSImportRule(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_DOM_CSSImportRule(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    sipDOM_CSSImportRule *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipDOM_CSSImportRule();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::CSSImportRule * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_CSSImportRule,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipDOM_CSSImportRule(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::CSSRule * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_CSSRule,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipDOM_CSSImportRule(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_DOM_CSSImportRule[] = {
    {SIP_MLNAME_CAST(sipName_assignOther), meth_DOM_CSSImportRule_assignOther, METH_VARARGS, NULL},
    {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 pyqt4Type_khtml_DOM_CSSImportRule = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__CSSImportRule,
        {0}
    },
    sipNameNr_CSSImportRule,
    -1,
    -1,
    {0, 255, 0},
    supers_DOM_CSSImportRule,
    0,
    4, methods_DOM_CSSImportRule,
    0, 0,
    0, 0,
    init_DOM_CSSImportRule,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_CSSImportRule,
    release_DOM_CSSImportRule,
    cast_DOM_CSSImportRule,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_DOM_CSSImportRule,
    0,
    0,
    0
};

#line 86 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/css_rule.sip"
#include <css_rule.h>
#line 1588 "sipkhtmlpart7.cpp"

#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/css_rule.sip"
#include <css_rule.h>
#line 1592 "sipkhtmlpart7.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/css_value.sip"
#include <css_value.h>
#line 1595 "sipkhtmlpart7.cpp"
#line 81 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/css_stylesheet.sip"
#include <css_stylesheet.h>
#line 1598 "sipkhtmlpart7.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 1601 "sipkhtmlpart7.cpp"


class sipDOM_CSSFontFaceRule : public DOM::CSSFontFaceRule
{
public:
    sipDOM_CSSFontFaceRule();
    sipDOM_CSSFontFaceRule(const DOM::CSSFontFaceRule&);
    sipDOM_CSSFontFaceRule(const DOM::CSSRule&);
    ~sipDOM_CSSFontFaceRule();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    void sipProtect_assignOther(const DOM::CSSRule&,DOM::CSSRule::RuleType);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipDOM_CSSFontFaceRule(const sipDOM_CSSFontFaceRule &);
    sipDOM_CSSFontFaceRule &operator = (const sipDOM_CSSFontFaceRule &);
};

sipDOM_CSSFontFaceRule::sipDOM_CSSFontFaceRule(): DOM::CSSFontFaceRule(), sipPySelf(0)
{
}

sipDOM_CSSFontFaceRule::sipDOM_CSSFontFaceRule(const DOM::CSSFontFaceRule& a0): DOM::CSSFontFaceRule(a0), sipPySelf(0)
{
}

sipDOM_CSSFontFaceRule::sipDOM_CSSFontFaceRule(const DOM::CSSRule& a0): DOM::CSSFontFaceRule(a0), sipPySelf(0)
{
}

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

void sipDOM_CSSFontFaceRule::sipProtect_assignOther(const DOM::CSSRule& a0,DOM::CSSRule::RuleType a1)
{
    DOM::CSSRule::assignOther(a0,a1);
}


extern "C" {static PyObject *meth_DOM_CSSFontFaceRule_assignOther(PyObject *, PyObject *);}
static PyObject *meth_DOM_CSSFontFaceRule_assignOther(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9E",&sipSelf,sipType_DOM_CSSFontFaceRule,&sipCpp,sipType_DOM_CSSRule,&a0,sipType_DOM_CSSRule_RuleType,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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(sipArgsParsed,sipName_CSSFontFaceRule,sipName_assignOther);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_CSSFontFaceRule_style(PyObject *, PyObject *);}
static PyObject *meth_DOM_CSSFontFaceRule_style(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::CSSFontFaceRule *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_CSSFontFaceRule,sipName_style);

    return NULL;
}


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

    if (targetType == sipType_DOM_CSSFontFaceRule)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_DOM_CSSRule)->ctd_cast((DOM::CSSRule *)(DOM::CSSFontFaceRule *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipDOM_CSSFontFaceRule *>(sipCppV);
    else
        delete reinterpret_cast<DOM::CSSFontFaceRule *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void dealloc_DOM_CSSFontFaceRule(sipSimpleWrapper *);}
static void dealloc_DOM_CSSFontFaceRule(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipDOM_CSSFontFaceRule *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_CSSFontFaceRule(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_DOM_CSSFontFaceRule(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_DOM_CSSFontFaceRule(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    sipDOM_CSSFontFaceRule *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipDOM_CSSFontFaceRule();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::CSSFontFaceRule * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_CSSFontFaceRule,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipDOM_CSSFontFaceRule(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::CSSRule * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_CSSRule,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipDOM_CSSFontFaceRule(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


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


pyqt4ClassTypeDef pyqt4Type_khtml_DOM_CSSFontFaceRule = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__CSSFontFaceRule,
        {0}
    },
    sipNameNr_CSSFontFaceRule,
    -1,
    -1,
    {0, 255, 0},
    supers_DOM_CSSFontFaceRule,
    0,
    2, methods_DOM_CSSFontFaceRule,
    0, 0,
    0, 0,
    init_DOM_CSSFontFaceRule,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_CSSFontFaceRule,
    release_DOM_CSSFontFaceRule,
    cast_DOM_CSSFontFaceRule,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_DOM_CSSFontFaceRule,
    0,
    0,
    0
};

#line 69 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/css_rule.sip"
#include <css_rule.h>
#line 1858 "sipkhtmlpart7.cpp"

#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/css_rule.sip"
#include <css_rule.h>
#line 1862 "sipkhtmlpart7.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 1865 "sipkhtmlpart7.cpp"
#line 81 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/css_stylesheet.sip"
#include <css_stylesheet.h>
#line 1868 "sipkhtmlpart7.cpp"


class sipDOM_CSSCharsetRule : public DOM::CSSCharsetRule
{
public:
    sipDOM_CSSCharsetRule();
    sipDOM_CSSCharsetRule(const DOM::CSSCharsetRule&);
    sipDOM_CSSCharsetRule(const DOM::CSSRule&);
    ~sipDOM_CSSCharsetRule();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    void sipProtect_assignOther(const DOM::CSSRule&,DOM::CSSRule::RuleType);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipDOM_CSSCharsetRule(const sipDOM_CSSCharsetRule &);
    sipDOM_CSSCharsetRule &operator = (const sipDOM_CSSCharsetRule &);
};

sipDOM_CSSCharsetRule::sipDOM_CSSCharsetRule(): DOM::CSSCharsetRule(), sipPySelf(0)
{
}

sipDOM_CSSCharsetRule::sipDOM_CSSCharsetRule(const DOM::CSSCharsetRule& a0): DOM::CSSCharsetRule(a0), sipPySelf(0)
{
}

sipDOM_CSSCharsetRule::sipDOM_CSSCharsetRule(const DOM::CSSRule& a0): DOM::CSSCharsetRule(a0), sipPySelf(0)
{
}

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

void sipDOM_CSSCharsetRule::sipProtect_assignOther(const DOM::CSSRule& a0,DOM::CSSRule::RuleType a1)
{
    DOM::CSSRule::assignOther(a0,a1);
}


extern "C" {static PyObject *meth_DOM_CSSCharsetRule_assignOther(PyObject *, PyObject *);}
static PyObject *meth_DOM_CSSCharsetRule_assignOther(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9E",&sipSelf,sipType_DOM_CSSCharsetRule,&sipCpp,sipType_DOM_CSSRule,&a0,sipType_DOM_CSSRule_RuleType,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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(sipArgsParsed,sipName_CSSCharsetRule,sipName_assignOther);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_CSSCharsetRule_encoding(PyObject *, PyObject *);}
static PyObject *meth_DOM_CSSCharsetRule_encoding(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::CSSCharsetRule *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_CSSCharsetRule,sipName_encoding);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_CSSCharsetRule_setEncoding(PyObject *, PyObject *);}
static PyObject *meth_DOM_CSSCharsetRule_setEncoding(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_CSSCharsetRule,sipName_setEncoding);

    return NULL;
}


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

    if (targetType == sipType_DOM_CSSCharsetRule)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_DOM_CSSRule)->ctd_cast((DOM::CSSRule *)(DOM::CSSCharsetRule *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipDOM_CSSCharsetRule *>(sipCppV);
    else
        delete reinterpret_cast<DOM::CSSCharsetRule *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void dealloc_DOM_CSSCharsetRule(sipSimpleWrapper *);}
static void dealloc_DOM_CSSCharsetRule(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipDOM_CSSCharsetRule *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_CSSCharsetRule(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_DOM_CSSCharsetRule(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_DOM_CSSCharsetRule(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    sipDOM_CSSCharsetRule *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipDOM_CSSCharsetRule();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::CSSCharsetRule * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_CSSCharsetRule,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipDOM_CSSCharsetRule(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::CSSRule * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_CSSRule,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipDOM_CSSCharsetRule(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_DOM_CSSCharsetRule[] = {
    {SIP_MLNAME_CAST(sipName_assignOther), meth_DOM_CSSCharsetRule_assignOther, METH_VARARGS, NULL},
    {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 pyqt4Type_khtml_DOM_CSSCharsetRule = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__CSSCharsetRule,
        {0}
    },
    sipNameNr_CSSCharsetRule,
    -1,
    -1,
    {0, 255, 0},
    supers_DOM_CSSCharsetRule,
    0,
    3, methods_DOM_CSSCharsetRule,
    0, 0,
    0, 0,
    init_DOM_CSSCharsetRule,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_CSSCharsetRule,
    release_DOM_CSSCharsetRule,
    cast_DOM_CSSCharsetRule,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_DOM_CSSCharsetRule,
    0,
    0,
    0
};

#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/css_rule.sip"
#include <css_rule.h>
#line 2153 "sipkhtmlpart7.cpp"

#line 81 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/css_stylesheet.sip"
#include <css_stylesheet.h>
#line 2157 "sipkhtmlpart7.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 2160 "sipkhtmlpart7.cpp"


class sipDOM_CSSRule : public DOM::CSSRule
{
public:
    sipDOM_CSSRule();
    sipDOM_CSSRule(const DOM::CSSRule&);
    ~sipDOM_CSSRule();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    void sipProtect_assignOther(const DOM::CSSRule&,DOM::CSSRule::RuleType);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipDOM_CSSRule(const sipDOM_CSSRule &);
    sipDOM_CSSRule &operator = (const sipDOM_CSSRule &);
};

sipDOM_CSSRule::sipDOM_CSSRule(): DOM::CSSRule(), sipPySelf(0)
{
}

sipDOM_CSSRule::sipDOM_CSSRule(const DOM::CSSRule& a0): DOM::CSSRule(a0), sipPySelf(0)
{
}

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

void sipDOM_CSSRule::sipProtect_assignOther(const DOM::CSSRule& a0,DOM::CSSRule::RuleType a1)
{
    DOM::CSSRule::assignOther(a0,a1);
}


extern "C" {static PyObject *meth_DOM_CSSRule_type(PyObject *, PyObject *);}
static PyObject *meth_DOM_CSSRule_type(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::CSSRule *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->type();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_DOM_CSSRule_cssText(PyObject *, PyObject *);}
static PyObject *meth_DOM_CSSRule_cssText(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::CSSRule *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_CSSRule,sipName_cssText);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_CSSRule_setCssText(PyObject *, PyObject *);}
static PyObject *meth_DOM_CSSRule_setCssText(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_CSSRule,sipName_setCssText);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_CSSRule_parentStyleSheet(PyObject *, PyObject *);}
static PyObject *meth_DOM_CSSRule_parentStyleSheet(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::CSSRule *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_CSSRule,sipName_parentStyleSheet);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_CSSRule_parentRule(PyObject *, PyObject *);}
static PyObject *meth_DOM_CSSRule_parentRule(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::CSSRule *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_CSSRule,sipName_parentRule);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_CSSRule_isNull(PyObject *, PyObject *);}
static PyObject *meth_DOM_CSSRule_isNull(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::CSSRule *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_CSSRule,sipName_isNull);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_CSSRule_assignOther(PyObject *, PyObject *);}
static PyObject *meth_DOM_CSSRule_assignOther(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9E",&sipSelf,sipType_DOM_CSSRule,&sipCpp,sipType_DOM_CSSRule,&a0,sipType_DOM_CSSRule_RuleType,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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(sipArgsParsed,sipName_CSSRule,sipName_assignOther);

    return NULL;
}


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

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipDOM_CSSRule *>(sipCppV);
    else
        delete reinterpret_cast<DOM::CSSRule *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void dealloc_DOM_CSSRule(sipSimpleWrapper *);}
static void dealloc_DOM_CSSRule(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipDOM_CSSRule *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_CSSRule(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_DOM_CSSRule(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_DOM_CSSRule(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    sipDOM_CSSRule *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipDOM_CSSRule();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::CSSRule * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_CSSRule,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipDOM_CSSRule(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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, DOM::CSSRule::CHARSET_RULE, 14},
    {sipName_FONT_FACE_RULE, DOM::CSSRule::FONT_FACE_RULE, 14},
    {sipName_IMPORT_RULE, DOM::CSSRule::IMPORT_RULE, 14},
    {sipName_MEDIA_RULE, DOM::CSSRule::MEDIA_RULE, 14},
    {sipName_PAGE_RULE, DOM::CSSRule::PAGE_RULE, 14},
    {sipName_QUIRKS_RULE, DOM::CSSRule::QUIRKS_RULE, 14},
    {sipName_STYLE_RULE, DOM::CSSRule::STYLE_RULE, 14},
    {sipName_UNKNOWN_RULE, DOM::CSSRule::UNKNOWN_RULE, 14},
};


pyqt4ClassTypeDef pyqt4Type_khtml_DOM_CSSRule = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__CSSRule,
        {0}
    },
    sipNameNr_CSSRule,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 255, 0},
    0,
    0,
    7, methods_DOM_CSSRule,
    8, enummembers_DOM_CSSRule,
    0, 0,
    init_DOM_CSSRule,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_CSSRule,
    release_DOM_CSSRule,
    cast_DOM_CSSRule,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_DOM_CSSRule,
    0,
    0,
    0
};


#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 2543 "sipkhtmlpart7.cpp"


extern "C" {static PyObject *meth_DOM_strcasecmp(PyObject *,PyObject *);}
static PyObject *meth_DOM_strcasecmp(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,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(&sipArgsParsed,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(sipArgsParsed,sipName_strcasecmp);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_strcmp(PyObject *,PyObject *);}
static PyObject *meth_DOM_strcmp(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_strcmp);

    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 pyqt4Type_khtml_DOM = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_DOM,
        {0}
    },
    sipNameNr_DOM,
    -1,
    -1,
    {0, 0, 1},
    0,
    0,
    2, methods_DOM,
    0, 0,
    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,
    0
},
    0,
    0,
    0,
    0
};
