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

#include "sipAPIkutils.h"

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kutils/kemoticonstheme.sip"
#include <kemoticonstheme.h>
#line 12 "sipkutilspart1.cpp"

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kutils/kemoticonstheme.sip"
#include <kemoticonstheme.h>
#line 16 "sipkutilspart1.cpp"


extern "C" {static int slot_KEmoticonsTheme_ParseMode___bool__(PyObject *sipSelf);}
static int slot_KEmoticonsTheme_ParseMode___bool__(PyObject *sipSelf)
{
    KEmoticonsTheme::ParseMode *sipCpp = reinterpret_cast<KEmoticonsTheme::ParseMode *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KEmoticonsTheme_ParseMode));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 271 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 34 "sipkutilspart1.cpp"

            return sipRes;
        }
    }
}


extern "C" {static PyObject *slot_KEmoticonsTheme_ParseMode___ne__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KEmoticonsTheme_ParseMode___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KEmoticonsTheme::ParseMode *sipCpp = reinterpret_cast<KEmoticonsTheme::ParseMode *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KEmoticonsTheme_ParseMode));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const KEmoticonsTheme::ParseMode * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_KEmoticonsTheme_ParseMode,&a0,&a0State))
        {
            bool sipRes = 0;

#line 266 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 62 "sipkutilspart1.cpp"

            sipReleaseType(const_cast<KEmoticonsTheme::ParseMode *>(a0),sipType_KEmoticonsTheme_ParseMode,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_kutils,ne_slot,sipType_KEmoticonsTheme_ParseMode,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KEmoticonsTheme_ParseMode___eq__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KEmoticonsTheme_ParseMode___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KEmoticonsTheme::ParseMode *sipCpp = reinterpret_cast<KEmoticonsTheme::ParseMode *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KEmoticonsTheme_ParseMode));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const KEmoticonsTheme::ParseMode * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_KEmoticonsTheme_ParseMode,&a0,&a0State))
        {
            bool sipRes = 0;

#line 261 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 94 "sipkutilspart1.cpp"

            sipReleaseType(const_cast<KEmoticonsTheme::ParseMode *>(a0),sipType_KEmoticonsTheme_ParseMode,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_kutils,eq_slot,sipType_KEmoticonsTheme_ParseMode,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KEmoticonsTheme_ParseMode___invert__(PyObject *sipSelf);}
static PyObject *slot_KEmoticonsTheme_ParseMode___invert__(PyObject *sipSelf)
{
    KEmoticonsTheme::ParseMode *sipCpp = reinterpret_cast<KEmoticonsTheme::ParseMode *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KEmoticonsTheme_ParseMode));

    if (!sipCpp)
        return 0;


    {
        {
            KEmoticonsTheme::ParseMode *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KEmoticonsTheme::ParseMode(~(*sipCpp));
            Py_END_ALLOW_THREADS

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


extern "C" {static PyObject *slot_KEmoticonsTheme_ParseMode___and__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_KEmoticonsTheme_ParseMode___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

    {
        KEmoticonsTheme::ParseMode * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipArgsParsed,sipArg0,sipArg1,"J1i",sipType_KEmoticonsTheme_ParseMode,&a0,&a0State,&a1))
        {
            KEmoticonsTheme::ParseMode *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KEmoticonsTheme::ParseMode((*a0 & a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KEmoticonsTheme_ParseMode,a0State);

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

    return sipPySlotExtend(&sipModuleAPI_kutils,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_KEmoticonsTheme_ParseMode___xor__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_KEmoticonsTheme_ParseMode___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

    {
        KEmoticonsTheme::ParseMode * a0;
        int a0State = 0;
        KEmoticonsTheme::ParseMode * a1;
        int a1State = 0;

        if (sipParsePair(&sipArgsParsed,sipArg0,sipArg1,"J1J1",sipType_KEmoticonsTheme_ParseMode,&a0,&a0State,sipType_KEmoticonsTheme_ParseMode,&a1,&a1State))
        {
            KEmoticonsTheme::ParseMode *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KEmoticonsTheme::ParseMode((*a0 ^ *a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KEmoticonsTheme_ParseMode,a0State);
            sipReleaseType(a1,sipType_KEmoticonsTheme_ParseMode,a1State);

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

    return sipPySlotExtend(&sipModuleAPI_kutils,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_KEmoticonsTheme_ParseMode___or__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_KEmoticonsTheme_ParseMode___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

    {
        KEmoticonsTheme::ParseMode * a0;
        int a0State = 0;
        KEmoticonsTheme::ParseMode * a1;
        int a1State = 0;

        if (sipParsePair(&sipArgsParsed,sipArg0,sipArg1,"J1J1",sipType_KEmoticonsTheme_ParseMode,&a0,&a0State,sipType_KEmoticonsTheme_ParseMode,&a1,&a1State))
        {
            KEmoticonsTheme::ParseMode *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KEmoticonsTheme::ParseMode((*a0 | *a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KEmoticonsTheme_ParseMode,a0State);
            sipReleaseType(a1,sipType_KEmoticonsTheme_ParseMode,a1State);

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

    return sipPySlotExtend(&sipModuleAPI_kutils,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_KEmoticonsTheme_ParseMode___int__(PyObject *sipSelf);}
static PyObject *slot_KEmoticonsTheme_ParseMode___int__(PyObject *sipSelf)
{
    KEmoticonsTheme::ParseMode *sipCpp = reinterpret_cast<KEmoticonsTheme::ParseMode *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KEmoticonsTheme_ParseMode));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }
}


extern "C" {static PyObject *slot_KEmoticonsTheme_ParseMode___ixor__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KEmoticonsTheme_ParseMode___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KEmoticonsTheme_ParseMode)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KEmoticonsTheme::ParseMode *sipCpp = reinterpret_cast<KEmoticonsTheme::ParseMode *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KEmoticonsTheme_ParseMode));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        KEmoticonsTheme::ParseMode * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_KEmoticonsTheme_ParseMode,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KEmoticonsTheme::ParseMode::operator^=(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KEmoticonsTheme_ParseMode,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_KEmoticonsTheme_ParseMode___ior__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KEmoticonsTheme_ParseMode___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KEmoticonsTheme_ParseMode)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KEmoticonsTheme::ParseMode *sipCpp = reinterpret_cast<KEmoticonsTheme::ParseMode *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KEmoticonsTheme_ParseMode));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        KEmoticonsTheme::ParseMode * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_KEmoticonsTheme_ParseMode,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KEmoticonsTheme::ParseMode::operator|=(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KEmoticonsTheme_ParseMode,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_KEmoticonsTheme_ParseMode___iand__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KEmoticonsTheme_ParseMode___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KEmoticonsTheme_ParseMode)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KEmoticonsTheme::ParseMode *sipCpp = reinterpret_cast<KEmoticonsTheme::ParseMode *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KEmoticonsTheme_ParseMode));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        int a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1i",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KEmoticonsTheme::ParseMode::operator&=(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    return NULL;
}


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

    delete reinterpret_cast<KEmoticonsTheme::ParseMode *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KEmoticonsTheme_ParseMode(void *, const void*);}
static void assign_KEmoticonsTheme_ParseMode(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<KEmoticonsTheme::ParseMode *>(sipDst) = *reinterpret_cast<const KEmoticonsTheme::ParseMode *>(sipSrc);
}


extern "C" {static void dealloc_KEmoticonsTheme_ParseMode(sipSimpleWrapper *);}
static void dealloc_KEmoticonsTheme_ParseMode(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KEmoticonsTheme_ParseMode(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_KEmoticonsTheme_ParseMode(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KEmoticonsTheme_ParseMode(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    KEmoticonsTheme::ParseMode *sipCpp = 0;

    if (!sipCpp)
    {
        const KEmoticonsTheme::ParseMode * a0;
        int a0State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1",sipType_KEmoticonsTheme_ParseMode,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KEmoticonsTheme::ParseMode(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<KEmoticonsTheme::ParseMode *>(a0),sipType_KEmoticonsTheme_ParseMode,a0State);
        }
    }

    if (!sipCpp)
    {
        int a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"i",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KEmoticonsTheme::ParseMode(a0);
            Py_END_ALLOW_THREADS
        }
    }

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

    return sipCpp;
}


extern "C" {static int convertTo_KEmoticonsTheme_ParseMode(PyObject *, void **, int *, PyObject *);}
static int convertTo_KEmoticonsTheme_ParseMode(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    KEmoticonsTheme::ParseMode **sipCppPtr = reinterpret_cast<KEmoticonsTheme::ParseMode **>(sipCppPtrV);

#line 276 "/usr/local/share/py-sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a KEmoticonsTheme::ParseMode is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KEmoticonsTheme_ParseModeEnum)) ||
            sipCanConvertToType(sipPy, sipType_KEmoticonsTheme_ParseMode, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KEmoticonsTheme_ParseModeEnum)))
{
    *sipCppPtr = new KEmoticonsTheme::ParseMode(SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<KEmoticonsTheme::ParseMode *>(sipConvertToType(sipPy, sipType_KEmoticonsTheme_ParseMode, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 465 "sipkutilspart1.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KEmoticonsTheme_ParseMode[] = {
    {(void *)slot_KEmoticonsTheme_ParseMode___bool__, bool_slot},
    {(void *)slot_KEmoticonsTheme_ParseMode___ne__, ne_slot},
    {(void *)slot_KEmoticonsTheme_ParseMode___eq__, eq_slot},
    {(void *)slot_KEmoticonsTheme_ParseMode___invert__, invert_slot},
    {(void *)slot_KEmoticonsTheme_ParseMode___and__, and_slot},
    {(void *)slot_KEmoticonsTheme_ParseMode___xor__, xor_slot},
    {(void *)slot_KEmoticonsTheme_ParseMode___or__, or_slot},
    {(void *)slot_KEmoticonsTheme_ParseMode___int__, int_slot},
    {(void *)slot_KEmoticonsTheme_ParseMode___ixor__, ixor_slot},
    {(void *)slot_KEmoticonsTheme_ParseMode___ior__, ior_slot},
    {(void *)slot_KEmoticonsTheme_ParseMode___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef pyqt4Type_kutils_KEmoticonsTheme_ParseMode = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KEmoticonsTheme__ParseMode,
        {0}
    },
    sipNameNr_ParseMode,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {9, 255, 0},
    0,
    slots_KEmoticonsTheme_ParseMode,
    0, 0,
    0, 0,
    0, 0,
    init_KEmoticonsTheme_ParseMode,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KEmoticonsTheme_ParseMode,
    release_KEmoticonsTheme_ParseMode,
    cast_KEmoticonsTheme_ParseMode,
    convertTo_KEmoticonsTheme_ParseMode,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_KEmoticonsTheme_ParseMode,
    0,
    1,
    0
};

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kutils/kemoticonstheme.sip"
#include <kemoticonstheme.h>
#line 533 "sipkutilspart1.cpp"

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kutils/kemoticonsprovider.sip"
#include <kemoticonsprovider.h>
#line 537 "sipkutilspart1.cpp"
#line 370 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <qhash.h>
#line 43 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 43 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 43 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 43 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 548 "sipkutilspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 551 "sipkutilspart1.cpp"
#line 136 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcoreconfigskeleton.sip"
#include <kcoreconfigskeleton.h>
#line 554 "sipkutilspart1.cpp"
#line 83 "/usr/local/share/py-sip/QtCore/qchar.sip"
#include <qchar.h>
#line 557 "sipkutilspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 560 "sipkutilspart1.cpp"
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 565 "sipkutilspart1.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kutils/kemoticonstheme.sip"
#include <kemoticonstheme.h>
#line 568 "sipkutilspart1.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kutils/kemoticonstheme.sip"
#include <kemoticonstheme.h>
#line 571 "sipkutilspart1.cpp"


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

    {
        const QString * a0;
        int a0State = 0;
        KEmoticonsTheme::ParseMode a1def = KEmoticonsTheme::DefaultParse;
        KEmoticonsTheme::ParseMode * a1 = &a1def;
        int a1State = 0;
        const QStringList& a2def = QStringList();
        const QStringList * a2 = &a2def;
        int a2State = 0;
        KEmoticonsTheme *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1|J1J1",&sipSelf,sipType_KEmoticonsTheme,&sipCpp,sipType_QString,&a0,&a0State,sipType_KEmoticonsTheme_ParseMode,&a1,&a1State,sipType_QStringList,&a2,&a2State))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->parseEmoticons(*a0,*a1,*a2));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a1,sipType_KEmoticonsTheme_ParseMode,a1State);
            sipReleaseType(const_cast<QStringList *>(a2),sipType_QStringList,a2State);

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        KEmoticonsTheme::ParseMode a1def = KEmoticonsTheme::DefaultParse;
        KEmoticonsTheme::ParseMode * a1 = &a1def;
        int a1State = 0;
        KEmoticonsTheme *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1|J1",&sipSelf,sipType_KEmoticonsTheme,&sipCpp,sipType_QString,&a0,&a0State,sipType_KEmoticonsTheme_ParseMode,&a1,&a1State))
        {
            QList<KEmoticonsTheme::Token> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KEmoticonsTheme::Token>(sipCpp->tokenize(*a0,*a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a1,sipType_KEmoticonsTheme_ParseMode,a1State);

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0200KEmoticonsTheme_Token,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        KEmoticonsTheme *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KEmoticonsTheme,&sipCpp,sipType_QString,&a0,&a0State))
        {
            bool sipRes;

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

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        KEmoticonsTheme *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KEmoticonsTheme,&sipCpp,sipType_QString,&a0,&a0State))
        {
            bool sipRes;

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

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;
        KEmoticonsProvider::AddEmoticonOption a2 = KEmoticonsProvider::DoNotCopy;
        KEmoticonsTheme *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1J1|E",&sipSelf,sipType_KEmoticonsTheme,&sipCpp,sipType_QString,&a0,&a0State,sipType_QString,&a1,&a1State,sipType_KEmoticonsProvider_AddEmoticonOption,&a2))
        {
            bool sipRes;

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

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KEmoticonsTheme *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KEmoticonsTheme,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->save();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KEmoticonsTheme *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KEmoticonsTheme,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->themeName());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        KEmoticonsTheme *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KEmoticonsTheme,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setThemeName(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KEmoticonsTheme *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KEmoticonsTheme,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->themePath());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KEmoticonsTheme *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KEmoticonsTheme,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->fileName());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KEmoticonsTheme *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KEmoticonsTheme,&sipCpp))
        {
            QHash<QString,QStringList> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QHash<QString,QStringList>(sipCpp->emoticonsMap());
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QHash_0200QString_0200QStringList,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        KEmoticonsTheme *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KEmoticonsTheme,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->createNew();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KEmoticonsTheme *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KEmoticonsTheme,&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_KEmoticonsTheme,sipName_isNull);

    return NULL;
}


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

    return NULL;
}


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

    delete reinterpret_cast<KEmoticonsTheme *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KEmoticonsTheme(void *, const void*);}
static void assign_KEmoticonsTheme(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<KEmoticonsTheme *>(sipDst) = *reinterpret_cast<const KEmoticonsTheme *>(sipSrc);
}


extern "C" {static void dealloc_KEmoticonsTheme(sipSimpleWrapper *);}
static void dealloc_KEmoticonsTheme(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KEmoticonsTheme(sipSelf->u.cppPtr,0);
    }
}


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

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

    if (!sipCpp)
    {
        const KEmoticonsTheme * a0;

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

    if (!sipCpp)
    {
        KEmoticonsProvider * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J8",sipType_KEmoticonsProvider,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KEmoticonsTheme(a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


static PyMethodDef methods_KEmoticonsTheme[] = {
    {SIP_MLNAME_CAST(sipName_addEmoticon), meth_KEmoticonsTheme_addEmoticon, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createNew), meth_KEmoticonsTheme_createNew, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emoticonsMap), meth_KEmoticonsTheme_emoticonsMap, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fileName), meth_KEmoticonsTheme_fileName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isNull), meth_KEmoticonsTheme_isNull, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_loadTheme), meth_KEmoticonsTheme_loadTheme, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parseEmoticons), meth_KEmoticonsTheme_parseEmoticons, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeEmoticon), meth_KEmoticonsTheme_removeEmoticon, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_save), meth_KEmoticonsTheme_save, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setThemeName), meth_KEmoticonsTheme_setThemeName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_themeName), meth_KEmoticonsTheme_themeName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_themePath), meth_KEmoticonsTheme_themePath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_tokenize), meth_KEmoticonsTheme_tokenize, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KEmoticonsTheme[] = {
    {sipName_DefaultParse, KEmoticonsTheme::DefaultParse, 11},
    {sipName_Image, KEmoticonsTheme::Image, 13},
    {sipName_RelaxedParse, KEmoticonsTheme::RelaxedParse, 11},
    {sipName_SkipHTML, KEmoticonsTheme::SkipHTML, 11},
    {sipName_StrictParse, KEmoticonsTheme::StrictParse, 11},
    {sipName_Text, KEmoticonsTheme::Text, 13},
    {sipName_Undefined, KEmoticonsTheme::Undefined, 13},
};


pyqt4ClassTypeDef pyqt4Type_kutils_KEmoticonsTheme = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KEmoticonsTheme,
        {0}
    },
    sipNameNr_KEmoticonsTheme,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 0, 1},
    0,
    0,
    13, methods_KEmoticonsTheme,
    7, enummembers_KEmoticonsTheme,
    0, 0,
    init_KEmoticonsTheme,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KEmoticonsTheme,
    release_KEmoticonsTheme,
    cast_KEmoticonsTheme,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_KEmoticonsTheme,
    0,
    0,
    0
};

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kutils/kemoticons.sip"
#include <kemoticons.h>
#line 1125 "sipkutilspart1.cpp"

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kutils/kemoticonstheme.sip"
#include <kemoticonstheme.h>
#line 1129 "sipkutilspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 1132 "sipkutilspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1135 "sipkutilspart1.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kutils/kemoticonstheme.sip"
#include <kemoticonstheme.h>
#line 1138 "sipkutilspart1.cpp"
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 1153 "sipkutilspart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klockfile.sip"
#include <klockfile.h>
#line 1156 "sipkutilspart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetype.sip"
#include <kmimetype.h>
#line 1159 "sipkutilspart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 1162 "sipkutilspart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicegroup.sip"
#include <kservicegroup.h>
#line 1165 "sipkutilspart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <kservicetype.h>
#line 1168 "sipkutilspart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 1171 "sipkutilspart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <ksycocaentry.h>
#line 1174 "sipkutilspart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1177 "sipkutilspart1.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1180 "sipkutilspart1.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1183 "sipkutilspart1.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 1186 "sipkutilspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1189 "sipkutilspart1.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 1220 "sipkutilspart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 1223 "sipkutilspart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 1226 "sipkutilspart1.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1229 "sipkutilspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 1232 "sipkutilspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 1235 "sipkutilspart1.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1238 "sipkutilspart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 1241 "sipkutilspart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1244 "sipkutilspart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1247 "sipkutilspart1.cpp"


class sipKEmoticons : public KEmoticons
{
public:
    sipKEmoticons();
    virtual ~sipKEmoticons();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool event(QEvent *);
    bool eventFilter(QObject *,QEvent *);
    void timerEvent(QTimerEvent *);
    void childEvent(QChildEvent *);
    void customEvent(QEvent *);
    void connectNotify(const char *);
    void disconnectNotify(const char *);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[7];
};

sipKEmoticons::sipKEmoticons(): KEmoticons(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKEmoticons::metaObject() const
{
    return sip_kutils_qt_metaobject(sipPySelf,sipType_KEmoticons);
}

int sipKEmoticons::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = KEmoticons::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_kutils_qt_metacall(sipPySelf,sipType_KEmoticons,_c,_id,_a);

    return _id;
}

void *sipKEmoticons::qt_metacast(const char *_clname)
{
    return (sip_kutils_qt_metacast && sip_kutils_qt_metacast(sipPySelf,sipType_KEmoticons,_clname)) ? this : KEmoticons::qt_metacast(_clname);
}

bool sipKEmoticons::event(QEvent *a0)
{
    typedef bool (*sipVH_QtCore_13)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_event);

    if (!meth)
        return QObject::event(a0);

    return ((sipVH_QtCore_13)(sipModuleAPI_kutils_QtCore->em_virthandlers[13]))(sipGILState,meth,a0);
}

bool sipKEmoticons::eventFilter(QObject *a0,QEvent *a1)
{
    typedef bool (*sipVH_QtCore_21)(sip_gilstate_t,PyObject *,QObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_eventFilter);

    if (!meth)
        return QObject::eventFilter(a0,a1);

    return ((sipVH_QtCore_21)(sipModuleAPI_kutils_QtCore->em_virthandlers[21]))(sipGILState,meth,a0,a1);
}

void sipKEmoticons::timerEvent(QTimerEvent *a0)
{
    typedef void (*sipVH_QtCore_3)(sip_gilstate_t,PyObject *,QTimerEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_timerEvent);

    if (!meth)
    {
        QObject::timerEvent(a0);
        return;
    }

    ((sipVH_QtCore_3)(sipModuleAPI_kutils_QtCore->em_virthandlers[3]))(sipGILState,meth,a0);
}

void sipKEmoticons::childEvent(QChildEvent *a0)
{
    typedef void (*sipVH_QtCore_20)(sip_gilstate_t,PyObject *,QChildEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!meth)
    {
        QObject::childEvent(a0);
        return;
    }

    ((sipVH_QtCore_20)(sipModuleAPI_kutils_QtCore->em_virthandlers[20]))(sipGILState,meth,a0);
}

void sipKEmoticons::customEvent(QEvent *a0)
{
    typedef void (*sipVH_QtCore_19)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_customEvent);

    if (!meth)
    {
        QObject::customEvent(a0);
        return;
    }

    ((sipVH_QtCore_19)(sipModuleAPI_kutils_QtCore->em_virthandlers[19]))(sipGILState,meth,a0);
}

void sipKEmoticons::connectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_connectNotify);

    if (!meth)
    {
        QObject::connectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_kutils_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

void sipKEmoticons::disconnectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_disconnectNotify);

    if (!meth)
    {
        QObject::disconnectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_kutils_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

int sipKEmoticons::sipProtect_receivers(const char *a0) const
{
    return QObject::receivers(a0);
}

void sipKEmoticons::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent *a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipKEmoticons::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent *a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipKEmoticons::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipKEmoticons::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipKEmoticons::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}


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

    {
        char * a0;
        sipKEmoticons *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KEmoticons,&sipCpp,&a0))
        {
            int sipRes = 0;

#line 462 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
#line 1500 "sipkutilspart1.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KEmoticons_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_KEmoticons_timerEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipKEmoticons *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KEmoticons,&sipCpp,sipType_QTimerEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,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_KEmoticons,sipName_timerEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KEmoticons_childEvent(PyObject *, PyObject *);}
static PyObject *meth_KEmoticons_childEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipKEmoticons *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KEmoticons,&sipCpp,sipType_QChildEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,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_KEmoticons,sipName_childEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KEmoticons_customEvent(PyObject *, PyObject *);}
static PyObject *meth_KEmoticons_customEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipKEmoticons *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KEmoticons,&sipCpp,sipType_QEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,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_KEmoticons,sipName_customEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KEmoticons_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_KEmoticons_connectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKEmoticons *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KEmoticons,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,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_KEmoticons,sipName_connectNotify);

    return NULL;
}


extern "C" {static PyObject *meth_KEmoticons_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_KEmoticons_disconnectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKEmoticons *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KEmoticons,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,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_KEmoticons,sipName_disconnectNotify);

    return NULL;
}


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

    {
        KEmoticons *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KEmoticons,&sipCpp))
        {
            KEmoticonsTheme *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KEmoticonsTheme(sipCpp->theme());
            Py_END_ALLOW_THREADS

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

    {
        const QString * a0;
        int a0State = 0;
        KEmoticons *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KEmoticons,&sipCpp,sipType_QString,&a0,&a0State))
        {
            KEmoticonsTheme *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KEmoticonsTheme(sipCpp->theme(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KEmoticons::currentThemeName());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(KEmoticons::themeList());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KEmoticonsTheme * a0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J9",sipType_KEmoticonsTheme,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            KEmoticons::setTheme(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            KEmoticons::setTheme(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const KService::Ptr * a1;
        int a1State = 0;
        KEmoticons *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1J1",&sipSelf,sipType_KEmoticons,&sipCpp,sipType_QString,&a0,&a0State,sipType_KSharedPtr_0200KService,&a1,&a1State))
        {
            KEmoticonsTheme *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KEmoticonsTheme(sipCpp->newTheme(*a0,*a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<KService::Ptr *>(a1),sipType_KSharedPtr_0200KService,a1State);

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        KEmoticons *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KEmoticons,&sipCpp,sipType_QString,&a0,&a0State))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->installTheme(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        KEmoticonsTheme::ParseMode * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_KEmoticonsTheme_ParseMode,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            KEmoticons::setParseMode(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KEmoticonsTheme_ParseMode,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            KEmoticonsTheme::ParseMode *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KEmoticonsTheme::ParseMode(KEmoticons::parseMode());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    if (targetType == sipType_KEmoticons)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(KEmoticons *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKEmoticons *>(sipCppV);
    else
        delete reinterpret_cast<KEmoticons *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

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

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_KEmoticons[] = {{111, 0, 1}};


static PyMethodDef methods_KEmoticons[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KEmoticons_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KEmoticons_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentThemeName), meth_KEmoticons_currentThemeName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KEmoticons_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KEmoticons_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_installTheme), meth_KEmoticons_installTheme, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_newTheme), meth_KEmoticons_newTheme, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parseMode), meth_KEmoticons_parseMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KEmoticons_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setParseMode), meth_KEmoticons_setParseMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTheme), meth_KEmoticons_setTheme, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_theme), meth_KEmoticons_theme, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_themeList), meth_KEmoticons_themeList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KEmoticons_timerEvent, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_kutils_KEmoticons = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KEmoticons,
        {0}
    },
    sipNameNr_KEmoticons,
    -1,
    -1,
    {0, 0, 1},
    supers_KEmoticons,
    0,
    14, methods_KEmoticons,
    0, 0,
    0, 0,
    init_KEmoticons,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KEmoticons,
    release_KEmoticons,
    cast_KEmoticons,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &KEmoticons::staticMetaObject,
    0,
    0
};
