/*
 * Module code.
 *
 * Generated by SIP 4.12.4 on Fri Dec 30 00:39:59 2011
 */

#include "sipAPIkutils.h"

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

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kutils/kemoticonsprovider.sip"
#include <kemoticonsprovider.h>
#line 16 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kutils/sipkutilspart3.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 19 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kutils/sipkutilspart3.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 22 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kutils/sipkutilspart3.cpp"
#line 56 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kutils/sipkutilspart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kutils/sipkutilspart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 31 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kutils/sipkutilspart3.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kutils/sipkutilspart3.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kutils/kemoticonstheme.sip"
#include <kemoticonstheme.h>
#line 37 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kutils/sipkutilspart3.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kutils/kemoticonstheme.sip"
#include <kemoticonstheme.h>
#line 40 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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;
        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;
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;
}


/* 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 *, 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_KEmoticonsTheme(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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, 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 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_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,
    cast_KEmoticonsTheme,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kutils/kemoticonsprovider.sip"
#include <kemoticonsprovider.h>
#line 604 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kutils/sipkutilspart3.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 608 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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);
}


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

    return NULL;
}


/* 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_KEmoticonsProvider_Emoticon(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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 *);}
static PyObject *varget_KEmoticonsProvider_Emoticon_matchText(void *sipSelf, PyObject *)
{
    QString *sipVal;
    KEmoticonsProvider::Emoticon *sipCpp = reinterpret_cast<KEmoticonsProvider::Emoticon *>(sipSelf);

    sipVal = &sipCpp->matchText;

    return sipConvertFromType(sipVal,sipType_QString, NULL);
}


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 *);}
static PyObject *varget_KEmoticonsProvider_Emoticon_matchTextEscaped(void *sipSelf, PyObject *)
{
    QString *sipVal;
    KEmoticonsProvider::Emoticon *sipCpp = reinterpret_cast<KEmoticonsProvider::Emoticon *>(sipSelf);

    sipVal = &sipCpp->matchTextEscaped;

    return sipConvertFromType(sipVal,sipType_QString, NULL);
}


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 *);}
static PyObject *varget_KEmoticonsProvider_Emoticon_picHTMLCode(void *sipSelf, PyObject *)
{
    QString *sipVal;
    KEmoticonsProvider::Emoticon *sipCpp = reinterpret_cast<KEmoticonsProvider::Emoticon *>(sipSelf);

    sipVal = &sipCpp->picHTMLCode;

    return sipConvertFromType(sipVal,sipType_QString, NULL);
}


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 *);}
static PyObject *varget_KEmoticonsProvider_Emoticon_picPath(void *sipSelf, PyObject *)
{
    QString *sipVal;
    KEmoticonsProvider::Emoticon *sipCpp = reinterpret_cast<KEmoticonsProvider::Emoticon *>(sipSelf);

    sipVal = &sipCpp->picPath;

    return sipConvertFromType(sipVal,sipType_QString, NULL);
}


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_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,
    cast_KEmoticonsProvider_Emoticon,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kutils/kemoticonsprovider.sip"
#include <kemoticonsprovider.h>
#line 969 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kutils/sipkutilspart3.cpp"

#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 973 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kutils/sipkutilspart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 976 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kutils/sipkutilspart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 979 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kutils/sipkutilspart3.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 982 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kutils/sipkutilspart3.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 985 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kutils/sipkutilspart3.cpp"
#line 56 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 988 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kutils/sipkutilspart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 991 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kutils/sipkutilspart3.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 994 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kutils/sipkutilspart3.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 997 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kutils/sipkutilspart3.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1000 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kutils/sipkutilspart3.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1003 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kutils/sipkutilspart3.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1006 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kutils/sipkutilspart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1009 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kutils/sipkutilspart3.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1012 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kutils/sipkutilspart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 1015 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kutils/sipkutilspart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1018 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kutils/sipkutilspart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1021 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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 public method for every protected method visible from
     * this class.
     */
    QObject * sipProtect_sender() const;
    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 *);
    void sipProtect_clearEmoticonsMap();
    void sipProtect_addEmoticonsMap(QString,QStringList);
    void sipProtect_removeEmoticonsMap(QString);
    void sipProtect_addEmoticonIndex(const QString&,const QStringList&);
    void sipProtect_removeEmoticonIndex(const QString&,const QStringList&);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool loadTheme(const QString&);
    bool removeEmoticon(const QString&);
    bool addEmoticon(const QString&,const QString&,KEmoticonsProvider::AddEmoticonOption);
    void save();
    void createNew();
    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:
    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 && sip_kutils_qt_metacast(sipPySelf,sipType_KEmoticonsProvider,_clname)) ? this : KEmoticonsProvider::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

QObject * sipKEmoticonsProvider::sipProtect_sender() const
{
    return QObject::sender();
}

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

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

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

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

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

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

void sipKEmoticonsProvider::sipProtect_clearEmoticonsMap()
{
    KEmoticonsProvider::clearEmoticonsMap();
}

void sipKEmoticonsProvider::sipProtect_addEmoticonsMap(QString a0,QStringList a1)
{
    KEmoticonsProvider::addEmoticonsMap(a0,a1);
}

void sipKEmoticonsProvider::sipProtect_removeEmoticonsMap(QString a0)
{
    KEmoticonsProvider::removeEmoticonsMap(a0);
}

void sipKEmoticonsProvider::sipProtect_addEmoticonIndex(const QString& a0,const QStringList& a1)
{
    KEmoticonsProvider::addEmoticonIndex(a0,a1);
}

void sipKEmoticonsProvider::sipProtect_removeEmoticonIndex(const QString& a0,const QStringList& a1)
{
    KEmoticonsProvider::removeEmoticonIndex(a0,a1);
}


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

    {
        sipKEmoticonsProvider *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KEmoticonsProvider, &sipCpp))
        {
            QObject *sipRes = 0;

#line 632 "/usr/local/share/py-sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp->sender());
        #else
            sipRes = helper(sipCpp->sipProtect_sender());
        #endif
#line 1397 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kutils/sipkutilspart3.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKEmoticonsProvider *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KEmoticonsProvider, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 649 "/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)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp, a0, sipCpp->receivers(a0));
        #else
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
        #endif
#line 1439 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kutils/sipkutilspart3.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKEmoticonsProvider *sipCpp;

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKEmoticonsProvider *sipCpp;

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKEmoticonsProvider *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipKEmoticonsProvider *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipKEmoticonsProvider *sipCpp;

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

    return NULL;
}


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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        sipKEmoticonsProvider *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KEmoticonsProvider, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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;
        sipKEmoticonsProvider *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_KEmoticonsProvider, &sipCpp, sipType_QString,&a0, &a0State, sipType_QStringList,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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;
        sipKEmoticonsProvider *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KEmoticonsProvider, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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;
        sipKEmoticonsProvider *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_KEmoticonsProvider, &sipCpp, sipType_QString,&a0, &a0State, sipType_QStringList,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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;
        sipKEmoticonsProvider *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_KEmoticonsProvider, &sipCpp, sipType_QString,&a0, &a0State, sipType_QStringList,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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;
}


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

    if (targetType == sipType_KEmoticonsProvider)
        return ptr;

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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKEmoticonsProvider *>(sipCppV);
    else
        delete reinterpret_cast<KEmoticonsProvider *>(sipCppV);

    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_KEmoticonsProvider(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_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[] = {{134, 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_childEvent), meth_KEmoticonsProvider_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearEmoticonsMap), meth_KEmoticonsProvider_clearEmoticonsMap, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KEmoticonsProvider_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createNew), meth_KEmoticonsProvider_createNew, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KEmoticonsProvider_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KEmoticonsProvider_disconnectNotify, 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_receivers), meth_KEmoticonsProvider_receivers, 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_sender), meth_KEmoticonsProvider_sender, 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},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KEmoticonsProvider_timerEvent, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KEmoticonsProvider[] = {
    {sipName_Copy, KEmoticonsProvider::Copy, 7},
    {sipName_DoNotCopy, KEmoticonsProvider::DoNotCopy, 7},
};


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