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

#include "sipAPIkutils.h"

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kutils/kemoticonstheme.sip"
#include <kemoticonstheme.h>
#line 12 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kutils/sipkutilspart3.cpp"

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kutils/kemoticonsprovider.sip"
#include <kemoticonsprovider.h>
#line 16 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kutils/sipkutilspart3.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qhash.sip"
#include <qhash.h>
#line 19 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kutils/sipkutilspart3.cpp"
#line 72 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 22 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kutils/sipkutilspart3.cpp"
#line 51 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kutils/sipkutilspart3.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kutils/sipkutilspart3.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 31 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kutils/sipkutilspart3.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 34 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kutils/sipkutilspart3.cpp"
#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kutils/kemoticonstheme.sip"
#include <kemoticonstheme.h>
#line 37 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kutils/sipkutilspart3.cpp"
#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kutils/kemoticonstheme.sip"
#include <kemoticonstheme.h>
#line 40 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kutils/sipkutilspart3.cpp"


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

    {
        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;
        const KEmoticonsTheme *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KEmoticonsTheme, sipName_parseEmoticons, NULL);

    return NULL;
}


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

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KEmoticonsTheme, sipName_loadTheme, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KEmoticonsTheme, sipName_removeEmoticon, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KEmoticonsTheme, sipName_addEmoticon, NULL);

    return NULL;
}


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

    {
        KEmoticonsTheme *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KEmoticonsTheme, sipName_save, NULL);

    return NULL;
}


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

    {
        const KEmoticonsTheme *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KEmoticonsTheme, sipName_themeName, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KEmoticonsTheme, sipName_setThemeName, NULL);

    return NULL;
}


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

    {
        const KEmoticonsTheme *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KEmoticonsTheme, sipName_themePath, NULL);

    return NULL;
}


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

    {
        const KEmoticonsTheme *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KEmoticonsTheme, sipName_fileName, NULL);

    return NULL;
}


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

    {
        const KEmoticonsTheme *sipCpp;

        if (sipParseArgs(&sipParseErr, 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

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

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

    return NULL;
}


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

    {
        KEmoticonsTheme *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KEmoticonsTheme, sipName_createNew, NULL);

    return NULL;
}


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

    {
        const KEmoticonsTheme *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_KEmoticonsTheme, sipName_isNull, NULL);

    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 *, SIP_SSIZE_T, const void *);}
static void assign_KEmoticonsTheme(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KEmoticonsTheme *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KEmoticonsTheme *>(sipSrc);
}


extern "C" {static void *array_KEmoticonsTheme(SIP_SSIZE_T);}
static void *array_KEmoticonsTheme(SIP_SSIZE_T sipNrElem)
{
    return new KEmoticonsTheme[sipNrElem];
}


extern "C" {static void *copy_KEmoticonsTheme(const void *, SIP_SSIZE_T);}
static void *copy_KEmoticonsTheme(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new KEmoticonsTheme(reinterpret_cast<const KEmoticonsTheme *>(sipSrc)[sipSrcIdx]);
}


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


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

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

            return sipCpp;
        }
    }

    {
        const KEmoticonsTheme* a0;

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

            return sipCpp;
        }
    }

    {
        KEmoticonsProvider* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8", sipType_KEmoticonsProvider, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KEmoticonsTheme(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


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, static_cast<int>(KEmoticonsTheme::DefaultParse), 11},
    {sipName_Image, static_cast<int>(KEmoticonsTheme::Image), 13},
    {sipName_RelaxedParse, static_cast<int>(KEmoticonsTheme::RelaxedParse), 11},
    {sipName_SkipHTML, static_cast<int>(KEmoticonsTheme::SkipHTML), 11},
    {sipName_StrictParse, static_cast<int>(KEmoticonsTheme::StrictParse), 11},
    {sipName_Text, static_cast<int>(KEmoticonsTheme::Text), 13},
    {sipName_Undefined, static_cast<int>(KEmoticonsTheme::Undefined), 13},
};


pyqt4ClassTypeDef sipTypeDef_kutils_KEmoticonsTheme = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KEmoticonsTheme,
        {0}
    },
    {
        sipNameNr_KEmoticonsTheme,
        {0, 0, 1},
        13, methods_KEmoticonsTheme,
        7, enummembers_KEmoticonsTheme,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KEmoticonsTheme,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KEmoticonsTheme,
    assign_KEmoticonsTheme,
    array_KEmoticonsTheme,
    copy_KEmoticonsTheme,
    release_KEmoticonsTheme,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kutils/kemoticonsprovider.sip"
#include <kemoticonsprovider.h>
#line 596 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kutils/sipkutilspart3.cpp"

#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 600 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kutils/sipkutilspart3.cpp"


extern "C" {static PyObject *slot_KEmoticonsProvider_Emoticon___ge__(PyObject *,PyObject *);}
static PyObject *slot_KEmoticonsProvider_Emoticon___ge__(PyObject *sipSelf,PyObject *sipArg)
{
    KEmoticonsProvider::Emoticon *sipCpp = reinterpret_cast<KEmoticonsProvider::Emoticon *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KEmoticonsProvider_Emoticon));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KEmoticonsProvider::Emoticon* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_KEmoticonsProvider_Emoticon, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = !sipCpp->KEmoticonsProvider::Emoticon::operator<(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kutils,ge_slot,sipType_KEmoticonsProvider_Emoticon,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KEmoticonsProvider_Emoticon___lt__(PyObject *,PyObject *);}
static PyObject *slot_KEmoticonsProvider_Emoticon___lt__(PyObject *sipSelf,PyObject *sipArg)
{
    KEmoticonsProvider::Emoticon *sipCpp = reinterpret_cast<KEmoticonsProvider::Emoticon *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KEmoticonsProvider_Emoticon));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KEmoticonsProvider::Emoticon* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_KEmoticonsProvider_Emoticon, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->KEmoticonsProvider::Emoticon::operator<(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kutils,lt_slot,sipType_KEmoticonsProvider_Emoticon,sipSelf,sipArg);
}


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

    delete reinterpret_cast<KEmoticonsProvider::Emoticon *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_KEmoticonsProvider_Emoticon(SIP_SSIZE_T);}
static void *array_KEmoticonsProvider_Emoticon(SIP_SSIZE_T sipNrElem)
{
    return new KEmoticonsProvider::Emoticon[sipNrElem];
}


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


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


extern "C" {static void *init_type_KEmoticonsProvider_Emoticon(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KEmoticonsProvider_Emoticon(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KEmoticonsProvider::Emoticon *sipCpp = 0;

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

            return sipCpp;
        }
    }

    {
        const KEmoticonsProvider::Emoticon* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KEmoticonsProvider_Emoticon, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KEmoticonsProvider::Emoticon(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KEmoticonsProvider_Emoticon[] = {
    {(void *)slot_KEmoticonsProvider_Emoticon___ge__, ge_slot},
    {(void *)slot_KEmoticonsProvider_Emoticon___lt__, lt_slot},
    {0, (sipPySlotType)0}
};


extern "C" {static PyObject *varget_KEmoticonsProvider_Emoticon_matchText(void *, PyObject *, PyObject *);}
static PyObject *varget_KEmoticonsProvider_Emoticon_matchText(void *sipSelf, PyObject *sipPySelf, PyObject *)
{
    PyObject *sipPy;
    QString*sipVal;
    KEmoticonsProvider::Emoticon *sipCpp = reinterpret_cast<KEmoticonsProvider::Emoticon *>(sipSelf);

    sipPy = sipGetReference(sipPySelf, -4);
    if (sipPy)
        return sipPy;

    sipVal = &sipCpp->matchText;

    sipPy = sipConvertFromType(sipVal, sipType_QString, NULL);
    sipKeepReference(sipPySelf, -4, sipPy);

    return sipPy;
}


extern "C" {static int varset_KEmoticonsProvider_Emoticon_matchText(void *, PyObject *, PyObject *);}
static int varset_KEmoticonsProvider_Emoticon_matchText(void *sipSelf, PyObject *sipPy, PyObject *)
{
    QString*sipVal;
    KEmoticonsProvider::Emoticon *sipCpp = reinterpret_cast<KEmoticonsProvider::Emoticon *>(sipSelf);

    int sipValState;
    int sipIsErr = 0;

    sipVal = reinterpret_cast<QString *>(sipForceConvertToType(sipPy,sipType_QString,NULL,SIP_NOT_NONE,&sipValState,&sipIsErr));

    if (sipIsErr)
        return -1;

    sipCpp->matchText = *sipVal;

    sipReleaseType(sipVal, sipType_QString, sipValState);

    return 0;
}


extern "C" {static PyObject *varget_KEmoticonsProvider_Emoticon_matchTextEscaped(void *, PyObject *, PyObject *);}
static PyObject *varget_KEmoticonsProvider_Emoticon_matchTextEscaped(void *sipSelf, PyObject *sipPySelf, PyObject *)
{
    PyObject *sipPy;
    QString*sipVal;
    KEmoticonsProvider::Emoticon *sipCpp = reinterpret_cast<KEmoticonsProvider::Emoticon *>(sipSelf);

    sipPy = sipGetReference(sipPySelf, -5);
    if (sipPy)
        return sipPy;

    sipVal = &sipCpp->matchTextEscaped;

    sipPy = sipConvertFromType(sipVal, sipType_QString, NULL);
    sipKeepReference(sipPySelf, -5, sipPy);

    return sipPy;
}


extern "C" {static int varset_KEmoticonsProvider_Emoticon_matchTextEscaped(void *, PyObject *, PyObject *);}
static int varset_KEmoticonsProvider_Emoticon_matchTextEscaped(void *sipSelf, PyObject *sipPy, PyObject *)
{
    QString*sipVal;
    KEmoticonsProvider::Emoticon *sipCpp = reinterpret_cast<KEmoticonsProvider::Emoticon *>(sipSelf);

    int sipValState;
    int sipIsErr = 0;

    sipVal = reinterpret_cast<QString *>(sipForceConvertToType(sipPy,sipType_QString,NULL,SIP_NOT_NONE,&sipValState,&sipIsErr));

    if (sipIsErr)
        return -1;

    sipCpp->matchTextEscaped = *sipVal;

    sipReleaseType(sipVal, sipType_QString, sipValState);

    return 0;
}


extern "C" {static PyObject *varget_KEmoticonsProvider_Emoticon_picHTMLCode(void *, PyObject *, PyObject *);}
static PyObject *varget_KEmoticonsProvider_Emoticon_picHTMLCode(void *sipSelf, PyObject *sipPySelf, PyObject *)
{
    PyObject *sipPy;
    QString*sipVal;
    KEmoticonsProvider::Emoticon *sipCpp = reinterpret_cast<KEmoticonsProvider::Emoticon *>(sipSelf);

    sipPy = sipGetReference(sipPySelf, -6);
    if (sipPy)
        return sipPy;

    sipVal = &sipCpp->picHTMLCode;

    sipPy = sipConvertFromType(sipVal, sipType_QString, NULL);
    sipKeepReference(sipPySelf, -6, sipPy);

    return sipPy;
}


extern "C" {static int varset_KEmoticonsProvider_Emoticon_picHTMLCode(void *, PyObject *, PyObject *);}
static int varset_KEmoticonsProvider_Emoticon_picHTMLCode(void *sipSelf, PyObject *sipPy, PyObject *)
{
    QString*sipVal;
    KEmoticonsProvider::Emoticon *sipCpp = reinterpret_cast<KEmoticonsProvider::Emoticon *>(sipSelf);

    int sipValState;
    int sipIsErr = 0;

    sipVal = reinterpret_cast<QString *>(sipForceConvertToType(sipPy,sipType_QString,NULL,SIP_NOT_NONE,&sipValState,&sipIsErr));

    if (sipIsErr)
        return -1;

    sipCpp->picHTMLCode = *sipVal;

    sipReleaseType(sipVal, sipType_QString, sipValState);

    return 0;
}


extern "C" {static PyObject *varget_KEmoticonsProvider_Emoticon_picPath(void *, PyObject *, PyObject *);}
static PyObject *varget_KEmoticonsProvider_Emoticon_picPath(void *sipSelf, PyObject *sipPySelf, PyObject *)
{
    PyObject *sipPy;
    QString*sipVal;
    KEmoticonsProvider::Emoticon *sipCpp = reinterpret_cast<KEmoticonsProvider::Emoticon *>(sipSelf);

    sipPy = sipGetReference(sipPySelf, -7);
    if (sipPy)
        return sipPy;

    sipVal = &sipCpp->picPath;

    sipPy = sipConvertFromType(sipVal, sipType_QString, NULL);
    sipKeepReference(sipPySelf, -7, sipPy);

    return sipPy;
}


extern "C" {static int varset_KEmoticonsProvider_Emoticon_picPath(void *, PyObject *, PyObject *);}
static int varset_KEmoticonsProvider_Emoticon_picPath(void *sipSelf, PyObject *sipPy, PyObject *)
{
    QString*sipVal;
    KEmoticonsProvider::Emoticon *sipCpp = reinterpret_cast<KEmoticonsProvider::Emoticon *>(sipSelf);

    int sipValState;
    int sipIsErr = 0;

    sipVal = reinterpret_cast<QString *>(sipForceConvertToType(sipPy,sipType_QString,NULL,SIP_NOT_NONE,&sipValState,&sipIsErr));

    if (sipIsErr)
        return -1;

    sipCpp->picPath = *sipVal;

    sipReleaseType(sipVal, sipType_QString, sipValState);

    return 0;
}

sipVariableDef variables_KEmoticonsProvider_Emoticon[] = {
    {InstanceVariable, sipName_matchText, (PyMethodDef *)varget_KEmoticonsProvider_Emoticon_matchText, (PyMethodDef *)varset_KEmoticonsProvider_Emoticon_matchText, NULL, NULL},
    {InstanceVariable, sipName_matchTextEscaped, (PyMethodDef *)varget_KEmoticonsProvider_Emoticon_matchTextEscaped, (PyMethodDef *)varset_KEmoticonsProvider_Emoticon_matchTextEscaped, NULL, NULL},
    {InstanceVariable, sipName_picHTMLCode, (PyMethodDef *)varget_KEmoticonsProvider_Emoticon_picHTMLCode, (PyMethodDef *)varset_KEmoticonsProvider_Emoticon_picHTMLCode, NULL, NULL},
    {InstanceVariable, sipName_picPath, (PyMethodDef *)varget_KEmoticonsProvider_Emoticon_picPath, (PyMethodDef *)varset_KEmoticonsProvider_Emoticon_picPath, NULL, NULL},
};


pyqt4ClassTypeDef sipTypeDef_kutils_KEmoticonsProvider_Emoticon = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KEmoticonsProvider__Emoticon,
        {0}
    },
    {
        sipNameNr_Emoticon,
        {6, 255, 0},
        0, 0,
        0, 0,
        4, variables_KEmoticonsProvider_Emoticon,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KEmoticonsProvider_Emoticon,
    init_type_KEmoticonsProvider_Emoticon,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KEmoticonsProvider_Emoticon,
    assign_KEmoticonsProvider_Emoticon,
    array_KEmoticonsProvider_Emoticon,
    copy_KEmoticonsProvider_Emoticon,
    release_KEmoticonsProvider_Emoticon,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kutils/kemoticonsprovider.sip"
#include <kemoticonsprovider.h>
#line 985 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kutils/sipkutilspart3.cpp"

#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 989 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kutils/sipkutilspart3.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 992 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kutils/sipkutilspart3.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 995 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kutils/sipkutilspart3.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qhash.sip"
#include <qhash.h>
#line 998 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kutils/sipkutilspart3.cpp"
#line 72 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 1001 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kutils/sipkutilspart3.cpp"
#line 51 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 1004 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kutils/sipkutilspart3.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1007 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kutils/sipkutilspart3.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1010 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kutils/sipkutilspart3.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1013 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kutils/sipkutilspart3.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1016 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kutils/sipkutilspart3.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1019 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kutils/sipkutilspart3.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1022 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kutils/sipkutilspart3.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1025 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kutils/sipkutilspart3.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1028 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kutils/sipkutilspart3.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 1031 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kutils/sipkutilspart3.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1034 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kutils/sipkutilspart3.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1037 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/kutils/sipkutilspart3.cpp"


class sipKEmoticonsProvider : public KEmoticonsProvider
{
public:
    sipKEmoticonsProvider(QObject*);
    virtual ~sipKEmoticonsProvider();

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    void createNew();
    void save();
    bool addEmoticon(const QString&,const QString&,KEmoticonsProvider::AddEmoticonOption);
    bool removeEmoticon(const QString&);
    bool loadTheme(const QString&);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[12];
};

sipKEmoticonsProvider::sipKEmoticonsProvider(QObject*a0): KEmoticonsProvider(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKEmoticonsProvider::metaObject() const
{
    return sip_kutils_qt_metaobject(sipPySelf,sipType_KEmoticonsProvider);
}

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

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

    return _id;
}

void *sipKEmoticonsProvider::qt_metacast(const char *_clname)
{
    return (sip_kutils_qt_metacast(sipPySelf, sipType_KEmoticonsProvider, _clname)) ? this : KEmoticonsProvider::qt_metacast(_clname);
}

void sipKEmoticonsProvider::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KEmoticonsProvider::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_kutils_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKEmoticonsProvider::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KEmoticonsProvider::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_kutils_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKEmoticonsProvider::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KEmoticonsProvider::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_kutils_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKEmoticonsProvider::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KEmoticonsProvider::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_kutils_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKEmoticonsProvider::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        KEmoticonsProvider::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_kutils_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKEmoticonsProvider::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return KEmoticonsProvider::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_kutils_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKEmoticonsProvider::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return KEmoticonsProvider::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_kutils_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKEmoticonsProvider::createNew()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_createNew);

    if (!sipMeth)
    {
        KEmoticonsProvider::createNew();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kutils_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKEmoticonsProvider::save()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_save);

    if (!sipMeth)
    {
        KEmoticonsProvider::save();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kutils_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKEmoticonsProvider::addEmoticon(const QString& a0,const QString& a1,KEmoticonsProvider::AddEmoticonOption a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_addEmoticon);

    if (!sipMeth)
        return KEmoticonsProvider::addEmoticon(a0,a1,a2);

    extern bool sipVH_kutils_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,const QString&,KEmoticonsProvider::AddEmoticonOption);

    return sipVH_kutils_0(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

bool sipKEmoticonsProvider::removeEmoticon(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_removeEmoticon);

    if (!sipMeth)
        return KEmoticonsProvider::removeEmoticon(a0);

    typedef bool (*sipVH_QtCore_28)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&);

    return ((sipVH_QtCore_28)(sipModuleAPI_kutils_QtCore->em_virthandlers[28]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKEmoticonsProvider::loadTheme(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_loadTheme);

    if (!sipMeth)
        return KEmoticonsProvider::loadTheme(a0);

    typedef bool (*sipVH_QtCore_28)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&);

    return ((sipVH_QtCore_28)(sipModuleAPI_kutils_QtCore->em_virthandlers[28]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KEmoticonsProvider::loadTheme(*a0) : 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(sipParseErr, sipName_KEmoticonsProvider, sipName_loadTheme, NULL);

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KEmoticonsProvider::removeEmoticon(*a0) : 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(sipParseErr, sipName_KEmoticonsProvider, sipName_removeEmoticon, NULL);

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KEmoticonsProvider::addEmoticon(*a0,*a1,a2) : 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(sipParseErr, sipName_KEmoticonsProvider, sipName_addEmoticon, NULL);

    return NULL;
}


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

    {
        KEmoticonsProvider *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KEmoticonsProvider, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KEmoticonsProvider::save() : sipCpp->save());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KEmoticonsProvider *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KEmoticonsProvider, &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(sipParseErr, sipName_KEmoticonsProvider, sipName_themeName, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KEmoticonsProvider, &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(sipParseErr, sipName_KEmoticonsProvider, sipName_setThemeName, NULL);

    return NULL;
}


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

    {
        const KEmoticonsProvider *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KEmoticonsProvider, &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(sipParseErr, sipName_KEmoticonsProvider, sipName_themePath, NULL);

    return NULL;
}


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

    {
        const KEmoticonsProvider *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KEmoticonsProvider, &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(sipParseErr, sipName_KEmoticonsProvider, sipName_fileName, NULL);

    return NULL;
}


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

    {
        const KEmoticonsProvider *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KEmoticonsProvider *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KEmoticonsProvider, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KEmoticonsProvider::createNew() : sipCpp->createNew());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KEmoticonsProvider *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_KEmoticonsProvider, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->clearEmoticonsMap();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QString* a0;
        int a0State = 0;
        QStringList* a1;
        int a1State = 0;
        KEmoticonsProvider *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1J1", &sipSelf, sipType_KEmoticonsProvider, &sipCpp, sipType_QString,&a0, &a0State, sipType_QStringList,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addEmoticonsMap(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QString,a0State);
            sipReleaseType(a1,sipType_QStringList,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QString* a0;
        int a0State = 0;
        KEmoticonsProvider *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1", &sipSelf, sipType_KEmoticonsProvider, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeEmoticonsMap(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        const QStringList* a1;
        int a1State = 0;
        KEmoticonsProvider *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1J1", &sipSelf, sipType_KEmoticonsProvider, &sipCpp, sipType_QString,&a0, &a0State, sipType_QStringList,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addEmoticonIndex(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QStringList *>(a1),sipType_QStringList,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString* a0;
        int a0State = 0;
        const QStringList* a1;
        int a1State = 0;
        KEmoticonsProvider *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1J1", &sipSelf, sipType_KEmoticonsProvider, &sipCpp, sipType_QString,&a0, &a0State, sipType_QStringList,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeEmoticonIndex(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QStringList *>(a1),sipType_QStringList,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KEmoticonsProvider(void *, int);}
static void release_KEmoticonsProvider(void *sipCppV,int)
{
    KEmoticonsProvider *sipCpp = reinterpret_cast<KEmoticonsProvider *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        QObject* a0 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKEmoticonsProvider(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KEmoticonsProvider[] = {{141, 0, 1}};


static PyMethodDef methods_KEmoticonsProvider[] = {
    {SIP_MLNAME_CAST(sipName_addEmoticon), meth_KEmoticonsProvider_addEmoticon, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addEmoticonIndex), meth_KEmoticonsProvider_addEmoticonIndex, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addEmoticonsMap), meth_KEmoticonsProvider_addEmoticonsMap, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearEmoticonsMap), meth_KEmoticonsProvider_clearEmoticonsMap, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createNew), meth_KEmoticonsProvider_createNew, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emoticonsMap), meth_KEmoticonsProvider_emoticonsMap, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fileName), meth_KEmoticonsProvider_fileName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_loadTheme), meth_KEmoticonsProvider_loadTheme, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeEmoticon), meth_KEmoticonsProvider_removeEmoticon, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeEmoticonIndex), meth_KEmoticonsProvider_removeEmoticonIndex, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeEmoticonsMap), meth_KEmoticonsProvider_removeEmoticonsMap, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_save), meth_KEmoticonsProvider_save, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setThemeName), meth_KEmoticonsProvider_setThemeName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_themeName), meth_KEmoticonsProvider_themeName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_themePath), meth_KEmoticonsProvider_themePath, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KEmoticonsProvider[] = {
    {sipName_Copy, static_cast<int>(KEmoticonsProvider::Copy), 7},
    {sipName_DoNotCopy, static_cast<int>(KEmoticonsProvider::DoNotCopy), 7},
};


pyqt4ClassTypeDef sipTypeDef_kutils_KEmoticonsProvider = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KEmoticonsProvider,
        {0}
    },
    {
        sipNameNr_KEmoticonsProvider,
        {0, 0, 1},
        15, methods_KEmoticonsProvider,
        2, enummembers_KEmoticonsProvider,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KEmoticonsProvider,
    0,
    init_type_KEmoticonsProvider,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KEmoticonsProvider,
    0,
    0,
    0,
    release_KEmoticonsProvider,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KEmoticonsProvider::staticMetaObject,
    0,
    0
};
