/*
 * Module code.
 *
 * Generated by SIP 4.10.2 on Sun Jul 11 10:11:26 2010
 */

#include "sipAPInepomuk.h"

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

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/term.sip"
#include <nepomuk/term.h>
#line 16 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/resourcetypeterm.sip"
#include <nepomuk/resourcetypeterm.h>
#line 19 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/comparisonterm.sip"
#include <nepomuk/comparisonterm.h>
#line 22 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/orterm.sip"
#include <nepomuk/orterm.h>
#line 25 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/andterm.sip"
#include <nepomuk/andterm.h>
#line 28 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/resourceterm.sip"
#include <nepomuk/resourceterm.h>
#line 31 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/literalterm.sip"
#include <nepomuk/literalterm.h>
#line 34 "sipnepomukpart6.cpp"


class sipNepomuk_Query_NegationTerm : public Nepomuk::Query::NegationTerm
{
public:
    sipNepomuk_Query_NegationTerm();
    sipNepomuk_Query_NegationTerm(const Nepomuk::Query::NegationTerm&);
    ~sipNepomuk_Query_NegationTerm();

public:
    sipSimpleWrapper *sipPySelf;

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

sipNepomuk_Query_NegationTerm::sipNepomuk_Query_NegationTerm(): Nepomuk::Query::NegationTerm(), sipPySelf(0)
{
}

sipNepomuk_Query_NegationTerm::sipNepomuk_Query_NegationTerm(const Nepomuk::Query::NegationTerm& a0): Nepomuk::Query::NegationTerm(a0), sipPySelf(0)
{
}

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


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::Term(Nepomuk::Query::NegationTerm::negateTerm(*a0));
            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_NegationTerm, sipName_negateTerm, NULL);

    return NULL;
}


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

    if (targetType == sipType_Nepomuk_Query_NegationTerm)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Nepomuk_Query_NegationTerm[] = {
    {SIP_MLNAME_CAST(sipName_negateTerm), meth_Nepomuk_Query_NegationTerm_negateTerm, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Query_NegationTerm = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Query__NegationTerm,
        {0}
    },
    {
        sipNameNr_NegationTerm,
        {6, 255, 0},
        1, methods_Nepomuk_Query_NegationTerm,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Nepomuk_Query_NegationTerm,
    0,
    init_Nepomuk_Query_NegationTerm,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Query_NegationTerm,
    assign_Nepomuk_Query_NegationTerm,
    array_Nepomuk_Query_NegationTerm,
    copy_Nepomuk_Query_NegationTerm,
    release_Nepomuk_Query_NegationTerm,
    cast_Nepomuk_Query_NegationTerm,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/literalterm.sip"
#include <nepomuk/literalterm.h>
#line 256 "sipnepomukpart6.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/literalvalue.sip"
#include <soprano/literalvalue.h>
#line 260 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/term.sip"
#include <nepomuk/term.h>
#line 263 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/resourcetypeterm.sip"
#include <nepomuk/resourcetypeterm.h>
#line 266 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/comparisonterm.sip"
#include <nepomuk/comparisonterm.h>
#line 269 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/orterm.sip"
#include <nepomuk/orterm.h>
#line 272 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/andterm.sip"
#include <nepomuk/andterm.h>
#line 275 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/negationterm.sip"
#include <nepomuk/negationterm.h>
#line 278 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/resourceterm.sip"
#include <nepomuk/resourceterm.h>
#line 281 "sipnepomukpart6.cpp"


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

    {
        Nepomuk::Query::LiteralTerm *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_LiteralTerm, &sipCpp))
        {
            Soprano::LiteralValue *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::LiteralValue(sipCpp->value());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Soprano::LiteralValue * a0;
        Nepomuk::Query::LiteralTerm *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Query_LiteralTerm, &sipCpp, sipType_Soprano_LiteralValue, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setValue(*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_LiteralTerm, sipName_setValue, NULL);

    return NULL;
}


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

    if (targetType == sipType_Nepomuk_Query_LiteralTerm)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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

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

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

            return sipCpp;
        }
    }

    {
        const Soprano::LiteralValue& a0def = Soprano::LiteralValue();
        const Soprano::LiteralValue * a0 = &a0def;

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

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Nepomuk_Query_LiteralTerm[] = {
    {SIP_MLNAME_CAST(sipName_setValue), meth_Nepomuk_Query_LiteralTerm_setValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_value), meth_Nepomuk_Query_LiteralTerm_value, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Query_LiteralTerm = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Query__LiteralTerm,
        {0}
    },
    {
        sipNameNr_LiteralTerm,
        {6, 255, 0},
        2, methods_Nepomuk_Query_LiteralTerm,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Nepomuk_Query_LiteralTerm,
    0,
    init_Nepomuk_Query_LiteralTerm,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Query_LiteralTerm,
    0,
    0,
    0,
    release_Nepomuk_Query_LiteralTerm,
    cast_Nepomuk_Query_LiteralTerm,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/term.sip"
#include <nepomuk/term.h>
#line 474 "sipnepomukpart6.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/resourcetypeterm.sip"
#include <nepomuk/resourcetypeterm.h>
#line 478 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/comparisonterm.sip"
#include <nepomuk/comparisonterm.h>
#line 481 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/orterm.sip"
#include <nepomuk/orterm.h>
#line 484 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/andterm.sip"
#include <nepomuk/andterm.h>
#line 487 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/negationterm.sip"
#include <nepomuk/negationterm.h>
#line 490 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/resourceterm.sip"
#include <nepomuk/resourceterm.h>
#line 493 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/literalterm.sip"
#include <nepomuk/literalterm.h>
#line 496 "sipnepomukpart6.cpp"


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

    {
        Nepomuk::Query::Term *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Term, &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_Term, sipName_isValid, NULL);

    return NULL;
}


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

    {
        Nepomuk::Query::Term *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->type();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Nepomuk_Query_Term_Type);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Query::Term *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isLiteralTerm();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Query::Term *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isResourceTerm();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Query::Term *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isNegationTerm();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Query::Term *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isAndTerm();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Query::Term *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isOrTerm();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Query::Term *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isComparisonTerm();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Query::Term *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isResourceTypeTerm();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Query::Term *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::LiteralTerm(sipCpp->toLiteralTerm());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Query::Term *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::ResourceTerm(sipCpp->toResourceTerm());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Query::Term *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::NegationTerm(sipCpp->toNegationTerm());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Query::Term *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::AndTerm(sipCpp->toAndTerm());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Query::Term *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::OrTerm(sipCpp->toOrTerm());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Query::Term *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::ComparisonTerm(sipCpp->toComparisonTerm());
            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_Term, sipName_toComparisonTerm, NULL);

    return NULL;
}


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

    {
        Nepomuk::Query::Term *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::ResourceTypeTerm(sipCpp->toResourceTypeTerm());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = !sipCpp->Nepomuk::Query::Term::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_Term,sipSelf,sipArg);
}


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Nepomuk::Query::Term::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_Term,sipSelf,sipArg);
}


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Query::Term();
            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::Term(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Nepomuk_Query_Term[] = {
    {SIP_MLNAME_CAST(sipName_isAndTerm), meth_Nepomuk_Query_Term_isAndTerm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isComparisonTerm), meth_Nepomuk_Query_Term_isComparisonTerm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isLiteralTerm), meth_Nepomuk_Query_Term_isLiteralTerm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isNegationTerm), meth_Nepomuk_Query_Term_isNegationTerm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isOrTerm), meth_Nepomuk_Query_Term_isOrTerm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isResourceTerm), meth_Nepomuk_Query_Term_isResourceTerm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isResourceTypeTerm), meth_Nepomuk_Query_Term_isResourceTypeTerm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Nepomuk_Query_Term_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toAndTerm), meth_Nepomuk_Query_Term_toAndTerm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toComparisonTerm), meth_Nepomuk_Query_Term_toComparisonTerm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toLiteralTerm), meth_Nepomuk_Query_Term_toLiteralTerm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toNegationTerm), meth_Nepomuk_Query_Term_toNegationTerm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toOrTerm), meth_Nepomuk_Query_Term_toOrTerm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toResourceTerm), meth_Nepomuk_Query_Term_toResourceTerm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toResourceTypeTerm), meth_Nepomuk_Query_Term_toResourceTypeTerm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_Nepomuk_Query_Term_type, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Nepomuk_Query_Term[] = {
    {sipName_And, Nepomuk::Query::Term::And, 26},
    {sipName_Comparison, Nepomuk::Query::Term::Comparison, 26},
    {sipName_Invalid, Nepomuk::Query::Term::Invalid, 26},
    {sipName_Literal, Nepomuk::Query::Term::Literal, 26},
    {sipName_Negation, Nepomuk::Query::Term::Negation, 26},
    {sipName_Or, Nepomuk::Query::Term::Or, 26},
    {sipName_Resource, Nepomuk::Query::Term::Resource, 26},
    {sipName_ResourceType, Nepomuk::Query::Term::ResourceType, 26},
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Query_Term = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Query__Term,
        {0}
    },
    {
        sipNameNr_Term,
        {6, 255, 0},
        16, methods_Nepomuk_Query_Term,
        8, enummembers_Nepomuk_Query_Term,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Nepomuk_Query_Term,
    init_Nepomuk_Query_Term,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Query_Term,
    assign_Nepomuk_Query_Term,
    array_Nepomuk_Query_Term,
    copy_Nepomuk_Query_Term,
    release_Nepomuk_Query_Term,
    cast_Nepomuk_Query_Term,
    0,
    0,
    0
},
    0,
    0,
    0
};

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

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 44 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 1183 "sipnepomukpart6.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 1186 "sipnepomukpart6.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 1189 "sipnepomukpart6.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 1192 "sipnepomukpart6.cpp"
#line 83 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1195 "sipnepomukpart6.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/property.sip"
#include <nepomuk/property.h>
#line 1198 "sipnepomukpart6.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1201 "sipnepomukpart6.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 44 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 1206 "sipnepomukpart6.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1209 "sipnepomukpart6.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 44 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 1214 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/term.sip"
#include <nepomuk/term.h>
#line 1217 "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;
}


/* 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(sipSelf->u.cppPtr,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::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[] = {{15, 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_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_setIncludeFolders), meth_Nepomuk_Query_FileQuery_setIncludeFolders, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Query_FileQuery = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Query__FileQuery,
        {0}
    },
    {
        sipNameNr_FileQuery,
        {6, 255, 0},
        6, methods_Nepomuk_Query_FileQuery,
        0, 0,
        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.4.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 44 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 1555 "sipnepomukpart6.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/term.sip"
#include <nepomuk/term.h>
#line 1559 "sipnepomukpart6.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 1562 "sipnepomukpart6.cpp"
#line 83 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1565 "sipnepomukpart6.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/property.sip"
#include <nepomuk/property.h>
#line 1568 "sipnepomukpart6.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1571 "sipnepomukpart6.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 1574 "sipnepomukpart6.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 44 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 1579 "sipnepomukpart6.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1582 "sipnepomukpart6.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 44 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 1587 "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);
        }
    }

    /* 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 *slot_Nepomuk_Query_Query___ne__(PyObject *sipSelf,PyObject *sipArg);}
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 *sipSelf,PyObject *sipArg);}
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(sipSelf->u.cppPtr,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_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_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_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_term), meth_Nepomuk_Query_Query_term, 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}
};

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


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Query_Query = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Query__Query,
        {0}
    },
    {
        sipNameNr_Query,
        {6, 255, 0},
        11, 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.4.5/python/pykde4/sip/nepomuk/comparisonterm.sip"
#include <nepomuk/comparisonterm.h>
#line 2146 "sipnepomukpart6.cpp"

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/property.sip"
#include <nepomuk/property.h>
#line 2150 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/term.sip"
#include <nepomuk/term.h>
#line 2153 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/resourcetypeterm.sip"
#include <nepomuk/resourcetypeterm.h>
#line 2156 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/orterm.sip"
#include <nepomuk/orterm.h>
#line 2159 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/andterm.sip"
#include <nepomuk/andterm.h>
#line 2162 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/negationterm.sip"
#include <nepomuk/negationterm.h>
#line 2165 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/resourceterm.sip"
#include <nepomuk/resourceterm.h>
#line 2168 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/literalterm.sip"
#include <nepomuk/literalterm.h>
#line 2171 "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;
}


/* 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 *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Nepomuk_Query_ComparisonTerm(sipSelf->u.cppPtr,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[] = {{24, 255, 1}};


static PyMethodDef methods_Nepomuk_Query_ComparisonTerm[] = {
    {SIP_MLNAME_CAST(sipName_comparator), meth_Nepomuk_Query_ComparisonTerm_comparator, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_property), meth_Nepomuk_Query_ComparisonTerm_property, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setComparator), meth_Nepomuk_Query_ComparisonTerm_setComparator, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProperty), meth_Nepomuk_Query_ComparisonTerm_setProperty, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Nepomuk_Query_ComparisonTerm[] = {
    {sipName_Contains, Nepomuk::Query::ComparisonTerm::Contains, 9},
    {sipName_Equal, Nepomuk::Query::ComparisonTerm::Equal, 9},
    {sipName_Greater, Nepomuk::Query::ComparisonTerm::Greater, 9},
    {sipName_GreaterOrEqual, Nepomuk::Query::ComparisonTerm::GreaterOrEqual, 9},
    {sipName_Regexp, Nepomuk::Query::ComparisonTerm::Regexp, 9},
    {sipName_Smaller, Nepomuk::Query::ComparisonTerm::Smaller, 9},
    {sipName_SmallerOrEqual, Nepomuk::Query::ComparisonTerm::SmallerOrEqual, 9},
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Query_ComparisonTerm = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Query__ComparisonTerm,
        {0}
    },
    {
        sipNameNr_ComparisonTerm,
        {6, 255, 0},
        4, methods_Nepomuk_Query_ComparisonTerm,
        7, 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.4.5/python/pykde4/sip/nepomuk/simpleterm.sip"
#include <nepomuk/simpleterm.h>
#line 2509 "sipnepomukpart6.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/term.sip"
#include <nepomuk/term.h>
#line 2513 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/resourcetypeterm.sip"
#include <nepomuk/resourcetypeterm.h>
#line 2516 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/comparisonterm.sip"
#include <nepomuk/comparisonterm.h>
#line 2519 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/orterm.sip"
#include <nepomuk/orterm.h>
#line 2522 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/andterm.sip"
#include <nepomuk/andterm.h>
#line 2525 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/negationterm.sip"
#include <nepomuk/negationterm.h>
#line 2528 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/resourceterm.sip"
#include <nepomuk/resourceterm.h>
#line 2531 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/literalterm.sip"
#include <nepomuk/literalterm.h>
#line 2534 "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 *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Nepomuk_Query_SimpleTerm(sipSelf->u.cppPtr,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[] = {{25, 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,
        {6, 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
};
