/*
 * Module code.
 *
 * Generated by SIP 4.11.2 on Wed Feb  9 17:29:52 2011
 */

#include "sipAPInepomuk.h"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/filequery.sip"
#include <nepomuk/filequery.h>
#line 12 "sipnepomukpart6.cpp"

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 44 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 18 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/term.sip"
#include <nepomuk/term.h>
#line 21 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/filequery.sip"
#include <nepomuk/filequery.h>
#line 24 "sipnepomukpart6.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 27 "sipnepomukpart6.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 30 "sipnepomukpart6.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 33 "sipnepomukpart6.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 36 "sipnepomukpart6.cpp"
#line 82 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 39 "sipnepomukpart6.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/property.sip"
#include <nepomuk/property.h>
#line 42 "sipnepomukpart6.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 44 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 47 "sipnepomukpart6.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 50 "sipnepomukpart6.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 44 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 55 "sipnepomukpart6.cpp"


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

    {
        const KUrl * a0;
        Nepomuk::Query::FileQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Query_FileQuery, &sipCpp, sipType_KUrl, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addIncludeFolder(*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_FileQuery, sipName_addIncludeFolder, NULL);

    return NULL;
}


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

    {
        const KUrl::List * a0;
        Nepomuk::Query::FileQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Query_FileQuery, &sipCpp, sipType_KUrl_List, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setIncludeFolders(*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_FileQuery, sipName_setIncludeFolders, NULL);

    return NULL;
}


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

    {
        Nepomuk::Query::FileQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_FileQuery, &sipCpp))
        {
            KUrl::List *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl::List(sipCpp->includeFolders());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KUrl * a0;
        Nepomuk::Query::FileQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Query_FileQuery, &sipCpp, sipType_KUrl, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addExcludeFolder(*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_FileQuery, sipName_addExcludeFolder, NULL);

    return NULL;
}


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

    {
        const KUrl::List * a0;
        Nepomuk::Query::FileQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Query_FileQuery, &sipCpp, sipType_KUrl_List, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setExcludeFolders(*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_FileQuery, sipName_setExcludeFolders, NULL);

    return NULL;
}


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

    {
        Nepomuk::Query::FileQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_FileQuery, &sipCpp))
        {
            KUrl::List *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl::List(sipCpp->excludeFolders());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Query::FileQuery::FileMode * a0;
        int a0State = 0;
        Nepomuk::Query::FileQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Query_FileQuery, &sipCpp, sipType_Nepomuk_Query_FileQuery_FileMode, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setFileMode(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Nepomuk_Query_FileQuery_FileMode,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Query::FileQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_FileQuery, &sipCpp))
        {
            Nepomuk::Query::FileQuery::FileMode *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::FileQuery::FileMode(sipCpp->fileMode());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    if (targetType == sipType_Nepomuk_Query_FileQuery)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Nepomuk_Query_Query)->ctd_cast((Nepomuk::Query::Query *)(Nepomuk::Query::FileQuery *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    delete reinterpret_cast<Nepomuk::Query::FileQuery *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Nepomuk_Query_FileQuery(void *, SIP_SSIZE_T, const void *);}
static void assign_Nepomuk_Query_FileQuery(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<Nepomuk::Query::FileQuery *>(sipDst)[sipDstIdx] = *reinterpret_cast<const Nepomuk::Query::FileQuery *>(sipSrc);
}


extern "C" {static void *array_Nepomuk_Query_FileQuery(SIP_SSIZE_T);}
static void *array_Nepomuk_Query_FileQuery(SIP_SSIZE_T sipNrElem)
{
    return new Nepomuk::Query::FileQuery[sipNrElem];
}


extern "C" {static void *copy_Nepomuk_Query_FileQuery(const void *, SIP_SSIZE_T);}
static void *copy_Nepomuk_Query_FileQuery(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new Nepomuk::Query::FileQuery(reinterpret_cast<const Nepomuk::Query::FileQuery *>(sipSrc)[sipSrcIdx]);
}


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


extern "C" {static void *init_Nepomuk_Query_FileQuery(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Nepomuk_Query_FileQuery(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Nepomuk::Query::FileQuery *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Query::FileQuery();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const Nepomuk::Query::Query * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Nepomuk_Query_Query, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Query::FileQuery(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const Nepomuk::Query::Term * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Nepomuk_Query_Term, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Query::FileQuery(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const Nepomuk::Query::FileQuery * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Nepomuk_Query_FileQuery, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Query::FileQuery(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Nepomuk_Query_FileQuery[] = {
    {SIP_MLNAME_CAST(sipName_addExcludeFolder), meth_Nepomuk_Query_FileQuery_addExcludeFolder, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addIncludeFolder), meth_Nepomuk_Query_FileQuery_addIncludeFolder, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_excludeFolders), meth_Nepomuk_Query_FileQuery_excludeFolders, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fileMode), meth_Nepomuk_Query_FileQuery_fileMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_includeFolders), meth_Nepomuk_Query_FileQuery_includeFolders, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setExcludeFolders), meth_Nepomuk_Query_FileQuery_setExcludeFolders, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setFileMode), meth_Nepomuk_Query_FileQuery_setFileMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setIncludeFolders), meth_Nepomuk_Query_FileQuery_setIncludeFolders, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Nepomuk_Query_FileQuery[] = {
    {sipName_QueryFiles, Nepomuk::Query::FileQuery::QueryFiles, 14},
    {sipName_QueryFilesAndFolders, Nepomuk::Query::FileQuery::QueryFilesAndFolders, 14},
    {sipName_QueryFolders, Nepomuk::Query::FileQuery::QueryFolders, 14},
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Query_FileQuery = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Query__FileQuery,
        {0}
    },
    {
        sipNameNr_FileQuery,
        {7, 255, 0},
        8, methods_Nepomuk_Query_FileQuery,
        3, enummembers_Nepomuk_Query_FileQuery,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Nepomuk_Query_FileQuery,
    0,
    init_Nepomuk_Query_FileQuery,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Query_FileQuery,
    assign_Nepomuk_Query_FileQuery,
    array_Nepomuk_Query_FileQuery,
    copy_Nepomuk_Query_FileQuery,
    release_Nepomuk_Query_FileQuery,
    cast_Nepomuk_Query_FileQuery,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 44 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 470 "sipnepomukpart6.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/term.sip"
#include <nepomuk/term.h>
#line 474 "sipnepomukpart6.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 477 "sipnepomukpart6.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 480 "sipnepomukpart6.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 483 "sipnepomukpart6.cpp"
#line 82 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 486 "sipnepomukpart6.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/property.sip"
#include <nepomuk/property.h>
#line 489 "sipnepomukpart6.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 44 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 494 "sipnepomukpart6.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 497 "sipnepomukpart6.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 44 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 502 "sipnepomukpart6.cpp"


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

    {
        Nepomuk::Query::Query *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Query, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Query::Query *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Query, &sipCpp))
        {
            Nepomuk::Query::Term *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::Term(sipCpp->term());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Query::Query *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Query, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->limit();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Nepomuk::Query::Term * a0;
        Nepomuk::Query::Query *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Query_Query, &sipCpp, sipType_Nepomuk_Query_Term, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setTerm(*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_Query, sipName_setTerm, NULL);

    return NULL;
}


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

    {
        int a0;
        Nepomuk::Query::Query *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_Nepomuk_Query_Query, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setLimit(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_Query, sipName_setLimit, NULL);

    return NULL;
}


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

    {
        const Nepomuk::Query::Query::RequestProperty * a0;
        Nepomuk::Query::Query *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Query_Query, &sipCpp, sipType_Nepomuk_Query_Query_RequestProperty, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addRequestProperty(*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_Query, sipName_addRequestProperty, NULL);

    return NULL;
}


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

    {
        const QList<Nepomuk::Query::Query::RequestProperty> * a0;
        int a0State = 0;
        Nepomuk::Query::Query *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Query_Query, &sipCpp, sipType_QList_0100Nepomuk_Query_Query_RequestProperty,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setRequestProperties(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<Nepomuk::Query::Query::RequestProperty> *>(a0),sipType_QList_0100Nepomuk_Query_Query_RequestProperty,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Query::Query *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Query, &sipCpp))
        {
            QList<Nepomuk::Query::Query::RequestProperty> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Query::Query::RequestProperty>(sipCpp->requestProperties());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Query::Query::SparqlFlags a0def = Nepomuk::Query::Query::NoFlags;
        Nepomuk::Query::Query::SparqlFlags * a0 = &a0def;
        int a0State = 0;
        Nepomuk::Query::Query *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J1", &sipSelf, sipType_Nepomuk_Query_Query, &sipCpp, sipType_Nepomuk_Query_Query_SparqlFlags, &a0, &a0State))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->toSparqlQuery(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Nepomuk_Query_Query_SparqlFlags,a0State);

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

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

    return NULL;
}


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

    {
        Nepomuk::Query::Query::SparqlFlags a0def = Nepomuk::Query::Query::NoFlags;
        Nepomuk::Query::Query::SparqlFlags * a0 = &a0def;
        int a0State = 0;
        Nepomuk::Query::Query *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J1", &sipSelf, sipType_Nepomuk_Query_Query, &sipCpp, sipType_Nepomuk_Query_Query_SparqlFlags, &a0, &a0State))
        {
            KUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl(sipCpp->toSearchUrl(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Nepomuk_Query_Query_SparqlFlags,a0State);

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

    {
        const QString * a0;
        int a0State = 0;
        Nepomuk::Query::Query::SparqlFlags a1def = Nepomuk::Query::Query::NoFlags;
        Nepomuk::Query::Query::SparqlFlags * a1 = &a1def;
        int a1State = 0;
        Nepomuk::Query::Query *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|J1", &sipSelf, sipType_Nepomuk_Query_Query, &sipCpp, sipType_QString,&a0, &a0State, sipType_Nepomuk_Query_Query_SparqlFlags, &a1, &a1State))
        {
            KUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl(sipCpp->toSearchUrl(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a1,sipType_Nepomuk_Query_Query_SparqlFlags,a1State);

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

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

    return NULL;
}


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

    {
        Nepomuk::Query::Query *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Query, &sipCpp))
        {
            Nepomuk::Query::RequestPropertyMap *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::RequestPropertyMap(sipCpp->requestPropertyMap());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Query::Query *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Query, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->offset();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        Nepomuk::Query::Query *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_Nepomuk_Query_Query, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setOffset(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_Query, sipName_setOffset, NULL);

    return NULL;
}


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

    {
        Nepomuk::Query::Query *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Query, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isFileQuery();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Query::Query *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            Nepomuk::Query::Query *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::Query(Nepomuk::Query::Query::fromString(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        const KUrl * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_KUrl, &a0))
        {
            Nepomuk::Query::Query *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::Query(Nepomuk::Query::Query::fromQueryUrl(*a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KUrl * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_KUrl, &a0))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::Query::Query::sparqlFromQueryUrl(*a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KUrl * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_KUrl, &a0))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::Query::Query::titleFromQueryUrl(*a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


extern "C" {static PyObject *slot_Nepomuk_Query_Query___ne__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_Query_Query___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Nepomuk::Query::Query *sipCpp = reinterpret_cast<Nepomuk::Query::Query *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Query_Query));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Nepomuk::Query::Query * a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = !sipCpp->Nepomuk::Query::Query::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_nepomuk,ne_slot,sipType_Nepomuk_Query_Query,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Nepomuk_Query_Query___eq__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_Query_Query___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Nepomuk::Query::Query *sipCpp = reinterpret_cast<Nepomuk::Query::Query *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Query_Query));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Nepomuk::Query::Query * a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Nepomuk::Query::Query::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_nepomuk,eq_slot,sipType_Nepomuk_Query_Query,sipSelf,sipArg);
}


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

    return NULL;
}


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

    delete reinterpret_cast<Nepomuk::Query::Query *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_Nepomuk_Query_Query(SIP_SSIZE_T);}
static void *array_Nepomuk_Query_Query(SIP_SSIZE_T sipNrElem)
{
    return new Nepomuk::Query::Query[sipNrElem];
}


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


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


extern "C" {static void *init_Nepomuk_Query_Query(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Nepomuk_Query_Query(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Nepomuk::Query::Query *sipCpp = 0;

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

            return sipCpp;
        }
    }

    {
        const Nepomuk::Query::Term * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Nepomuk_Query_Term, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Query::Query(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const Nepomuk::Query::Query * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Nepomuk_Query_Query, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Query::Query(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Nepomuk_Query_Query[] = {
    {(void *)slot_Nepomuk_Query_Query___ne__, ne_slot},
    {(void *)slot_Nepomuk_Query_Query___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_Nepomuk_Query_Query[] = {
    {SIP_MLNAME_CAST(sipName_addRequestProperty), meth_Nepomuk_Query_Query_addRequestProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromQueryUrl), meth_Nepomuk_Query_Query_fromQueryUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromString), meth_Nepomuk_Query_Query_fromString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isFileQuery), meth_Nepomuk_Query_Query_isFileQuery, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Nepomuk_Query_Query_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_limit), meth_Nepomuk_Query_Query_limit, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_offset), meth_Nepomuk_Query_Query_offset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_requestProperties), meth_Nepomuk_Query_Query_requestProperties, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_requestPropertyMap), meth_Nepomuk_Query_Query_requestPropertyMap, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLimit), meth_Nepomuk_Query_Query_setLimit, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOffset), meth_Nepomuk_Query_Query_setOffset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setRequestProperties), meth_Nepomuk_Query_Query_setRequestProperties, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTerm), meth_Nepomuk_Query_Query_setTerm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sparqlFromQueryUrl), meth_Nepomuk_Query_Query_sparqlFromQueryUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_term), meth_Nepomuk_Query_Query_term, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_titleFromQueryUrl), meth_Nepomuk_Query_Query_titleFromQueryUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toSearchUrl), meth_Nepomuk_Query_Query_toSearchUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toSparqlQuery), meth_Nepomuk_Query_Query_toSparqlQuery, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toString), meth_Nepomuk_Query_Query_toString, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Nepomuk_Query_Query[] = {
    {sipName_CreateCountQuery, Nepomuk::Query::Query::CreateCountQuery, 22},
    {sipName_HandleInverseProperties, Nepomuk::Query::Query::HandleInverseProperties, 22},
    {sipName_NoFlags, Nepomuk::Query::Query::NoFlags, 22},
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Query_Query = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Query__Query,
        {0}
    },
    {
        sipNameNr_Query,
        {7, 255, 0},
        19, methods_Nepomuk_Query_Query,
        3, enummembers_Nepomuk_Query_Query,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Nepomuk_Query_Query,
    init_Nepomuk_Query_Query,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Query_Query,
    assign_Nepomuk_Query_Query,
    array_Nepomuk_Query_Query,
    copy_Nepomuk_Query_Query,
    release_Nepomuk_Query_Query,
    cast_Nepomuk_Query_Query,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/comparisonterm.sip"
#include <nepomuk/comparisonterm.h>
#line 1309 "sipnepomukpart6.cpp"

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/property.sip"
#include <nepomuk/property.h>
#line 1313 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/term.sip"
#include <nepomuk/term.h>
#line 1316 "sipnepomukpart6.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1319 "sipnepomukpart6.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1322 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/optionalterm.sip"
#include <nepomuk/optionalterm.h>
#line 1325 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/resourcetypeterm.sip"
#include <nepomuk/resourcetypeterm.h>
#line 1328 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/orterm.sip"
#include <nepomuk/orterm.h>
#line 1331 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/andterm.sip"
#include <nepomuk/andterm.h>
#line 1334 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/negationterm.sip"
#include <nepomuk/negationterm.h>
#line 1337 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/resourceterm.sip"
#include <nepomuk/resourceterm.h>
#line 1340 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/literalterm.sip"
#include <nepomuk/literalterm.h>
#line 1343 "sipnepomukpart6.cpp"


class sipNepomuk_Query_ComparisonTerm : public Nepomuk::Query::ComparisonTerm
{
public:
    sipNepomuk_Query_ComparisonTerm();
    sipNepomuk_Query_ComparisonTerm(const Nepomuk::Query::ComparisonTerm&);
    sipNepomuk_Query_ComparisonTerm(const Nepomuk::Types::Property&,const Nepomuk::Query::Term&,Nepomuk::Query::ComparisonTerm::Comparator);
    ~sipNepomuk_Query_ComparisonTerm();

public:
    sipSimpleWrapper *sipPySelf;

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

sipNepomuk_Query_ComparisonTerm::sipNepomuk_Query_ComparisonTerm(): Nepomuk::Query::ComparisonTerm(), sipPySelf(0)
{
}

sipNepomuk_Query_ComparisonTerm::sipNepomuk_Query_ComparisonTerm(const Nepomuk::Query::ComparisonTerm& a0): Nepomuk::Query::ComparisonTerm(a0), sipPySelf(0)
{
}

sipNepomuk_Query_ComparisonTerm::sipNepomuk_Query_ComparisonTerm(const Nepomuk::Types::Property& a0,const Nepomuk::Query::Term& a1,Nepomuk::Query::ComparisonTerm::Comparator a2): Nepomuk::Query::ComparisonTerm(a0,a1,a2), sipPySelf(0)
{
}

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


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

    {
        Nepomuk::Query::ComparisonTerm *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_ComparisonTerm, &sipCpp))
        {
            Nepomuk::Query::ComparisonTerm::Comparator sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->comparator();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Nepomuk_Query_ComparisonTerm_Comparator);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Query::ComparisonTerm *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_ComparisonTerm, &sipCpp))
        {
            Nepomuk::Types::Property *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Types::Property(sipCpp->property());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Query::ComparisonTerm::Comparator a0;
        Nepomuk::Query::ComparisonTerm *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_Nepomuk_Query_ComparisonTerm, &sipCpp, sipType_Nepomuk_Query_ComparisonTerm_Comparator, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setComparator(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_ComparisonTerm, sipName_setComparator, NULL);

    return NULL;
}


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

    {
        const Nepomuk::Types::Property * a0;
        Nepomuk::Query::ComparisonTerm *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Query_ComparisonTerm, &sipCpp, sipType_Nepomuk_Types_Property, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setProperty(*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_ComparisonTerm, sipName_setProperty, NULL);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Nepomuk::Query::ComparisonTerm *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Query_ComparisonTerm, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setVariableName(*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_ComparisonTerm, sipName_setVariableName, NULL);

    return NULL;
}


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

    {
        Nepomuk::Query::ComparisonTerm *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Nepomuk::Query::ComparisonTerm::AggregateFunction a0;
        Nepomuk::Query::ComparisonTerm *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_Nepomuk_Query_ComparisonTerm, &sipCpp, sipType_Nepomuk_Query_ComparisonTerm_AggregateFunction, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAggregateFunction(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_ComparisonTerm, sipName_setAggregateFunction, NULL);

    return NULL;
}


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

    {
        Nepomuk::Query::ComparisonTerm *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_ComparisonTerm, &sipCpp))
        {
            Nepomuk::Query::ComparisonTerm::AggregateFunction sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->aggregateFunction();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Nepomuk_Query_ComparisonTerm_AggregateFunction);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        Qt::SortOrder a1 = Qt::AscendingOrder;
        Nepomuk::Query::ComparisonTerm *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi|E", &sipSelf, sipType_Nepomuk_Query_ComparisonTerm, &sipCpp, &a0, sipType_Qt_SortOrder, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSortWeight(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Query::ComparisonTerm *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_ComparisonTerm, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sortWeight();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Query::ComparisonTerm *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_ComparisonTerm, &sipCpp))
        {
            Qt::SortOrder sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sortOrder();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Qt_SortOrder);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Query::ComparisonTerm *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_ComparisonTerm, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isInverted();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        Nepomuk::Query::ComparisonTerm *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Nepomuk_Query_ComparisonTerm, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setInverted(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_ComparisonTerm, sipName_setInverted, NULL);

    return NULL;
}


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

    {
        Nepomuk::Query::ComparisonTerm *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_ComparisonTerm, &sipCpp))
        {
            Nepomuk::Query::ComparisonTerm *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::ComparisonTerm(sipCpp->inverted());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    if (targetType == sipType_Nepomuk_Query_ComparisonTerm)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Nepomuk_Query_SimpleTerm)->ctd_cast((Nepomuk::Query::SimpleTerm *)(Nepomuk::Query::ComparisonTerm *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipNepomuk_Query_ComparisonTerm *>(sipCppV);
    else
        delete reinterpret_cast<Nepomuk::Query::ComparisonTerm *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Nepomuk_Query_ComparisonTerm(void *, SIP_SSIZE_T, const void *);}
static void assign_Nepomuk_Query_ComparisonTerm(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<Nepomuk::Query::ComparisonTerm *>(sipDst)[sipDstIdx] = *reinterpret_cast<const Nepomuk::Query::ComparisonTerm *>(sipSrc);
}


extern "C" {static void *array_Nepomuk_Query_ComparisonTerm(SIP_SSIZE_T);}
static void *array_Nepomuk_Query_ComparisonTerm(SIP_SSIZE_T sipNrElem)
{
    return new Nepomuk::Query::ComparisonTerm[sipNrElem];
}


extern "C" {static void *copy_Nepomuk_Query_ComparisonTerm(const void *, SIP_SSIZE_T);}
static void *copy_Nepomuk_Query_ComparisonTerm(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new Nepomuk::Query::ComparisonTerm(reinterpret_cast<const Nepomuk::Query::ComparisonTerm *>(sipSrc)[sipSrcIdx]);
}


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Nepomuk::Query::ComparisonTerm * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Nepomuk::Types::Property * a0;
        const Nepomuk::Query::Term * a1;
        Nepomuk::Query::ComparisonTerm::Comparator a2 = Nepomuk::Query::ComparisonTerm::Contains;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9J9|E", sipType_Nepomuk_Types_Property, &a0, sipType_Nepomuk_Query_Term, &a1, sipType_Nepomuk_Query_ComparisonTerm_Comparator, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Query_ComparisonTerm(*a0,*a1,a2);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Nepomuk_Query_ComparisonTerm[] = {
    {SIP_MLNAME_CAST(sipName_aggregateFunction), meth_Nepomuk_Query_ComparisonTerm_aggregateFunction, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_comparator), meth_Nepomuk_Query_ComparisonTerm_comparator, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_inverted), meth_Nepomuk_Query_ComparisonTerm_inverted, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isInverted), meth_Nepomuk_Query_ComparisonTerm_isInverted, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_property), meth_Nepomuk_Query_ComparisonTerm_property, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAggregateFunction), meth_Nepomuk_Query_ComparisonTerm_setAggregateFunction, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setComparator), meth_Nepomuk_Query_ComparisonTerm_setComparator, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setInverted), meth_Nepomuk_Query_ComparisonTerm_setInverted, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProperty), meth_Nepomuk_Query_ComparisonTerm_setProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSortWeight), meth_Nepomuk_Query_ComparisonTerm_setSortWeight, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setVariableName), meth_Nepomuk_Query_ComparisonTerm_setVariableName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sortOrder), meth_Nepomuk_Query_ComparisonTerm_sortOrder, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sortWeight), meth_Nepomuk_Query_ComparisonTerm_sortWeight, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_variableName), meth_Nepomuk_Query_ComparisonTerm_variableName, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Nepomuk_Query_ComparisonTerm[] = {
    {sipName_Average, Nepomuk::Query::ComparisonTerm::Average, 10},
    {sipName_Contains, Nepomuk::Query::ComparisonTerm::Contains, 11},
    {sipName_Count, Nepomuk::Query::ComparisonTerm::Count, 10},
    {sipName_DistinctAverage, Nepomuk::Query::ComparisonTerm::DistinctAverage, 10},
    {sipName_DistinctCount, Nepomuk::Query::ComparisonTerm::DistinctCount, 10},
    {sipName_DistinctSum, Nepomuk::Query::ComparisonTerm::DistinctSum, 10},
    {sipName_Equal, Nepomuk::Query::ComparisonTerm::Equal, 11},
    {sipName_Greater, Nepomuk::Query::ComparisonTerm::Greater, 11},
    {sipName_GreaterOrEqual, Nepomuk::Query::ComparisonTerm::GreaterOrEqual, 11},
    {sipName_Max, Nepomuk::Query::ComparisonTerm::Max, 10},
    {sipName_Min, Nepomuk::Query::ComparisonTerm::Min, 10},
    {sipName_NoAggregateFunction, Nepomuk::Query::ComparisonTerm::NoAggregateFunction, 10},
    {sipName_Regexp, Nepomuk::Query::ComparisonTerm::Regexp, 11},
    {sipName_Smaller, Nepomuk::Query::ComparisonTerm::Smaller, 11},
    {sipName_SmallerOrEqual, Nepomuk::Query::ComparisonTerm::SmallerOrEqual, 11},
    {sipName_Sum, Nepomuk::Query::ComparisonTerm::Sum, 10},
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Query_ComparisonTerm = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Query__ComparisonTerm,
        {0}
    },
    {
        sipNameNr_ComparisonTerm,
        {7, 255, 0},
        14, methods_Nepomuk_Query_ComparisonTerm,
        16, enummembers_Nepomuk_Query_ComparisonTerm,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Nepomuk_Query_ComparisonTerm,
    0,
    init_Nepomuk_Query_ComparisonTerm,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Query_ComparisonTerm,
    assign_Nepomuk_Query_ComparisonTerm,
    array_Nepomuk_Query_ComparisonTerm,
    copy_Nepomuk_Query_ComparisonTerm,
    release_Nepomuk_Query_ComparisonTerm,
    cast_Nepomuk_Query_ComparisonTerm,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/simpleterm.sip"
#include <nepomuk/simpleterm.h>
#line 1973 "sipnepomukpart6.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/term.sip"
#include <nepomuk/term.h>
#line 1977 "sipnepomukpart6.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1980 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/optionalterm.sip"
#include <nepomuk/optionalterm.h>
#line 1983 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/resourcetypeterm.sip"
#include <nepomuk/resourcetypeterm.h>
#line 1986 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/comparisonterm.sip"
#include <nepomuk/comparisonterm.h>
#line 1989 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/orterm.sip"
#include <nepomuk/orterm.h>
#line 1992 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/andterm.sip"
#include <nepomuk/andterm.h>
#line 1995 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/negationterm.sip"
#include <nepomuk/negationterm.h>
#line 1998 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/resourceterm.sip"
#include <nepomuk/resourceterm.h>
#line 2001 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/literalterm.sip"
#include <nepomuk/literalterm.h>
#line 2004 "sipnepomukpart6.cpp"


class sipNepomuk_Query_SimpleTerm : public Nepomuk::Query::SimpleTerm
{
public:
    sipNepomuk_Query_SimpleTerm(const Nepomuk::Query::Term&);
    sipNepomuk_Query_SimpleTerm(const Nepomuk::Query::SimpleTerm&);
    ~sipNepomuk_Query_SimpleTerm();

public:
    sipSimpleWrapper *sipPySelf;

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

sipNepomuk_Query_SimpleTerm::sipNepomuk_Query_SimpleTerm(const Nepomuk::Query::Term& a0): Nepomuk::Query::SimpleTerm(a0), sipPySelf(0)
{
}

sipNepomuk_Query_SimpleTerm::sipNepomuk_Query_SimpleTerm(const Nepomuk::Query::SimpleTerm& a0): Nepomuk::Query::SimpleTerm(a0), sipPySelf(0)
{
}

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


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

    {
        Nepomuk::Query::SimpleTerm *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_SimpleTerm, &sipCpp))
        {
            Nepomuk::Query::Term *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::Term(sipCpp->subTerm());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Nepomuk::Query::Term * a0;
        Nepomuk::Query::SimpleTerm *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Query_SimpleTerm, &sipCpp, sipType_Nepomuk_Query_Term, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSubTerm(*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_SimpleTerm, sipName_setSubTerm, NULL);

    return NULL;
}


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

    if (targetType == sipType_Nepomuk_Query_SimpleTerm)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Nepomuk_Query_Term)->ctd_cast((Nepomuk::Query::Term *)(Nepomuk::Query::SimpleTerm *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipNepomuk_Query_SimpleTerm *>(sipCppV);
    else
        delete reinterpret_cast<Nepomuk::Query::SimpleTerm *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        const Nepomuk::Query::Term * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Nepomuk::Query::SimpleTerm * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Nepomuk_Query_SimpleTerm[] = {
    {SIP_MLNAME_CAST(sipName_setSubTerm), meth_Nepomuk_Query_SimpleTerm_setSubTerm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_subTerm), meth_Nepomuk_Query_SimpleTerm_subTerm, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Query_SimpleTerm = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Query__SimpleTerm,
        {0}
    },
    {
        sipNameNr_SimpleTerm,
        {7, 255, 0},
        2, methods_Nepomuk_Query_SimpleTerm,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Nepomuk_Query_SimpleTerm,
    0,
    init_Nepomuk_Query_SimpleTerm,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Query_SimpleTerm,
    0,
    0,
    0,
    release_Nepomuk_Query_SimpleTerm,
    cast_Nepomuk_Query_SimpleTerm,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/class.sip"
#include <nepomuk/class.h>
#line 2235 "sipnepomukpart6.cpp"

#line 40 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 2239 "sipnepomukpart6.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2242 "sipnepomukpart6.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/property.sip"
#include <nepomuk/property.h>
#line 2245 "sipnepomukpart6.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2248 "sipnepomukpart6.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2251 "sipnepomukpart6.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/entity.sip"
#include <nepomuk/entity.h>
#line 2254 "sipnepomukpart6.cpp"
#line 40 "/usr/local/share/py-sip/QtGui/qicon.sip"
#include <qicon.h>
#line 2257 "sipnepomukpart6.cpp"


class sipNepomuk_Types_Class : public Nepomuk::Types::Class
{
public:
    sipNepomuk_Types_Class();
    sipNepomuk_Types_Class(const QUrl&);
    sipNepomuk_Types_Class(const Nepomuk::Types::Class&);
    ~sipNepomuk_Types_Class();

public:
    sipSimpleWrapper *sipPySelf;

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

sipNepomuk_Types_Class::sipNepomuk_Types_Class(): Nepomuk::Types::Class(), sipPySelf(0)
{
}

sipNepomuk_Types_Class::sipNepomuk_Types_Class(const QUrl& a0): Nepomuk::Types::Class(a0), sipPySelf(0)
{
}

sipNepomuk_Types_Class::sipNepomuk_Types_Class(const Nepomuk::Types::Class& a0): Nepomuk::Types::Class(a0), sipPySelf(0)
{
}

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


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

    {
        Nepomuk::Types::Class *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Types_Class, &sipCpp))
        {
            QList<Nepomuk::Types::Property> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Types::Property>(sipCpp->rangeOf());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Types::Class *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Types_Class, &sipCpp))
        {
            QList<Nepomuk::Types::Property> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Types::Property>(sipCpp->domainOf());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Nepomuk::Types::Class *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Types_Class, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Nepomuk::Types::Property *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Types::Property(sipCpp->findPropertyByName(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;
        Nepomuk::Types::Class *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|J1", &sipSelf, sipType_Nepomuk_Types_Class, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            Nepomuk::Types::Property *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Types::Property(sipCpp->findPropertyByLabel(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

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

    return NULL;
}


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

    {
        Nepomuk::Types::Class *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Types_Class, &sipCpp))
        {
            QList<Nepomuk::Types::Class> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Types::Class>(sipCpp->parentClasses());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Types::Class *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Types_Class, &sipCpp))
        {
            QList<Nepomuk::Types::Class> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Types::Class>(sipCpp->subClasses());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Types::Class *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Types_Class, &sipCpp))
        {
            QList<Nepomuk::Types::Class> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Types::Class>(sipCpp->allParentClasses());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Types::Class *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Types_Class, &sipCpp))
        {
            QList<Nepomuk::Types::Class> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Types::Class>(sipCpp->allSubClasses());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Nepomuk::Types::Class * a0;
        Nepomuk::Types::Class *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Types_Class, &sipCpp, sipType_Nepomuk_Types_Class, &a0))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Nepomuk::Types::Class * a0;
        Nepomuk::Types::Class *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Types_Class, &sipCpp, sipType_Nepomuk_Types_Class, &a0))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Nepomuk_Types_Class)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Nepomuk_Types_Entity)->ctd_cast((Nepomuk::Types::Entity *)(Nepomuk::Types::Class *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipNepomuk_Types_Class *>(sipCppV);
    else
        delete reinterpret_cast<Nepomuk::Types::Class *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Nepomuk_Types_Class(void *, SIP_SSIZE_T, const void *);}
static void assign_Nepomuk_Types_Class(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<Nepomuk::Types::Class *>(sipDst)[sipDstIdx] = *reinterpret_cast<const Nepomuk::Types::Class *>(sipSrc);
}


extern "C" {static void *array_Nepomuk_Types_Class(SIP_SSIZE_T);}
static void *array_Nepomuk_Types_Class(SIP_SSIZE_T sipNrElem)
{
    return new Nepomuk::Types::Class[sipNrElem];
}


extern "C" {static void *copy_Nepomuk_Types_Class(const void *, SIP_SSIZE_T);}
static void *copy_Nepomuk_Types_Class(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new Nepomuk::Types::Class(reinterpret_cast<const Nepomuk::Types::Class *>(sipSrc)[sipSrcIdx]);
}


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QUrl * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Nepomuk::Types::Class * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Nepomuk_Types_Class[] = {
    {SIP_MLNAME_CAST(sipName_allParentClasses), meth_Nepomuk_Types_Class_allParentClasses, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_allSubClasses), meth_Nepomuk_Types_Class_allSubClasses, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_domainOf), meth_Nepomuk_Types_Class_domainOf, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findPropertyByLabel), meth_Nepomuk_Types_Class_findPropertyByLabel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findPropertyByName), meth_Nepomuk_Types_Class_findPropertyByName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isParentOf), meth_Nepomuk_Types_Class_isParentOf, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isSubClassOf), meth_Nepomuk_Types_Class_isSubClassOf, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentClasses), meth_Nepomuk_Types_Class_parentClasses, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_rangeOf), meth_Nepomuk_Types_Class_rangeOf, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_subClasses), meth_Nepomuk_Types_Class_subClasses, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Types_Class = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Types__Class,
        {0}
    },
    {
        sipNameNr_Class,
        {43, 255, 0},
        10, methods_Nepomuk_Types_Class,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Nepomuk_Types_Class,
    0,
    init_Nepomuk_Types_Class,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Types_Class,
    assign_Nepomuk_Types_Class,
    array_Nepomuk_Types_Class,
    copy_Nepomuk_Types_Class,
    release_Nepomuk_Types_Class,
    cast_Nepomuk_Types_Class,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/entity.sip"
#include <nepomuk/entity.h>
#line 2763 "sipnepomukpart6.cpp"

#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2767 "sipnepomukpart6.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 2770 "sipnepomukpart6.cpp"
#line 40 "/usr/local/share/py-sip/QtGui/qicon.sip"
#include <qicon.h>
#line 2773 "sipnepomukpart6.cpp"


class sipNepomuk_Types_Entity : public Nepomuk::Types::Entity
{
public:
    sipNepomuk_Types_Entity(const Nepomuk::Types::Entity&);
    sipNepomuk_Types_Entity();
    ~sipNepomuk_Types_Entity();

public:
    sipSimpleWrapper *sipPySelf;

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

sipNepomuk_Types_Entity::sipNepomuk_Types_Entity(const Nepomuk::Types::Entity& a0): Nepomuk::Types::Entity(a0), sipPySelf(0)
{
}

sipNepomuk_Types_Entity::sipNepomuk_Types_Entity(): Nepomuk::Types::Entity(), sipPySelf(0)
{
}

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


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

    {
        Nepomuk::Types::Entity *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Nepomuk::Types::Entity *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Types_Entity, &sipCpp))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(sipCpp->uri());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Types::Entity *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Types_Entity, &sipCpp))
        {
            QIcon *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QIcon(sipCpp->icon());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Types::Entity *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Types_Entity, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Types::Entity *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Types_Entity, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isAvailable();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0 = 0;
        Nepomuk::Types::Entity *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|b", &sipSelf, sipType_Nepomuk_Types_Entity, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->reset(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_Entity, sipName_reset, NULL);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Nepomuk::Types::Entity *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Types_Entity, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->label(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Nepomuk::Types::Entity *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Types_Entity, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->comment(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


extern "C" {static PyObject *slot_Nepomuk_Types_Entity___ne__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_Types_Entity___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Nepomuk::Types::Entity *sipCpp = reinterpret_cast<Nepomuk::Types::Entity *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Types_Entity));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Nepomuk::Types::Entity * a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Nepomuk::Types::Entity::operator!=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QUrl * a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Nepomuk::Types::Entity::operator!=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_nepomuk,ne_slot,sipType_Nepomuk_Types_Entity,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Nepomuk_Types_Entity___eq__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_Types_Entity___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Nepomuk::Types::Entity *sipCpp = reinterpret_cast<Nepomuk::Types::Entity *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Types_Entity));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Nepomuk::Types::Entity * a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Nepomuk::Types::Entity::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QUrl * a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Nepomuk::Types::Entity::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_nepomuk,eq_slot,sipType_Nepomuk_Types_Entity,sipSelf,sipArg);
}


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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipNepomuk_Types_Entity *>(sipCppV);
    else
        delete reinterpret_cast<Nepomuk::Types::Entity *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        const Nepomuk::Types::Entity * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Nepomuk_Types_Entity[] = {
    {(void *)slot_Nepomuk_Types_Entity___ne__, ne_slot},
    {(void *)slot_Nepomuk_Types_Entity___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_Nepomuk_Types_Entity[] = {
    {SIP_MLNAME_CAST(sipName_comment), meth_Nepomuk_Types_Entity_comment, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_icon), meth_Nepomuk_Types_Entity_icon, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isAvailable), meth_Nepomuk_Types_Entity_isAvailable, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Nepomuk_Types_Entity_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_label), meth_Nepomuk_Types_Entity_label, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_name), meth_Nepomuk_Types_Entity_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_reset), meth_Nepomuk_Types_Entity_reset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_uri), meth_Nepomuk_Types_Entity_uri, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Types_Entity = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Types__Entity,
        {0}
    },
    {
        sipNameNr_Entity,
        {43, 255, 0},
        8, methods_Nepomuk_Types_Entity,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Nepomuk_Types_Entity,
    init_Nepomuk_Types_Entity,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Types_Entity,
    0,
    0,
    0,
    release_Nepomuk_Types_Entity,
    cast_Nepomuk_Types_Entity,
    0,
    0,
    0
},
    0,
    0,
    0
};


#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/entity.sip"
#include <nepomuk/entity.h>
#line 3274 "sipnepomukpart6.cpp"


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

    {
        const Nepomuk::Types::Entity * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_Nepomuk_Types_Entity, &a0))
        {
            uint sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Nepomuk::Types::qHash(*a0);
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


static PyMethodDef methods_Nepomuk_Types[] = {
    {SIP_MLNAME_CAST(sipName_qHash), meth_Nepomuk_Types_qHash, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Types = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Nepomuk__Types,
        {0}
    },
    {
        sipNameNr_Types,
        {4, 255, 0},
        1, methods_Nepomuk_Types,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/andterm.sip"
#include <nepomuk/andterm.h>
#line 3361 "sipnepomukpart6.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/term.sip"
#include <nepomuk/term.h>
#line 3365 "sipnepomukpart6.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3368 "sipnepomukpart6.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3371 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/optionalterm.sip"
#include <nepomuk/optionalterm.h>
#line 3374 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/resourcetypeterm.sip"
#include <nepomuk/resourcetypeterm.h>
#line 3377 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/comparisonterm.sip"
#include <nepomuk/comparisonterm.h>
#line 3380 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/orterm.sip"
#include <nepomuk/orterm.h>
#line 3383 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/negationterm.sip"
#include <nepomuk/negationterm.h>
#line 3386 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/resourceterm.sip"
#include <nepomuk/resourceterm.h>
#line 3389 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/literalterm.sip"
#include <nepomuk/literalterm.h>
#line 3392 "sipnepomukpart6.cpp"


class sipNepomuk_Query_AndTerm : public Nepomuk::Query::AndTerm
{
public:
    sipNepomuk_Query_AndTerm();
    sipNepomuk_Query_AndTerm(const Nepomuk::Query::AndTerm&);
    sipNepomuk_Query_AndTerm(const Nepomuk::Query::Term&,const Nepomuk::Query::Term&,const Nepomuk::Query::Term&,const Nepomuk::Query::Term&,const Nepomuk::Query::Term&,const Nepomuk::Query::Term&);
    sipNepomuk_Query_AndTerm(const QList<Nepomuk::Query::Term>&);
    ~sipNepomuk_Query_AndTerm();

public:
    sipSimpleWrapper *sipPySelf;

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

sipNepomuk_Query_AndTerm::sipNepomuk_Query_AndTerm(): Nepomuk::Query::AndTerm(), sipPySelf(0)
{
}

sipNepomuk_Query_AndTerm::sipNepomuk_Query_AndTerm(const Nepomuk::Query::AndTerm& a0): Nepomuk::Query::AndTerm(a0), sipPySelf(0)
{
}

sipNepomuk_Query_AndTerm::sipNepomuk_Query_AndTerm(const Nepomuk::Query::Term& a0,const Nepomuk::Query::Term& a1,const Nepomuk::Query::Term& a2,const Nepomuk::Query::Term& a3,const Nepomuk::Query::Term& a4,const Nepomuk::Query::Term& a5): Nepomuk::Query::AndTerm(a0,a1,a2,a3,a4,a5), sipPySelf(0)
{
}

sipNepomuk_Query_AndTerm::sipNepomuk_Query_AndTerm(const QList<Nepomuk::Query::Term>& a0): Nepomuk::Query::AndTerm(a0), sipPySelf(0)
{
}

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


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

    if (targetType == sipType_Nepomuk_Query_AndTerm)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Nepomuk_Query_GroupTerm)->ctd_cast((Nepomuk::Query::GroupTerm *)(Nepomuk::Query::AndTerm *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipNepomuk_Query_AndTerm *>(sipCppV);
    else
        delete reinterpret_cast<Nepomuk::Query::AndTerm *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Nepomuk_Query_AndTerm(void *, SIP_SSIZE_T, const void *);}
static void assign_Nepomuk_Query_AndTerm(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<Nepomuk::Query::AndTerm *>(sipDst)[sipDstIdx] = *reinterpret_cast<const Nepomuk::Query::AndTerm *>(sipSrc);
}


extern "C" {static void *array_Nepomuk_Query_AndTerm(SIP_SSIZE_T);}
static void *array_Nepomuk_Query_AndTerm(SIP_SSIZE_T sipNrElem)
{
    return new Nepomuk::Query::AndTerm[sipNrElem];
}


extern "C" {static void *copy_Nepomuk_Query_AndTerm(const void *, SIP_SSIZE_T);}
static void *copy_Nepomuk_Query_AndTerm(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new Nepomuk::Query::AndTerm(reinterpret_cast<const Nepomuk::Query::AndTerm *>(sipSrc)[sipSrcIdx]);
}


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Nepomuk::Query::AndTerm * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Nepomuk::Query::Term * a0;
        const Nepomuk::Query::Term * a1;
        const Nepomuk::Query::Term& a2def = Nepomuk::Query::Term();
        const Nepomuk::Query::Term * a2 = &a2def;
        const Nepomuk::Query::Term& a3def = Nepomuk::Query::Term();
        const Nepomuk::Query::Term * a3 = &a3def;
        const Nepomuk::Query::Term& a4def = Nepomuk::Query::Term();
        const Nepomuk::Query::Term * a4 = &a4def;
        const Nepomuk::Query::Term& a5def = Nepomuk::Query::Term();
        const Nepomuk::Query::Term * a5 = &a5def;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9J9|J9J9J9J9", sipType_Nepomuk_Query_Term, &a0, sipType_Nepomuk_Query_Term, &a1, sipType_Nepomuk_Query_Term, &a2, sipType_Nepomuk_Query_Term, &a3, sipType_Nepomuk_Query_Term, &a4, sipType_Nepomuk_Query_Term, &a5))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Query_AndTerm(*a0,*a1,*a2,*a3,*a4,*a5);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QList<Nepomuk::Query::Term> * a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QList_0100Nepomuk_Query_Term,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Query_AndTerm(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<Nepomuk::Query::Term> *>(a0),sipType_QList_0100Nepomuk_Query_Term,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Query_AndTerm = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Query__AndTerm,
        {0}
    },
    {
        sipNameNr_AndTerm,
        {7, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Nepomuk_Query_AndTerm,
    0,
    init_Nepomuk_Query_AndTerm,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Query_AndTerm,
    assign_Nepomuk_Query_AndTerm,
    array_Nepomuk_Query_AndTerm,
    copy_Nepomuk_Query_AndTerm,
    release_Nepomuk_Query_AndTerm,
    cast_Nepomuk_Query_AndTerm,
    0,
    0,
    0
},
    0,
    0,
    0
};
