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

#include "sipAPIkio.h"

#line 100 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/kbookmark.sip"
#include <kbookmark.h>
#line 12 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"

#line 325 "/usr/local/share/py-sip/QtXml/qdom.sip"
#include <qdom.h>
#line 16 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 19 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 22 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/kbookmark.sip"
#include <kbookmark.h>
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 31 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 62 "/usr/local/share/py-sip/QtXml/qdom.sip"
#include <qdom.h>
#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"


class sipKBookmarkGroup : public KBookmarkGroup
{
public:
    sipKBookmarkGroup();
    sipKBookmarkGroup(const QDomElement&);
    sipKBookmarkGroup(const KBookmarkGroup&);
    ~sipKBookmarkGroup();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QDomElement sipProtect_nextKnownTag(const QDomElement&,bool) const;

public:
    sipSimpleWrapper *sipPySelf;

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

sipKBookmarkGroup::sipKBookmarkGroup(): KBookmarkGroup(), sipPySelf(0)
{
}

sipKBookmarkGroup::sipKBookmarkGroup(const QDomElement& a0): KBookmarkGroup(a0), sipPySelf(0)
{
}

sipKBookmarkGroup::sipKBookmarkGroup(const KBookmarkGroup& a0): KBookmarkGroup(a0), sipPySelf(0)
{
}

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

QDomElement sipKBookmarkGroup::sipProtect_nextKnownTag(const QDomElement& a0,bool a1) const
{
    return KBookmarkGroup::nextKnownTag(a0,a1);
}


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

    {
        KBookmarkGroup *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isOpen();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KBookmarkGroup *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KBookmark(sipCpp->first());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KBookmark * a0;
        KBookmarkGroup *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KBookmarkGroup, &sipCpp, sipType_KBookmark, &a0))
        {
            KBookmark *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KBookmark(sipCpp->previous(*a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KBookmark * a0;
        KBookmarkGroup *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KBookmarkGroup, &sipCpp, sipType_KBookmark, &a0))
        {
            KBookmark *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KBookmark(sipCpp->next(*a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KBookmark * a0;
        KBookmarkGroup *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KBookmarkGroup, &sipCpp, sipType_KBookmark, &a0))
        {
            int sipRes;

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

    {
        KBookmarkGroup *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KBookmark(sipCpp->createNewSeparator());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KBookmark * a0;
        KBookmarkGroup *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KBookmarkGroup, &sipCpp, sipType_KBookmark, &a0))
        {
            KBookmark *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KBookmark(sipCpp->addBookmark(*a0));
            Py_END_ALLOW_THREADS

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

    {
        const QString * a0;
        int a0State = 0;
        const KUrl * a1;
        const QString& a2def = QString();
        const QString * a2 = &a2def;
        int a2State = 0;
        KBookmarkGroup *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J9|J1", &sipSelf, sipType_KBookmarkGroup, &sipCpp, sipType_QString,&a0, &a0State, sipType_KUrl, &a1, sipType_QString,&a2, &a2State))
        {
            KBookmark *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KBookmark(sipCpp->addBookmark(*a0,*a1,*a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

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

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

    return NULL;
}


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

    {
        const KBookmark * a0;
        const KBookmark * a1;
        KBookmarkGroup *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_KBookmarkGroup, &sipCpp, sipType_KBookmark, &a0, sipType_KBookmark, &a1))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KBookmark * a0;
        const KBookmark * a1;
        KBookmarkGroup *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_KBookmarkGroup, &sipCpp, sipType_KBookmark, &a0, sipType_KBookmark, &a1))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KBookmark * a0;
        KBookmarkGroup *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KBookmarkGroup, &sipCpp, sipType_KBookmark, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->deleteBookmark(*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_KBookmarkGroup, sipName_deleteBookmark, NULL);

    return NULL;
}


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

    {
        KBookmarkGroup *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isToolbarGroup();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KBookmarkGroup *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDomElement(sipCpp->findToolbar());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KBookmarkGroup *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KBookmarkGroup, &sipCpp))
        {
            QList<KUrl> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KUrl>(sipCpp->groupUrlList());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QDomElement * a0;
        bool a1;
        sipKBookmarkGroup *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9b", &sipSelf, sipType_KBookmarkGroup, &sipCpp, sipType_QDomElement, &a0, &a1))
        {
            QDomElement *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDomElement(sipCpp->sipProtect_nextKnownTag(*a0,a1));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    if (targetType == sipType_KBookmarkGroup)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KBookmark)->ctd_cast((KBookmark *)(KBookmarkGroup *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKBookmarkGroup *>(sipCppV);
    else
        delete reinterpret_cast<KBookmarkGroup *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KBookmarkGroup(void *, SIP_SSIZE_T, const void *);}
static void assign_KBookmarkGroup(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KBookmarkGroup *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KBookmarkGroup *>(sipSrc);
}


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


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


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QDomElement * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const KBookmarkGroup * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KBookmarkGroup[] = {
    {SIP_MLNAME_CAST(sipName_addBookmark), meth_KBookmarkGroup_addBookmark, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createNewFolder), meth_KBookmarkGroup_createNewFolder, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createNewSeparator), meth_KBookmarkGroup_createNewSeparator, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deleteBookmark), meth_KBookmarkGroup_deleteBookmark, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findToolbar), meth_KBookmarkGroup_findToolbar, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_first), meth_KBookmarkGroup_first, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_groupUrlList), meth_KBookmarkGroup_groupUrlList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_indexOf), meth_KBookmarkGroup_indexOf, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isOpen), meth_KBookmarkGroup_isOpen, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isToolbarGroup), meth_KBookmarkGroup_isToolbarGroup, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_moveBookmark), meth_KBookmarkGroup_moveBookmark, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_moveItem), meth_KBookmarkGroup_moveItem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_next), meth_KBookmarkGroup_next, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_nextKnownTag), meth_KBookmarkGroup_nextKnownTag, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_previous), meth_KBookmarkGroup_previous, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kio_KBookmarkGroup = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KBookmarkGroup,
        {0}
    },
    {
        sipNameNr_KBookmarkGroup,
        {0, 0, 1},
        15, methods_KBookmarkGroup,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KBookmarkGroup,
    0,
    init_KBookmarkGroup,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KBookmarkGroup,
    assign_KBookmarkGroup,
    array_KBookmarkGroup,
    copy_KBookmarkGroup,
    release_KBookmarkGroup,
    cast_KBookmarkGroup,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/kbookmark.sip"
#include <kbookmark.h>
#line 715 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"

#line 31 "/usr/local/share/py-sip/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 719 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 206 "/usr/local/share/py-sip/QtXml/qdom.sip"
#include <qdom.h>
#line 722 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 725 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"


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

    {
        QMimeData * a0;
        KBookmark::List *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KBookmark_List, &sipCpp, sipType_QMimeData, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->populateMimeData(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_List, sipName_populateMimeData, NULL);

    return NULL;
}


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

    {
        const QMimeData * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8", sipType_QMimeData, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KBookmark::List::canDecode(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(KBookmark::List::mimeDataTypes());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QMimeData * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8", sipType_QMimeData, &a0))
        {
            KBookmark::List *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KBookmark::List(KBookmark::List::fromMimeData(a0));
            Py_END_ALLOW_THREADS

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

    {
        const QMimeData * a0;
        QDomDocument * a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8J9", sipType_QMimeData, &a0, sipType_QDomDocument, &a1))
        {
            KBookmark::List *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KBookmark::List(KBookmark::List::fromMimeData(a0,*a1));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    return NULL;
}


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

    delete reinterpret_cast<KBookmark::List *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_KBookmark_List(SIP_SSIZE_T);}
static void *array_KBookmark_List(SIP_SSIZE_T sipNrElem)
{
    return new KBookmark::List[sipNrElem];
}


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


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


extern "C" {static void *init_KBookmark_List(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_KBookmark_List(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KBookmark::List *sipCpp = 0;

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

            return sipCpp;
        }
    }

    {
        const KBookmark::List * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KBookmark_List, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KBookmark::List(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KBookmark_List[] = {
    {SIP_MLNAME_CAST(sipName_canDecode), meth_KBookmark_List_canDecode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromMimeData), meth_KBookmark_List_fromMimeData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mimeDataTypes), meth_KBookmark_List_mimeDataTypes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_populateMimeData), meth_KBookmark_List_populateMimeData, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kio_KBookmark_List = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KBookmark__List,
        {0}
    },
    {
        sipNameNr_List,
        {13, 255, 0},
        4, methods_KBookmark_List,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_KBookmark_List,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KBookmark_List,
    assign_KBookmark_List,
    array_KBookmark_List,
    copy_KBookmark_List,
    release_KBookmark_List,
    cast_KBookmark_List,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/kbookmark.sip"
#include <kbookmark.h>
#line 997 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"

#line 325 "/usr/local/share/py-sip/QtXml/qdom.sip"
#include <qdom.h>
#line 1001 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1004 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 1007 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 62 "/usr/local/share/py-sip/QtXml/qdom.sip"
#include <qdom.h>
#line 1010 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 100 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/kbookmark.sip"
#include <kbookmark.h>
#line 1013 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 1016 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"


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

    {
        const QString * a0;
        int a0State = 0;
        const KUrl * a1;
        const QString& a2def = QString();
        const QString * a2 = &a2def;
        int a2State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J9|J1", sipType_QString,&a0, &a0State, sipType_KUrl, &a1, sipType_QString,&a2, &a2State))
        {
            KBookmark *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KBookmark(KBookmark::standaloneBookmark(*a0,*a1,*a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

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

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

    return NULL;
}


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

    {
        KBookmark *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isGroup();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KBookmark *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isSeparator();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KBookmark *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isNull();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KBookmark *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasParent();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KBookmark *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KBookmark *sipCpp;

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KBookmark, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setFullText(*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_KBookmark, sipName_setFullText, NULL);

    return NULL;
}


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

    {
        KBookmark *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl(sipCpp->url());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KUrl * a0;
        KBookmark *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KBookmark, &sipCpp, sipType_KUrl, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setUrl(*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_KBookmark, sipName_setUrl, NULL);

    return NULL;
}


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

    {
        KBookmark *sipCpp;

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KBookmark, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setIcon(*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_KBookmark, sipName_setIcon, NULL);

    return NULL;
}


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

    {
        KBookmark *sipCpp;

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KBookmark, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setMimeType(*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_KBookmark, sipName_setMimeType, NULL);

    return NULL;
}


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

    {
        KBookmark *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->showInToolbar();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KBookmark *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KBookmark, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setShowInToolbar(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_KBookmark, sipName_setShowInToolbar, NULL);

    return NULL;
}


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

    {
        KBookmark *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KBookmarkGroup(sipCpp->parentGroup());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KBookmark *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KBookmarkGroup(sipCpp->toGroup());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KBookmark *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KBookmark *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->positionInParent();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            uint sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KBookmark::positionInParent(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KBookmark *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDomElement(sipCpp->internalElement());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KBookmark *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KBookmark, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->updateAccessMetadata();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KBookmark::parentAddress(*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_KBookmark, sipName_parentAddress, NULL);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KBookmark::previousAddress(*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_KBookmark, sipName_previousAddress, NULL);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KBookmark::nextAddress(*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_KBookmark, sipName_nextAddress, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(KBookmark::commonParent(*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_QString,NULL);
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        bool a1;
        KBookmark *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1b", &sipSelf, sipType_KBookmark, &sipCpp, sipType_QString,&a0, &a0State, &a1))
        {
            QDomNode *sipRes;

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

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

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->metaDataItem(*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_KBookmark, sipName_metaDataItem, NULL);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;
        KBookmark::MetaDataOverwriteMode a2 = KBookmark::OverwriteMetaData;
        KBookmark *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1|E", &sipSelf, sipType_KBookmark, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_KBookmark_MetaDataOverwriteMode, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setMetaDataItem(*a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QMimeData * a0;
        KBookmark *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KBookmark, &sipCpp, sipType_QMimeData, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->populateMimeData(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_KBookmark, sipName_populateMimeData, NULL);

    return NULL;
}


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

    {
        KBookmark *sipCpp;

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KBookmark, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDescription(*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_KBookmark, sipName_setDescription, NULL);

    return NULL;
}


extern "C" {static PyObject *slot_KBookmark___ne__(PyObject *,PyObject *);}
static PyObject *slot_KBookmark___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KBookmark *sipCpp = reinterpret_cast<KBookmark *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KBookmark));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KBookmark * a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kio,ne_slot,sipType_KBookmark,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KBookmark___eq__(PyObject *,PyObject *);}
static PyObject *slot_KBookmark___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KBookmark *sipCpp = reinterpret_cast<KBookmark *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KBookmark));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KBookmark * a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kio,eq_slot,sipType_KBookmark,sipSelf,sipArg);
}


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

    return NULL;
}


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

    delete reinterpret_cast<KBookmark *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KBookmark(void *, SIP_SSIZE_T, const void *);}
static void assign_KBookmark(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KBookmark *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KBookmark *>(sipSrc);
}


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const QDomElement * a0;

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

            return sipCpp;
        }
    }

    {
        const KBookmark * a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KBookmark[] = {
    {SIP_MLNAME_CAST(sipName_address), meth_KBookmark_address, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_commonParent), meth_KBookmark_commonParent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_description), meth_KBookmark_description, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fullText), meth_KBookmark_fullText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasParent), meth_KBookmark_hasParent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_icon), meth_KBookmark_icon, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_internalElement), meth_KBookmark_internalElement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isGroup), meth_KBookmark_isGroup, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isNull), meth_KBookmark_isNull, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isSeparator), meth_KBookmark_isSeparator, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_metaData), meth_KBookmark_metaData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_metaDataItem), meth_KBookmark_metaDataItem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mimeType), meth_KBookmark_mimeType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_nextAddress), meth_KBookmark_nextAddress, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentAddress), meth_KBookmark_parentAddress, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentGroup), meth_KBookmark_parentGroup, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_populateMimeData), meth_KBookmark_populateMimeData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_positionInParent), meth_KBookmark_positionInParent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_previousAddress), meth_KBookmark_previousAddress, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDescription), meth_KBookmark_setDescription, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setFullText), meth_KBookmark_setFullText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setIcon), meth_KBookmark_setIcon, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMetaDataItem), meth_KBookmark_setMetaDataItem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMimeType), meth_KBookmark_setMimeType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setShowInToolbar), meth_KBookmark_setShowInToolbar, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setUrl), meth_KBookmark_setUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_showInToolbar), meth_KBookmark_showInToolbar, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_standaloneBookmark), meth_KBookmark_standaloneBookmark, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_text), meth_KBookmark_text, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toGroup), meth_KBookmark_toGroup, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_updateAccessMetadata), meth_KBookmark_updateAccessMetadata, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_url), meth_KBookmark_url, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KBookmark[] = {
    {sipName_DontOverwriteMetaData, KBookmark::DontOverwriteMetaData, 15},
    {sipName_OverwriteMetaData, KBookmark::OverwriteMetaData, 15},
};


pyqt4ClassTypeDef sipTypeDef_kio_KBookmark = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KBookmark,
        {0}
    },
    {
        sipNameNr_KBookmark,
        {0, 0, 1},
        32, methods_KBookmark,
        2, enummembers_KBookmark,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KBookmark,
    init_KBookmark,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KBookmark,
    assign_KBookmark,
    array_KBookmark,
    copy_KBookmark,
    release_KBookmark,
    cast_KBookmark,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 48 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/kautomount.sip"
#include <kautomount.h>
#line 2207 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2211 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2214 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2217 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2220 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 2223 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2226 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2229 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2232 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2235 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2238 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 2241 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 2244 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 2247 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"


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

    if (targetType == sipType_KAutoUnmount)
        return ptr;

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

    return NULL;
}


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


    Py_END_ALLOW_THREADS
}


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

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1J1", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KAutoUnmount(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return sipCpp;
        }
    }

    return NULL;
}


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


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_KAutoUnmount[] = {
    {"error()", 0, 0},
    {"finished()", 0, 0},
    {0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_kio_KAutoUnmount = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KAutoUnmount,
        {0}
    },
    {
        sipNameNr_KAutoUnmount,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KAutoUnmount,
    0,
    init_KAutoUnmount,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    release_KAutoUnmount,
    cast_KAutoUnmount,
    0,
    0,
    0
},
    &KAutoUnmount::staticMetaObject,
    0,
    pyqt4_signals_KAutoUnmount
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/kautomount.sip"
#include <kautomount.h>
#line 2368 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"

#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2372 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2375 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2378 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2381 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2384 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 2387 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2390 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2393 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2396 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2399 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 2402 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 2405 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 2408 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"


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

    if (targetType == sipType_KAutoMount)
        return ptr;

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

    return NULL;
}


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


    Py_END_ALLOW_THREADS
}


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

    {
        bool a0;
        const QByteArray * a1;
        int a1State = 0;
        const QString * a2;
        int a2State = 0;
        const QString * a3;
        int a3State = 0;
        const QString * a4;
        int a4State = 0;
        bool a5 = 1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "bJ1J1J1J1|b", &a0, sipType_QByteArray, &a1, &a1State, sipType_QString,&a2, &a2State, sipType_QString,&a3, &a3State, sipType_QString,&a4, &a4State, &a5))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KAutoMount(a0,*a1,*a2,*a3,*a4,a5);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);
            sipReleaseType(const_cast<QString *>(a4),sipType_QString,a4State);

            return sipCpp;
        }
    }

    return NULL;
}


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


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_KAutoMount[] = {
    {"error()", 0, 0},
    {"finished()", 0, 0},
    {0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_kio_KAutoMount = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KAutoMount,
        {0}
    },
    {
        sipNameNr_KAutoMount,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KAutoMount,
    0,
    init_KAutoMount,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    release_KAutoMount,
    cast_KAutoMount,
    0,
    0,
    0
},
    &KAutoMount::staticMetaObject,
    0,
    pyqt4_signals_KAutoMount
};

#line 156 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/karchive.sip"
#include <karchive.h>
#line 2537 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"

#line 35 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/karchive.sip"
#include <karchive.h>
#line 2541 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2544 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 93 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/karchive.sip"
#include <karchive.h>
#line 2547 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 2550 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 360 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 2553 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"


class sipKArchiveDirectory : public KArchiveDirectory
{
public:
    sipKArchiveDirectory(KArchive *,const QString&,int,int,const QString&,const QString&,const QString&);
    virtual ~sipKArchiveDirectory();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    KArchive * sipProtect_archive() const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool isDirectory() const;
    bool isFile() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[2];
};

sipKArchiveDirectory::sipKArchiveDirectory(KArchive *a0,const QString& a1,int a2,int a3,const QString& a4,const QString& a5,const QString& a6): KArchiveDirectory(a0,a1,a2,a3,a4,a5,a6), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

bool sipKArchiveDirectory::isDirectory() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_isDirectory);

    if (!sipMeth)
        return KArchiveDirectory::isDirectory();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kio_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

bool sipKArchiveDirectory::isFile() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_isFile);

    if (!sipMeth)
        return KArchiveEntry::isFile();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kio_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

KArchive * sipKArchiveDirectory::sipProtect_archive() const
{
    return KArchiveEntry::archive();
}


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

    {
        sipKArchiveDirectory *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_archive();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KArchiveDirectory *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->entries());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KArchiveDirectory, &sipCpp, sipType_QString,&a0, &a0State))
        {
            const KArchiveEntry *sipRes;

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

            return sipConvertFromType(const_cast<KArchiveEntry *>(sipRes),sipType_KArchiveEntry,NULL);
        }
    }

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

    return NULL;
}


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

    {
        KArchiveEntry * a0;
        KArchiveDirectory *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KArchiveDirectory, &sipCpp, sipType_KArchiveEntry, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addEntry(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_KArchiveDirectory, sipName_addEntry, NULL);

    return NULL;
}


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

    {
        KArchiveDirectory *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KArchiveDirectory::isDirectory() : sipCpp->isDirectory());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        bool a1 = 1;
        KArchiveDirectory *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|b", &sipSelf, sipType_KArchiveDirectory, &sipCpp, sipType_QString,&a0, &a0State, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->copyTo(*a0,a1);
            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_KArchiveDirectory, sipName_copyTo, NULL);

    return NULL;
}


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

    if (targetType == sipType_KArchiveDirectory)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KArchiveEntry)->ctd_cast((KArchiveEntry *)(KArchiveDirectory *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKArchiveDirectory *>(sipCppV);
    else
        delete reinterpret_cast<KArchiveDirectory *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        KArchive * a0;
        const QString * a1;
        int a1State = 0;
        int a2;
        int a3;
        const QString * a4;
        int a4State = 0;
        const QString * a5;
        int a5State = 0;
        const QString * a6;
        int a6State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8J1iiJ1J1J1", sipType_KArchive, &a0, sipType_QString,&a1, &a1State, &a2, &a3, sipType_QString,&a4, &a4State, sipType_QString,&a5, &a5State, sipType_QString,&a6, &a6State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKArchiveDirectory(a0,*a1,a2,a3,*a4,*a5,*a6);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a4),sipType_QString,a4State);
            sipReleaseType(const_cast<QString *>(a5),sipType_QString,a5State);
            sipReleaseType(const_cast<QString *>(a6),sipType_QString,a6State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KArchiveDirectory[] = {
    {SIP_MLNAME_CAST(sipName_addEntry), meth_KArchiveDirectory_addEntry, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_archive), meth_KArchiveDirectory_archive, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_copyTo), meth_KArchiveDirectory_copyTo, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_entries), meth_KArchiveDirectory_entries, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_entry), meth_KArchiveDirectory_entry, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDirectory), meth_KArchiveDirectory_isDirectory, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kio_KArchiveDirectory = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KArchiveDirectory,
        {0}
    },
    {
        sipNameNr_KArchiveDirectory,
        {0, 0, 1},
        6, methods_KArchiveDirectory,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KArchiveDirectory,
    0,
    init_KArchiveDirectory,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KArchiveDirectory,
    0,
    0,
    0,
    release_KArchiveDirectory,
    cast_KArchiveDirectory,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 126 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/karchive.sip"
#include <karchive.h>
#line 2949 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"

#line 35 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/karchive.sip"
#include <karchive.h>
#line 2953 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2956 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 2959 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2962 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 360 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 2965 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"


class sipKArchiveFile : public KArchiveFile
{
public:
    sipKArchiveFile(KArchive *,const QString&,int,int,const QString&,const QString&,const QString&,qint64,qint64);
    virtual ~sipKArchiveFile();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    KArchive * sipProtect_archive() const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    QByteArray data() const;
    QIODevice * createDevice() const;
    bool isFile() const;
    bool isDirectory() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[4];
};

sipKArchiveFile::sipKArchiveFile(KArchive *a0,const QString& a1,int a2,int a3,const QString& a4,const QString& a5,const QString& a6,qint64 a7,qint64 a8): KArchiveFile(a0,a1,a2,a3,a4,a5,a6,a7,a8), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

QByteArray sipKArchiveFile::data() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_data);

    if (!sipMeth)
        return KArchiveFile::data();

    typedef QByteArray (*sipVH_QtCore_14)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_14)(sipModuleAPI_kio_QtCore->em_virthandlers[14]))(sipGILState,sipMeth);
}

QIODevice * sipKArchiveFile::createDevice() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_createDevice);

    if (!sipMeth)
        return KArchiveFile::createDevice();

    extern QIODevice * sipVH_kio_21(sip_gilstate_t,PyObject *);

    return sipVH_kio_21(sipGILState,sipMeth);
}

bool sipKArchiveFile::isFile() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,NULL,sipName_isFile);

    if (!sipMeth)
        return KArchiveFile::isFile();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kio_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

bool sipKArchiveFile::isDirectory() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,NULL,sipName_isDirectory);

    if (!sipMeth)
        return KArchiveEntry::isDirectory();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kio_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

KArchive * sipKArchiveFile::sipProtect_archive() const
{
    return KArchiveEntry::archive();
}


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

    {
        sipKArchiveFile *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_archive();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KArchiveFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KArchiveFile, &sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->position();
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KArchiveFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KArchiveFile, &sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->size();
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        qint64 a0;
        KArchiveFile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_KArchiveFile, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSize(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_KArchiveFile, sipName_setSize, NULL);

    return NULL;
}


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

    {
        KArchiveFile *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray((sipSelfWasArg ? sipCpp->KArchiveFile::data() : sipCpp->data()));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KArchiveFile *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KArchiveFile::createDevice() : sipCpp->createDevice());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KArchiveFile *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KArchiveFile::isFile() : sipCpp->isFile());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KArchiveFile, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->copyTo(*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_KArchiveFile, sipName_copyTo, NULL);

    return NULL;
}


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

    if (targetType == sipType_KArchiveFile)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KArchiveEntry)->ctd_cast((KArchiveEntry *)(KArchiveFile *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKArchiveFile *>(sipCppV);
    else
        delete reinterpret_cast<KArchiveFile *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        KArchive * a0;
        const QString * a1;
        int a1State = 0;
        int a2;
        int a3;
        const QString * a4;
        int a4State = 0;
        const QString * a5;
        int a5State = 0;
        const QString * a6;
        int a6State = 0;
        qint64 a7;
        qint64 a8;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8J1iiJ1J1J1nn", sipType_KArchive, &a0, sipType_QString,&a1, &a1State, &a2, &a3, sipType_QString,&a4, &a4State, sipType_QString,&a5, &a5State, sipType_QString,&a6, &a6State, &a7, &a8))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKArchiveFile(a0,*a1,a2,a3,*a4,*a5,*a6,a7,a8);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a4),sipType_QString,a4State);
            sipReleaseType(const_cast<QString *>(a5),sipType_QString,a5State);
            sipReleaseType(const_cast<QString *>(a6),sipType_QString,a6State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KArchiveFile[] = {
    {SIP_MLNAME_CAST(sipName_archive), meth_KArchiveFile_archive, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_copyTo), meth_KArchiveFile_copyTo, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createDevice), meth_KArchiveFile_createDevice, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_data), meth_KArchiveFile_data, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isFile), meth_KArchiveFile_isFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_position), meth_KArchiveFile_position, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSize), meth_KArchiveFile_setSize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_size), meth_KArchiveFile_size, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kio_KArchiveFile = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KArchiveFile,
        {0}
    },
    {
        sipNameNr_KArchiveFile,
        {0, 0, 1},
        8, methods_KArchiveFile,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KArchiveFile,
    0,
    init_KArchiveFile,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KArchiveFile,
    0,
    0,
    0,
    release_KArchiveFile,
    cast_KArchiveFile,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 93 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/karchive.sip"
#include <karchive.h>
#line 3449 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"

#line 35 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/karchive.sip"
#include <karchive.h>
#line 3453 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3456 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 360 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 3459 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"


class sipKArchiveEntry : public KArchiveEntry
{
public:
    sipKArchiveEntry(KArchive *,const QString&,int,int,const QString&,const QString&,const QString&);
    virtual ~sipKArchiveEntry();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    KArchive * sipProtect_archive() const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool isFile() const;
    bool isDirectory() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[2];
};

sipKArchiveEntry::sipKArchiveEntry(KArchive *a0,const QString& a1,int a2,int a3,const QString& a4,const QString& a5,const QString& a6): KArchiveEntry(a0,a1,a2,a3,a4,a5,a6), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

bool sipKArchiveEntry::isFile() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_isFile);

    if (!sipMeth)
        return KArchiveEntry::isFile();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kio_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

bool sipKArchiveEntry::isDirectory() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_isDirectory);

    if (!sipMeth)
        return KArchiveEntry::isDirectory();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kio_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

KArchive * sipKArchiveEntry::sipProtect_archive() const
{
    return KArchiveEntry::archive();
}


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

    {
        KArchiveEntry *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDateTime(sipCpp->datetime());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KArchiveEntry *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->date();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KArchiveEntry *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KArchiveEntry, &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_KArchiveEntry, sipName_name, NULL);

    return NULL;
}


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

    {
        KArchiveEntry *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KArchiveEntry, &sipCpp))
        {
            mode_t sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->permissions();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KArchiveEntry *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KArchiveEntry *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KArchiveEntry *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KArchiveEntry *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KArchiveEntry::isFile() : sipCpp->isFile());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KArchiveEntry *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KArchiveEntry::isDirectory() : sipCpp->isDirectory());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        sipKArchiveEntry *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_archive();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKArchiveEntry *>(sipCppV);
    else
        delete reinterpret_cast<KArchiveEntry *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        KArchive * a0;
        const QString * a1;
        int a1State = 0;
        int a2;
        int a3;
        const QString * a4;
        int a4State = 0;
        const QString * a5;
        int a5State = 0;
        const QString * a6;
        int a6State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8J1iiJ1J1J1", sipType_KArchive, &a0, sipType_QString,&a1, &a1State, &a2, &a3, sipType_QString,&a4, &a4State, sipType_QString,&a5, &a5State, sipType_QString,&a6, &a6State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKArchiveEntry(a0,*a1,a2,a3,*a4,*a5,*a6);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a4),sipType_QString,a4State);
            sipReleaseType(const_cast<QString *>(a5),sipType_QString,a5State);
            sipReleaseType(const_cast<QString *>(a6),sipType_QString,a6State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KArchiveEntry[] = {
    {SIP_MLNAME_CAST(sipName_archive), meth_KArchiveEntry_archive, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_date), meth_KArchiveEntry_date, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_datetime), meth_KArchiveEntry_datetime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_group), meth_KArchiveEntry_group, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDirectory), meth_KArchiveEntry_isDirectory, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isFile), meth_KArchiveEntry_isFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_name), meth_KArchiveEntry_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_permissions), meth_KArchiveEntry_permissions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_symLinkTarget), meth_KArchiveEntry_symLinkTarget, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_user), meth_KArchiveEntry_user, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kio_KArchiveEntry = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KArchiveEntry,
        {0}
    },
    {
        sipNameNr_KArchiveEntry,
        {0, 0, 1},
        10, methods_KArchiveEntry,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_KArchiveEntry,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KArchiveEntry,
    0,
    0,
    0,
    release_KArchiveEntry,
    cast_KArchiveEntry,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 35 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/kar.sip"
#include <kar.h>
#line 3953 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3957 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 3960 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 3963 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 156 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/karchive.sip"
#include <karchive.h>
#line 3966 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"


class sipKAr : public KAr
{
public:
    sipKAr(const QString&);
    sipKAr(QIODevice *);
    virtual ~sipKAr();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    KArchiveDirectory * sipProtectVirt_rootDir(bool);
    KArchiveDirectory * sipProtect_findOrCreate(const QString&);
    bool sipProtectVirt_createDevice(bool,QIODevice::OpenMode);
    void sipProtect_setDevice(QIODevice *);
    void sipProtect_setRootDir(KArchiveDirectory *);
    bool sipProtectVirt_doPrepareWriting(bool,const QString&,const QString&,const QString&,qint64,mode_t,time_t,time_t,time_t);
    bool sipProtectVirt_doFinishWriting(bool,qint64);
    bool sipProtectVirt_doWriteDir(bool,const QString&,const QString&,const QString&,mode_t,time_t,time_t,time_t);
    bool sipProtectVirt_doWriteSymLink(bool,const QString&,const QString&,const QString&,const QString&,mode_t,time_t,time_t,time_t);
    bool sipProtectVirt_openArchive(bool,QIODevice::OpenMode);
    bool sipProtectVirt_closeArchive(bool);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool doPrepareWriting(const QString&,const QString&,const QString&,qint64,mode_t,time_t,time_t,time_t);
    bool doFinishWriting(qint64);
    bool doWriteDir(const QString&,const QString&,const QString&,mode_t,time_t,time_t,time_t);
    bool doWriteSymLink(const QString&,const QString&,const QString&,const QString&,mode_t,time_t,time_t,time_t);
    bool openArchive(QIODevice::OpenMode);
    bool closeArchive();
    bool open(QIODevice::OpenMode);
    bool close();
    bool writeDir(const QString&,const QString&,const QString&,mode_t,time_t,time_t,time_t);
    bool writeSymLink(const QString&,const QString&,const QString&,const QString&,mode_t,time_t,time_t,time_t);
    bool writeFile(const QString&,const QString&,const QString&,const char *,qint64,mode_t,time_t,time_t,time_t);
    bool prepareWriting(const QString&,const QString&,const QString&,qint64,mode_t,time_t,time_t,time_t);
    bool writeData(const char *,qint64);
    bool finishWriting(qint64);
    KArchiveDirectory * rootDir();
    bool createDevice(QIODevice::OpenMode);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[16];
};

sipKAr::sipKAr(const QString& a0): KAr(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKAr::sipKAr(QIODevice *a0): KAr(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

bool sipKAr::doPrepareWriting(const QString& a0,const QString& a1,const QString& a2,qint64 a3,mode_t a4,time_t a5,time_t a6,time_t a7)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KAr::doPrepareWriting(a0,a1,a2,a3,a4,a5,a6,a7);

    extern bool sipVH_kio_23(sip_gilstate_t,PyObject *,const QString&,const QString&,const QString&,PY_LONG_LONG,uint,long,long,long);

    return sipVH_kio_23(sipGILState,sipMeth,a0,a1,a2,a3,a4,a5,a6,a7);
}

bool sipKAr::doFinishWriting(qint64 a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KAr::doFinishWriting(a0);

    typedef bool (*sipVH_QtCore_32)(sip_gilstate_t,PyObject *,PY_LONG_LONG);

    return ((sipVH_QtCore_32)(sipModuleAPI_kio_QtCore->em_virthandlers[32]))(sipGILState,sipMeth,a0);
}

bool sipKAr::doWriteDir(const QString& a0,const QString& a1,const QString& a2,mode_t a3,time_t a4,time_t a5,time_t a6)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KAr::doWriteDir(a0,a1,a2,a3,a4,a5,a6);

    extern bool sipVH_kio_22(sip_gilstate_t,PyObject *,const QString&,const QString&,const QString&,uint,long,long,long);

    return sipVH_kio_22(sipGILState,sipMeth,a0,a1,a2,a3,a4,a5,a6);
}

bool sipKAr::doWriteSymLink(const QString& a0,const QString& a1,const QString& a2,const QString& a3,mode_t a4,time_t a5,time_t a6,time_t a7)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KAr::doWriteSymLink(a0,a1,a2,a3,a4,a5,a6,a7);

    extern bool sipVH_kio_24(sip_gilstate_t,PyObject *,const QString&,const QString&,const QString&,const QString&,uint,long,long,long);

    return sipVH_kio_24(sipGILState,sipMeth,a0,a1,a2,a3,a4,a5,a6,a7);
}

bool sipKAr::openArchive(QIODevice::OpenMode a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KAr::openArchive(a0);

    typedef bool (*sipVH_QtCore_15)(sip_gilstate_t,PyObject *,QIODevice::OpenMode);

    return ((sipVH_QtCore_15)(sipModuleAPI_kio_QtCore->em_virthandlers[15]))(sipGILState,sipMeth,a0);
}

bool sipKAr::closeArchive()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KAr::closeArchive();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kio_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

bool sipKAr::open(QIODevice::OpenMode a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KArchive::open(a0);

    typedef bool (*sipVH_QtCore_15)(sip_gilstate_t,PyObject *,QIODevice::OpenMode);

    return ((sipVH_QtCore_15)(sipModuleAPI_kio_QtCore->em_virthandlers[15]))(sipGILState,sipMeth,a0);
}

bool sipKAr::close()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KArchive::close();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kio_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

bool sipKAr::writeDir(const QString& a0,const QString& a1,const QString& a2,mode_t a3,time_t a4,time_t a5,time_t a6)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KArchive::writeDir(a0,a1,a2,a3,a4,a5,a6);

    extern bool sipVH_kio_22(sip_gilstate_t,PyObject *,const QString&,const QString&,const QString&,uint,long,long,long);

    return sipVH_kio_22(sipGILState,sipMeth,a0,a1,a2,a3,a4,a5,a6);
}

bool sipKAr::writeSymLink(const QString& a0,const QString& a1,const QString& a2,const QString& a3,mode_t a4,time_t a5,time_t a6,time_t a7)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KArchive::writeSymLink(a0,a1,a2,a3,a4,a5,a6,a7);

    extern bool sipVH_kio_24(sip_gilstate_t,PyObject *,const QString&,const QString&,const QString&,const QString&,uint,long,long,long);

    return sipVH_kio_24(sipGILState,sipMeth,a0,a1,a2,a3,a4,a5,a6,a7);
}

bool sipKAr::writeFile(const QString& a0,const QString& a1,const QString& a2,const char *a3,qint64 a4,mode_t a5,time_t a6,time_t a7,time_t a8)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KArchive::writeFile(a0,a1,a2,a3,a4,a5,a6,a7,a8);

    extern bool sipVH_kio_76(sip_gilstate_t,PyObject *,const QString&,const QString&,const QString&,const char *,PY_LONG_LONG,uint,long,long,long);

    return sipVH_kio_76(sipGILState,sipMeth,a0,a1,a2,a3,a4,a5,a6,a7,a8);
}

bool sipKAr::prepareWriting(const QString& a0,const QString& a1,const QString& a2,qint64 a3,mode_t a4,time_t a5,time_t a6,time_t a7)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KArchive::prepareWriting(a0,a1,a2,a3,a4,a5,a6,a7);

    extern bool sipVH_kio_23(sip_gilstate_t,PyObject *,const QString&,const QString&,const QString&,PY_LONG_LONG,uint,long,long,long);

    return sipVH_kio_23(sipGILState,sipMeth,a0,a1,a2,a3,a4,a5,a6,a7);
}

bool sipKAr::writeData(const char *a0,qint64 a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_writeData);

    if (!sipMeth)
        return KArchive::writeData(a0,a1);

    extern bool sipVH_kio_25(sip_gilstate_t,PyObject *,const char *,PY_LONG_LONG);

    return sipVH_kio_25(sipGILState,sipMeth,a0,a1);
}

bool sipKAr::finishWriting(qint64 a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_finishWriting);

    if (!sipMeth)
        return KArchive::finishWriting(a0);

    typedef bool (*sipVH_QtCore_32)(sip_gilstate_t,PyObject *,PY_LONG_LONG);

    return ((sipVH_QtCore_32)(sipModuleAPI_kio_QtCore->em_virthandlers[32]))(sipGILState,sipMeth,a0);
}

KArchiveDirectory * sipKAr::rootDir()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_rootDir);

    if (!sipMeth)
        return KArchive::rootDir();

    extern KArchiveDirectory * sipVH_kio_75(sip_gilstate_t,PyObject *);

    return sipVH_kio_75(sipGILState,sipMeth);
}

bool sipKAr::createDevice(QIODevice::OpenMode a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_createDevice);

    if (!sipMeth)
        return KArchive::createDevice(a0);

    typedef bool (*sipVH_QtCore_15)(sip_gilstate_t,PyObject *,QIODevice::OpenMode);

    return ((sipVH_QtCore_15)(sipModuleAPI_kio_QtCore->em_virthandlers[15]))(sipGILState,sipMeth,a0);
}

KArchiveDirectory * sipKAr::sipProtectVirt_rootDir(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? KArchive::rootDir() : rootDir());
}

KArchiveDirectory * sipKAr::sipProtect_findOrCreate(const QString& a0)
{
    return KArchive::findOrCreate(a0);
}

bool sipKAr::sipProtectVirt_createDevice(bool sipSelfWasArg,QIODevice::OpenMode a0)
{
    return (sipSelfWasArg ? KArchive::createDevice(a0) : createDevice(a0));
}

void sipKAr::sipProtect_setDevice(QIODevice *a0)
{
    KArchive::setDevice(a0);
}

void sipKAr::sipProtect_setRootDir(KArchiveDirectory *a0)
{
    KArchive::setRootDir(a0);
}

bool sipKAr::sipProtectVirt_doPrepareWriting(bool sipSelfWasArg,const QString& a0,const QString& a1,const QString& a2,qint64 a3,mode_t a4,time_t a5,time_t a6,time_t a7)
{
    return (sipSelfWasArg ? KAr::doPrepareWriting(a0,a1,a2,a3,a4,a5,a6,a7) : doPrepareWriting(a0,a1,a2,a3,a4,a5,a6,a7));
}

bool sipKAr::sipProtectVirt_doFinishWriting(bool sipSelfWasArg,qint64 a0)
{
    return (sipSelfWasArg ? KAr::doFinishWriting(a0) : doFinishWriting(a0));
}

bool sipKAr::sipProtectVirt_doWriteDir(bool sipSelfWasArg,const QString& a0,const QString& a1,const QString& a2,mode_t a3,time_t a4,time_t a5,time_t a6)
{
    return (sipSelfWasArg ? KAr::doWriteDir(a0,a1,a2,a3,a4,a5,a6) : doWriteDir(a0,a1,a2,a3,a4,a5,a6));
}

bool sipKAr::sipProtectVirt_doWriteSymLink(bool sipSelfWasArg,const QString& a0,const QString& a1,const QString& a2,const QString& a3,mode_t a4,time_t a5,time_t a6,time_t a7)
{
    return (sipSelfWasArg ? KAr::doWriteSymLink(a0,a1,a2,a3,a4,a5,a6,a7) : doWriteSymLink(a0,a1,a2,a3,a4,a5,a6,a7));
}

bool sipKAr::sipProtectVirt_openArchive(bool sipSelfWasArg,QIODevice::OpenMode a0)
{
    return (sipSelfWasArg ? KAr::openArchive(a0) : openArchive(a0));
}

bool sipKAr::sipProtectVirt_closeArchive(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? KAr::closeArchive() : closeArchive());
}


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

    {
        sipKAr *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_rootDir(sipSelfWasArg);
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

    {
        QIODevice::OpenMode * a0;
        int a0State = 0;
        sipKAr *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_createDevice(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QIODevice_OpenMode,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QIODevice * a0;
        sipKAr *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KAr, &sipCpp, sipType_QIODevice, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setDevice(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_KAr, sipName_setDevice, NULL);

    return NULL;
}


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

    {
        KArchiveDirectory * a0;
        sipKAr *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KAr, &sipCpp, sipType_KArchiveDirectory, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setRootDir(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_KAr, sipName_setRootDir, NULL);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;
        const QString * a2;
        int a2State = 0;
        qint64 a3;
        mode_t a4;
        time_t a5;
        time_t a6;
        time_t a7;
        sipKAr *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1J1nulll", &sipSelf, sipType_KAr, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, &a3, &a4, &a5, &a6, &a7))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_doPrepareWriting(sipSelfWasArg,*a0,*a1,*a2,a3,a4,a5,a6,a7);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        qint64 a0;
        sipKAr *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_doFinishWriting(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;
        const QString * a2;
        int a2State = 0;
        mode_t a3;
        time_t a4;
        time_t a5;
        time_t a6;
        sipKAr *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1J1ulll", &sipSelf, sipType_KAr, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, &a3, &a4, &a5, &a6))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_doWriteDir(sipSelfWasArg,*a0,*a1,*a2,a3,a4,a5,a6);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;
        const QString * a2;
        int a2State = 0;
        const QString * a3;
        int a3State = 0;
        mode_t a4;
        time_t a5;
        time_t a6;
        time_t a7;
        sipKAr *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1J1J1ulll", &sipSelf, sipType_KAr, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, sipType_QString,&a3, &a3State, &a4, &a5, &a6, &a7))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_doWriteSymLink(sipSelfWasArg,*a0,*a1,*a2,*a3,a4,a5,a6,a7);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QIODevice::OpenMode * a0;
        int a0State = 0;
        sipKAr *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_openArchive(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QIODevice_OpenMode,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        sipKAr *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_closeArchive(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KAr)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KArchive)->ctd_cast((KArchive *)(KAr *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKAr *>(sipCppV);
    else
        delete reinterpret_cast<KAr *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKAr(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        QIODevice * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KAr[] = {
    {SIP_MLNAME_CAST(sipName_closeArchive), meth_KAr_closeArchive, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createDevice), meth_KAr_createDevice, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doFinishWriting), meth_KAr_doFinishWriting, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doPrepareWriting), meth_KAr_doPrepareWriting, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doWriteDir), meth_KAr_doWriteDir, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doWriteSymLink), meth_KAr_doWriteSymLink, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findOrCreate), meth_KAr_findOrCreate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_openArchive), meth_KAr_openArchive, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_rootDir), meth_KAr_rootDir, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDevice), meth_KAr_setDevice, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setRootDir), meth_KAr_setRootDir, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kio_KAr = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KAr,
        {0}
    },
    {
        sipNameNr_KAr,
        {0, 0, 1},
        11, methods_KAr,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KAr,
    0,
    init_KAr,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KAr,
    0,
    0,
    0,
    release_KAr,
    cast_KAr,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 35 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/karchive.sip"
#include <karchive.h>
#line 4849 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 4853 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 4856 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 156 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/karchive.sip"
#include <karchive.h>
#line 4859 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 4862 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"


class sipKArchive : public KArchive
{
public:
    sipKArchive(const QString&);
    sipKArchive(QIODevice *);
    virtual ~sipKArchive();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    bool sipProtect_openArchive(QIODevice::OpenMode);
    bool sipProtect_closeArchive();
    KArchiveDirectory * sipProtectVirt_rootDir(bool);
    bool sipProtect_doWriteDir(const QString&,const QString&,const QString&,mode_t,time_t,time_t,time_t);
    bool sipProtect_doWriteSymLink(const QString&,const QString&,const QString&,const QString&,mode_t,time_t,time_t,time_t);
    bool sipProtect_doPrepareWriting(const QString&,const QString&,const QString&,qint64,mode_t,time_t,time_t,time_t);
    bool sipProtect_doFinishWriting(qint64);
    KArchiveDirectory * sipProtect_findOrCreate(const QString&);
    bool sipProtectVirt_createDevice(bool,QIODevice::OpenMode);
    void sipProtect_setDevice(QIODevice *);
    void sipProtect_setRootDir(KArchiveDirectory *);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool open(QIODevice::OpenMode);
    bool close();
    bool writeDir(const QString&,const QString&,const QString&,mode_t,time_t,time_t,time_t);
    bool writeSymLink(const QString&,const QString&,const QString&,const QString&,mode_t,time_t,time_t,time_t);
    bool writeFile(const QString&,const QString&,const QString&,const char *,qint64,mode_t,time_t,time_t,time_t);
    bool prepareWriting(const QString&,const QString&,const QString&,qint64,mode_t,time_t,time_t,time_t);
    bool writeData(const char *,qint64);
    bool finishWriting(qint64);
    bool openArchive(QIODevice::OpenMode);
    bool closeArchive();
    KArchiveDirectory * rootDir();
    bool doWriteDir(const QString&,const QString&,const QString&,mode_t,time_t,time_t,time_t);
    bool doWriteSymLink(const QString&,const QString&,const QString&,const QString&,mode_t,time_t,time_t,time_t);
    bool doPrepareWriting(const QString&,const QString&,const QString&,qint64,mode_t,time_t,time_t,time_t);
    bool doFinishWriting(qint64);
    bool createDevice(QIODevice::OpenMode);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[16];
};

sipKArchive::sipKArchive(const QString& a0): KArchive(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKArchive::sipKArchive(QIODevice *a0): KArchive(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

bool sipKArchive::open(QIODevice::OpenMode a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KArchive::open(a0);

    typedef bool (*sipVH_QtCore_15)(sip_gilstate_t,PyObject *,QIODevice::OpenMode);

    return ((sipVH_QtCore_15)(sipModuleAPI_kio_QtCore->em_virthandlers[15]))(sipGILState,sipMeth,a0);
}

bool sipKArchive::close()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KArchive::close();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kio_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

bool sipKArchive::writeDir(const QString& a0,const QString& a1,const QString& a2,mode_t a3,time_t a4,time_t a5,time_t a6)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KArchive::writeDir(a0,a1,a2,a3,a4,a5,a6);

    extern bool sipVH_kio_22(sip_gilstate_t,PyObject *,const QString&,const QString&,const QString&,uint,long,long,long);

    return sipVH_kio_22(sipGILState,sipMeth,a0,a1,a2,a3,a4,a5,a6);
}

bool sipKArchive::writeSymLink(const QString& a0,const QString& a1,const QString& a2,const QString& a3,mode_t a4,time_t a5,time_t a6,time_t a7)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KArchive::writeSymLink(a0,a1,a2,a3,a4,a5,a6,a7);

    extern bool sipVH_kio_24(sip_gilstate_t,PyObject *,const QString&,const QString&,const QString&,const QString&,uint,long,long,long);

    return sipVH_kio_24(sipGILState,sipMeth,a0,a1,a2,a3,a4,a5,a6,a7);
}

bool sipKArchive::writeFile(const QString& a0,const QString& a1,const QString& a2,const char *a3,qint64 a4,mode_t a5,time_t a6,time_t a7,time_t a8)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KArchive::writeFile(a0,a1,a2,a3,a4,a5,a6,a7,a8);

    extern bool sipVH_kio_76(sip_gilstate_t,PyObject *,const QString&,const QString&,const QString&,const char *,PY_LONG_LONG,uint,long,long,long);

    return sipVH_kio_76(sipGILState,sipMeth,a0,a1,a2,a3,a4,a5,a6,a7,a8);
}

bool sipKArchive::prepareWriting(const QString& a0,const QString& a1,const QString& a2,qint64 a3,mode_t a4,time_t a5,time_t a6,time_t a7)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KArchive::prepareWriting(a0,a1,a2,a3,a4,a5,a6,a7);

    extern bool sipVH_kio_23(sip_gilstate_t,PyObject *,const QString&,const QString&,const QString&,PY_LONG_LONG,uint,long,long,long);

    return sipVH_kio_23(sipGILState,sipMeth,a0,a1,a2,a3,a4,a5,a6,a7);
}

bool sipKArchive::writeData(const char *a0,qint64 a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KArchive::writeData(a0,a1);

    extern bool sipVH_kio_25(sip_gilstate_t,PyObject *,const char *,PY_LONG_LONG);

    return sipVH_kio_25(sipGILState,sipMeth,a0,a1);
}

bool sipKArchive::finishWriting(qint64 a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KArchive::finishWriting(a0);

    typedef bool (*sipVH_QtCore_32)(sip_gilstate_t,PyObject *,PY_LONG_LONG);

    return ((sipVH_QtCore_32)(sipModuleAPI_kio_QtCore->em_virthandlers[32]))(sipGILState,sipMeth,a0);
}

bool sipKArchive::openArchive(QIODevice::OpenMode a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,sipName_KArchive,sipName_openArchive);

    if (!sipMeth)
        return 0;

    typedef bool (*sipVH_QtCore_15)(sip_gilstate_t,PyObject *,QIODevice::OpenMode);

    return ((sipVH_QtCore_15)(sipModuleAPI_kio_QtCore->em_virthandlers[15]))(sipGILState,sipMeth,a0);
}

bool sipKArchive::closeArchive()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,sipName_KArchive,sipName_closeArchive);

    if (!sipMeth)
        return 0;

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kio_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

KArchiveDirectory * sipKArchive::rootDir()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KArchive::rootDir();

    extern KArchiveDirectory * sipVH_kio_75(sip_gilstate_t,PyObject *);

    return sipVH_kio_75(sipGILState,sipMeth);
}

bool sipKArchive::doWriteDir(const QString& a0,const QString& a1,const QString& a2,mode_t a3,time_t a4,time_t a5,time_t a6)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,sipName_KArchive,sipName_doWriteDir);

    if (!sipMeth)
        return 0;

    extern bool sipVH_kio_22(sip_gilstate_t,PyObject *,const QString&,const QString&,const QString&,uint,long,long,long);

    return sipVH_kio_22(sipGILState,sipMeth,a0,a1,a2,a3,a4,a5,a6);
}

bool sipKArchive::doWriteSymLink(const QString& a0,const QString& a1,const QString& a2,const QString& a3,mode_t a4,time_t a5,time_t a6,time_t a7)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,sipName_KArchive,sipName_doWriteSymLink);

    if (!sipMeth)
        return 0;

    extern bool sipVH_kio_24(sip_gilstate_t,PyObject *,const QString&,const QString&,const QString&,const QString&,uint,long,long,long);

    return sipVH_kio_24(sipGILState,sipMeth,a0,a1,a2,a3,a4,a5,a6,a7);
}

bool sipKArchive::doPrepareWriting(const QString& a0,const QString& a1,const QString& a2,qint64 a3,mode_t a4,time_t a5,time_t a6,time_t a7)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,sipName_KArchive,sipName_doPrepareWriting);

    if (!sipMeth)
        return 0;

    extern bool sipVH_kio_23(sip_gilstate_t,PyObject *,const QString&,const QString&,const QString&,PY_LONG_LONG,uint,long,long,long);

    return sipVH_kio_23(sipGILState,sipMeth,a0,a1,a2,a3,a4,a5,a6,a7);
}

bool sipKArchive::doFinishWriting(qint64 a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,sipName_KArchive,sipName_doFinishWriting);

    if (!sipMeth)
        return 0;

    typedef bool (*sipVH_QtCore_32)(sip_gilstate_t,PyObject *,PY_LONG_LONG);

    return ((sipVH_QtCore_32)(sipModuleAPI_kio_QtCore->em_virthandlers[32]))(sipGILState,sipMeth,a0);
}

bool sipKArchive::createDevice(QIODevice::OpenMode a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_createDevice);

    if (!sipMeth)
        return KArchive::createDevice(a0);

    typedef bool (*sipVH_QtCore_15)(sip_gilstate_t,PyObject *,QIODevice::OpenMode);

    return ((sipVH_QtCore_15)(sipModuleAPI_kio_QtCore->em_virthandlers[15]))(sipGILState,sipMeth,a0);
}

bool sipKArchive::sipProtect_openArchive(QIODevice::OpenMode a0)
{
    return openArchive(a0);
}

bool sipKArchive::sipProtect_closeArchive()
{
    return closeArchive();
}

KArchiveDirectory * sipKArchive::sipProtectVirt_rootDir(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? KArchive::rootDir() : rootDir());
}

bool sipKArchive::sipProtect_doWriteDir(const QString& a0,const QString& a1,const QString& a2,mode_t a3,time_t a4,time_t a5,time_t a6)
{
    return doWriteDir(a0,a1,a2,a3,a4,a5,a6);
}

bool sipKArchive::sipProtect_doWriteSymLink(const QString& a0,const QString& a1,const QString& a2,const QString& a3,mode_t a4,time_t a5,time_t a6,time_t a7)
{
    return doWriteSymLink(a0,a1,a2,a3,a4,a5,a6,a7);
}

bool sipKArchive::sipProtect_doPrepareWriting(const QString& a0,const QString& a1,const QString& a2,qint64 a3,mode_t a4,time_t a5,time_t a6,time_t a7)
{
    return doPrepareWriting(a0,a1,a2,a3,a4,a5,a6,a7);
}

bool sipKArchive::sipProtect_doFinishWriting(qint64 a0)
{
    return doFinishWriting(a0);
}

KArchiveDirectory * sipKArchive::sipProtect_findOrCreate(const QString& a0)
{
    return KArchive::findOrCreate(a0);
}

bool sipKArchive::sipProtectVirt_createDevice(bool sipSelfWasArg,QIODevice::OpenMode a0)
{
    return (sipSelfWasArg ? KArchive::createDevice(a0) : createDevice(a0));
}

void sipKArchive::sipProtect_setDevice(QIODevice *a0)
{
    KArchive::setDevice(a0);
}

void sipKArchive::sipProtect_setRootDir(KArchiveDirectory *a0)
{
    KArchive::setRootDir(a0);
}


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

    {
        QIODevice::OpenMode * a0;
        int a0State = 0;
        KArchive *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KArchive::open(*a0) : sipCpp->open(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QIODevice_OpenMode,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KArchive *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KArchive::close() : sipCpp->close());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KArchive *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isOpen();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KArchive *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KArchive, &sipCpp))
        {
            QIODevice::OpenMode *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QIODevice::OpenMode(sipCpp->mode());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KArchive *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->device();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KArchive *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KArchive *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KArchive, &sipCpp))
        {
            const KArchiveDirectory *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->directory();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(const_cast<KArchiveDirectory *>(sipRes),sipType_KArchiveDirectory,NULL);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_KArchive, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_KArchive, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;
        const QString * a2;
        int a2State = 0;
        mode_t a3 = 16877;
        time_t a4 = KArchive::UnknownTime;
        time_t a5 = KArchive::UnknownTime;
        time_t a6 = KArchive::UnknownTime;
        KArchive *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1J1|ulll", &sipSelf, sipType_KArchive, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, &a3, &a4, &a5, &a6))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KArchive::writeDir(*a0,*a1,*a2,a3,a4,a5,a6) : sipCpp->writeDir(*a0,*a1,*a2,a3,a4,a5,a6));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;
        const QString * a2;
        int a2State = 0;
        const QString * a3;
        int a3State = 0;
        mode_t a4 = 41453;
        time_t a5 = KArchive::UnknownTime;
        time_t a6 = KArchive::UnknownTime;
        time_t a7 = KArchive::UnknownTime;
        KArchive *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1J1J1|ulll", &sipSelf, sipType_KArchive, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, sipType_QString,&a3, &a3State, &a4, &a5, &a6, &a7))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KArchive::writeSymLink(*a0,*a1,*a2,*a3,a4,a5,a6,a7) : sipCpp->writeSymLink(*a0,*a1,*a2,*a3,a4,a5,a6,a7));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;
        const QString * a2;
        int a2State = 0;
        const char * a3;
        PyObject *a3Keep;
        qint64 a4;
        mode_t a5 = 33188;
        time_t a6 = KArchive::UnknownTime;
        time_t a7 = KArchive::UnknownTime;
        time_t a8 = KArchive::UnknownTime;
        KArchive *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1J1AAn|ulll", &sipSelf, sipType_KArchive, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, &a3Keep, &a3, &a4, &a5, &a6, &a7, &a8))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KArchive::writeFile(*a0,*a1,*a2,a3,a4,a5,a6,a7,a8) : sipCpp->writeFile(*a0,*a1,*a2,a3,a4,a5,a6,a7,a8));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            Py_DECREF(a3Keep);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;
        const QString * a2;
        int a2State = 0;
        qint64 a3;
        mode_t a4 = 33188;
        time_t a5 = KArchive::UnknownTime;
        time_t a6 = KArchive::UnknownTime;
        time_t a7 = KArchive::UnknownTime;
        KArchive *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1J1n|ulll", &sipSelf, sipType_KArchive, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, &a3, &a4, &a5, &a6, &a7))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KArchive::prepareWriting(*a0,*a1,*a2,a3,a4,a5,a6,a7) : sipCpp->prepareWriting(*a0,*a1,*a2,a3,a4,a5,a6,a7));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const char * a0;
        PyObject *a0Keep;
        qint64 a1;
        KArchive *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAn", &sipSelf, sipType_KArchive, &sipCpp, &a0Keep, &a0, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KArchive::writeData(a0,a1) : sipCpp->writeData(a0,a1));
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        qint64 a0;
        KArchive *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KArchive::finishWriting(a0) : sipCpp->finishWriting(a0));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QIODevice::OpenMode * a0;
        int a0State = 0;
        sipKArchive *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KArchive, sipName_openArchive);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_openArchive(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QIODevice_OpenMode,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        sipKArchive *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KArchive, sipName_closeArchive);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_closeArchive();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        sipKArchive *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_rootDir(sipSelfWasArg);
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;
        const QString * a2;
        int a2State = 0;
        mode_t a3;
        time_t a4;
        time_t a5;
        time_t a6;
        sipKArchive *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1J1ulll", &sipSelf, sipType_KArchive, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, &a3, &a4, &a5, &a6))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KArchive, sipName_doWriteDir);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_doWriteDir(*a0,*a1,*a2,a3,a4,a5,a6);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;
        const QString * a2;
        int a2State = 0;
        const QString * a3;
        int a3State = 0;
        mode_t a4;
        time_t a5;
        time_t a6;
        time_t a7;
        sipKArchive *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1J1J1ulll", &sipSelf, sipType_KArchive, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, sipType_QString,&a3, &a3State, &a4, &a5, &a6, &a7))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KArchive, sipName_doWriteSymLink);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_doWriteSymLink(*a0,*a1,*a2,*a3,a4,a5,a6,a7);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;
        const QString * a2;
        int a2State = 0;
        qint64 a3;
        mode_t a4;
        time_t a5;
        time_t a6;
        time_t a7;
        sipKArchive *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1J1nulll", &sipSelf, sipType_KArchive, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, &a3, &a4, &a5, &a6, &a7))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KArchive, sipName_doPrepareWriting);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_doPrepareWriting(*a0,*a1,*a2,a3,a4,a5,a6,a7);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        qint64 a0;
        sipKArchive *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KArchive, sipName_doFinishWriting);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_doFinishWriting(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

    {
        QIODevice::OpenMode * a0;
        int a0State = 0;
        sipKArchive *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_createDevice(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QIODevice_OpenMode,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QIODevice * a0;
        sipKArchive *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KArchive, &sipCpp, sipType_QIODevice, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setDevice(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_KArchive, sipName_setDevice, NULL);

    return NULL;
}


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

    {
        KArchiveDirectory * a0;
        sipKArchive *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KArchive, &sipCpp, sipType_KArchiveDirectory, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setRootDir(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_KArchive, sipName_setRootDir, NULL);

    return NULL;
}


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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKArchive *>(sipCppV);
    else
        delete reinterpret_cast<KArchive *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKArchive(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        QIODevice * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KArchive[] = {
    {SIP_MLNAME_CAST(sipName_addLocalDirectory), meth_KArchive_addLocalDirectory, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addLocalFile), meth_KArchive_addLocalFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_close), meth_KArchive_close, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_closeArchive), meth_KArchive_closeArchive, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createDevice), meth_KArchive_createDevice, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_device), meth_KArchive_device, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_directory), meth_KArchive_directory, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doFinishWriting), meth_KArchive_doFinishWriting, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doPrepareWriting), meth_KArchive_doPrepareWriting, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doWriteDir), meth_KArchive_doWriteDir, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doWriteSymLink), meth_KArchive_doWriteSymLink, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fileName), meth_KArchive_fileName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findOrCreate), meth_KArchive_findOrCreate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_finishWriting), meth_KArchive_finishWriting, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isOpen), meth_KArchive_isOpen, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mode), meth_KArchive_mode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_open), meth_KArchive_open, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_openArchive), meth_KArchive_openArchive, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_prepareWriting), meth_KArchive_prepareWriting, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_rootDir), meth_KArchive_rootDir, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDevice), meth_KArchive_setDevice, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setRootDir), meth_KArchive_setRootDir, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_writeData), meth_KArchive_writeData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_writeDir), meth_KArchive_writeDir, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_writeFile), meth_KArchive_writeFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_writeSymLink), meth_KArchive_writeSymLink, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KArchive[] = {
    {sipName_UnknownTime, KArchive::UnknownTime, -1},
};


pyqt4ClassTypeDef sipTypeDef_kio_KArchive = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_KArchive,
        {0}
    },
    {
        sipNameNr_KArchive,
        {0, 0, 1},
        26, methods_KArchive,
        1, enummembers_KArchive,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_KArchive,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KArchive,
    0,
    0,
    0,
    release_KArchive,
    cast_KArchive,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 100 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/kacl.sip"
#include <qlist.h>
#line 6284 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"



extern "C" {static void assign_ACLUserPermissionsList(void *, SIP_SSIZE_T, const void *);}
static void assign_ACLUserPermissionsList(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<ACLUserPermissionsList *>(sipDst)[sipDstIdx] = *reinterpret_cast<const ACLUserPermissionsList *>(sipSrc);
}


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


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


/* Call the mapped type's destructor. */
extern "C" {static void release_ACLUserPermissionsList(void *, int);}
static void release_ACLUserPermissionsList(void *ptr, int)
{
    Py_BEGIN_ALLOW_THREADS
    delete reinterpret_cast<ACLUserPermissionsList *>(ptr);
    Py_END_ALLOW_THREADS
}



extern "C" {static int convertTo_ACLUserPermissionsList(PyObject *, void **, int *, PyObject *);}
static int convertTo_ACLUserPermissionsList(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *)
{
    ACLUserPermissionsList **sipCppPtr = reinterpret_cast<ACLUserPermissionsList **>(sipCppPtrV);

#line 137 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/kacl.sip"
    if (sipIsErr == NULL)
        return PyList_Check(sipPy);

    QList<QPair<QString, unsigned short> > *cpplist = new QList<QPair<QString, unsigned short> >;

    QString p1;
    int iserr = 0;

    for (int i = 0; i < PyList_Size (sipPy); i++)
    {
        PyObject *elem = PyList_GET_ITEM (sipPy, i);
        PyObject *pyp1 = PyTuple_GET_ITEM (elem, 0);
        p1 = *(QString *)sipForceConvertToType(pyp1, sipType_QString, NULL, 0, NULL, &iserr);
        if (iserr)
        {
            *sipIsErr = 1;
            delete cpplist;
            return 0;
        }
#if PY_MAJOR_VERSION >= 3
        ushort p2 = (ushort)(PyLong_AsLong (PyTuple_GET_ITEM (elem, 1)));
#else
        ushort p2 = (ushort)(PyInt_AS_LONG (PyTuple_GET_ITEM (elem, 1)));
#endif
        cpplist->append (QPair<QString, unsigned short> (p1, p2));
    }

    *sipCppPtr = cpplist;

    return 1;
#line 6356 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
}


extern "C" {static PyObject *convertFrom_ACLUserPermissionsList(void *, PyObject *);}
static PyObject *convertFrom_ACLUserPermissionsList(void *sipCppV,PyObject *)
{
   ACLUserPermissionsList *sipCpp = reinterpret_cast<ACLUserPermissionsList *>(sipCppV);

#line 104 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/kacl.sip"
    if (!sipCpp)
        return PyList_New(0);

    // Create the list
    PyObject *pylist;
    if ((pylist = PyList_New(0)) == NULL)
        return NULL;

    QList<QPair<QString, unsigned short> > *cpplist = (QList<QPair<QString, unsigned short> > *)sipCpp;
    PyObject *inst = NULL;

    // Get it.
    QList<QPair<QString, unsigned short> >::Iterator it;
    for( it = cpplist->begin(); it != cpplist->end(); ++it )
    {
        QString s = (*it).first;
        ushort  u = (*it).second;
        PyObject *pys = sipBuildResult (NULL, "N", new QString (s), sipType_QString);
        if ((pys == NULL) || ((inst = Py_BuildValue ("Ni", pys, u)) == NULL)
            || PyList_Append (pylist, inst) < 0)
        {
            Py_XDECREF (inst);
            Py_XDECREF (pys);
            Py_DECREF (pylist);
            return NULL;
        }
    }

    return pylist;
#line 6395 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
}


sipMappedTypeDef sipTypeDef_kio_ACLUserPermissionsList = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_ACLUserPermissionsList,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_ACLUserPermissionsList,
    array_ACLUserPermissionsList,
    copy_ACLUserPermissionsList,
    release_ACLUserPermissionsList,
    convertTo_ACLUserPermissionsList,
    convertFrom_ACLUserPermissionsList
};

#line 46 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/kacl.sip"
#include <kacl.h>
#line 6426 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 6430 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 100 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/kacl.sip"
#include <qlist.h>
#line 6433 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"


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

    {
        KACL *sipCpp;

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

    return NULL;
}


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

    {
        KACL *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KACL, &sipCpp))
        {
            unsigned short sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->ownerPermissions();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        unsigned short a0;
        KACL *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setOwnerPermissions(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KACL *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KACL, &sipCpp))
        {
            unsigned short sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->owningGroupPermissions();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        unsigned short a0;
        KACL *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setOwningGroupPermissions(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KACL *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KACL, &sipCpp))
        {
            unsigned short sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->othersPermissions();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        unsigned short a0;
        KACL *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setOthersPermissions(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KACL *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KACL, &sipCpp))
        {
            mode_t sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->basePermissions();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KACL *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isExtended();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KACL *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KACL, &sipCpp))
        {
            unsigned short sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->maskPermissions(a0);
            Py_END_ALLOW_THREADS

            return sipBuildResult(0,"(tb)",sipRes,a0);
        }
    }

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

    return NULL;
}


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

    {
        unsigned short a0;
        KACL *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setMaskPermissions(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        bool a1;
        KACL *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KACL, &sipCpp, sipType_QString,&a0, &a0State))
        {
            unsigned short sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->namedUserPermissions(*a0,&a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipBuildResult(0,"(tb)",sipRes,a1);
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        unsigned short a1;
        KACL *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1t", &sipSelf, sipType_KACL, &sipCpp, sipType_QString,&a0, &a0State, &a1))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KACL *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new ACLUserPermissionsList(sipCpp->allUserPermissions());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const ACLUserPermissionsList * a0;
        int a0State = 0;
        KACL *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setAllUserPermissions(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<ACLUserPermissionsList *>(a0),sipType_ACLUserPermissionsList,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        bool a1;
        KACL *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KACL, &sipCpp, sipType_QString,&a0, &a0State))
        {
            unsigned short sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->namedGroupPermissions(*a0,&a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipBuildResult(0,"(tb)",sipRes,a1);
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        unsigned short a1;
        KACL *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1t", &sipSelf, sipType_KACL, &sipCpp, sipType_QString,&a0, &a0State, &a1))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KACL *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new ACLGroupPermissionsList(sipCpp->allGroupPermissions());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const ACLGroupPermissionsList * a0;
        int a0State = 0;
        KACL *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setAllGroupPermissions(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<ACLGroupPermissionsList *>(a0),sipType_ACLUserPermissionsList,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KACL *sipCpp;

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

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

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

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

    return NULL;
}


extern "C" {static PyObject *slot_KACL___ne__(PyObject *,PyObject *);}
static PyObject *slot_KACL___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KACL *sipCpp = reinterpret_cast<KACL *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KACL));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KACL * a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kio,ne_slot,sipType_KACL,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KACL___eq__(PyObject *,PyObject *);}
static PyObject *slot_KACL___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KACL *sipCpp = reinterpret_cast<KACL *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KACL));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KACL * a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kio,eq_slot,sipType_KACL,sipSelf,sipArg);
}


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

    return NULL;
}


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

    delete reinterpret_cast<KACL *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KACL(void *, SIP_SSIZE_T, const void *);}
static void assign_KACL(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KACL *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KACL *>(sipSrc);
}


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


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


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


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

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KACL(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipCpp;
        }
    }

    {
        const KACL * a0;

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

            return sipCpp;
        }
    }

    {
        mode_t a0;

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

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KACL[] = {
    {SIP_MLNAME_CAST(sipName_allGroupPermissions), meth_KACL_allGroupPermissions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_allUserPermissions), meth_KACL_allUserPermissions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_asString), meth_KACL_asString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_basePermissions), meth_KACL_basePermissions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isExtended), meth_KACL_isExtended, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_KACL_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_maskPermissions), meth_KACL_maskPermissions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_namedGroupPermissions), meth_KACL_namedGroupPermissions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_namedUserPermissions), meth_KACL_namedUserPermissions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_othersPermissions), meth_KACL_othersPermissions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ownerPermissions), meth_KACL_ownerPermissions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_owningGroupPermissions), meth_KACL_owningGroupPermissions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setACL), meth_KACL_setACL, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAllGroupPermissions), meth_KACL_setAllGroupPermissions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAllUserPermissions), meth_KACL_setAllUserPermissions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMaskPermissions), meth_KACL_setMaskPermissions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setNamedGroupPermissions), meth_KACL_setNamedGroupPermissions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setNamedUserPermissions), meth_KACL_setNamedUserPermissions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOthersPermissions), meth_KACL_setOthersPermissions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOwnerPermissions), meth_KACL_setOwnerPermissions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOwningGroupPermissions), meth_KACL_setOwningGroupPermissions, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kio_KACL = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KACL,
        {0}
    },
    {
        sipNameNr_KACL,
        {0, 0, 1},
        21, methods_KACL,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KACL,
    init_KACL,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KACL,
    assign_KACL,
    array_KACL,
    copy_KACL,
    release_KACL,
    cast_KACL,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/kabstractfilewidget.sip"
#include <kabstractfilewidget.h>
#line 7301 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"

#line 35 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 7305 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 7308 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdeui/kactioncollection.sip"
#include <kactioncollection.h>
#line 7311 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/kfilefiltercombo.sip"
#include <kfilefiltercombo.h>
#line 7314 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/kurlcombobox.sip"
#include <kurlcombobox.h>
#line 7317 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdeui/kpushbutton.sip"
#include <kpushbutton.h>
#line 7320 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdeui/ktoolbar.sip"
#include <ktoolbar.h>
#line 7323 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/kfile.sip"
#include <kfile.h>
#line 7326 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/kpreviewwidgetbase.sip"
#include <kpreviewwidgetbase.h>
#line 7329 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 7332 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 340 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 7335 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kmimetype.sip"
#include <kmimetype.h>
#line 7338 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 7341 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 7344 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"


class sipKAbstractFileWidget : public KAbstractFileWidget
{
public:
    sipKAbstractFileWidget();
    sipKAbstractFileWidget(const KAbstractFileWidget&);
    virtual ~sipKAbstractFileWidget();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    KUrl selectedUrl() const;
    KUrl::List selectedUrls() const;
    KUrl baseUrl() const;
    QString selectedFile() const;
    QStringList selectedFiles() const;
    void setUrl(const KUrl&,bool);
    void setSelection(const QString&);
    void setOperationMode(KAbstractFileWidget::OperationMode);
    KAbstractFileWidget::OperationMode operationMode() const;
    void setKeepLocation(bool);
    bool keepsLocation() const;
    void setFilter(const QString&);
    QString currentFilter() const;
    KMimeType::Ptr currentFilterMimeType();
    void setMimeFilter(const QStringList&,const QString&);
    QString currentMimeFilter() const;
    void clearFilter();
    void setPreviewWidget(KPreviewWidgetBase *);
    void setMode(KFile::Modes);
    KFile::Modes mode() const;
    void setLocationLabel(const QString&);
    KToolBar * toolBar() const;
    KPushButton * okButton() const;
    KPushButton * cancelButton() const;
    KUrlComboBox * locationEdit() const;
    KFileFilterCombo * filterWidget() const;
    KActionCollection * actionCollection() const;
    void setCustomWidget(QWidget *);
    void setCustomWidget(const QString&,QWidget *);
    void slotOk();
    void accept();
    void slotCancel();
    void virtual_hook(int,void *);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[33];
};

sipKAbstractFileWidget::sipKAbstractFileWidget(): KAbstractFileWidget(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKAbstractFileWidget::sipKAbstractFileWidget(const KAbstractFileWidget& a0): KAbstractFileWidget(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

KUrl sipKAbstractFileWidget::selectedUrl() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,sipName_KAbstractFileWidget,sipName_selectedUrl);

    if (!sipMeth)
        return KUrl();

    extern KUrl sipVH_kio_46(sip_gilstate_t,PyObject *);

    return sipVH_kio_46(sipGILState,sipMeth);
}

KUrl::List sipKAbstractFileWidget::selectedUrls() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,sipName_KAbstractFileWidget,sipName_selectedUrls);

    if (!sipMeth)
        return KUrl::List();

    extern KUrl::List sipVH_kio_47(sip_gilstate_t,PyObject *);

    return sipVH_kio_47(sipGILState,sipMeth);
}

KUrl sipKAbstractFileWidget::baseUrl() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,sipName_KAbstractFileWidget,sipName_baseUrl);

    if (!sipMeth)
        return KUrl();

    extern KUrl sipVH_kio_46(sip_gilstate_t,PyObject *);

    return sipVH_kio_46(sipGILState,sipMeth);
}

QString sipKAbstractFileWidget::selectedFile() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,sipName_KAbstractFileWidget,sipName_selectedFile);

    if (!sipMeth)
        return QString();

    typedef QString (*sipVH_QtCore_62)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_62)(sipModuleAPI_kio_QtCore->em_virthandlers[62]))(sipGILState,sipMeth);
}

QStringList sipKAbstractFileWidget::selectedFiles() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[4]),sipPySelf,sipName_KAbstractFileWidget,sipName_selectedFiles);

    if (!sipMeth)
        return QStringList();

    typedef QStringList (*sipVH_QtCore_27)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_27)(sipModuleAPI_kio_QtCore->em_virthandlers[27]))(sipGILState,sipMeth);
}

void sipKAbstractFileWidget::setUrl(const KUrl& a0,bool a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,sipName_KAbstractFileWidget,sipName_setUrl);

    if (!sipMeth)
        return;

    extern void sipVH_kio_6(sip_gilstate_t,PyObject *,const KUrl&,bool);

    sipVH_kio_6(sipGILState,sipMeth,a0,a1);
}

void sipKAbstractFileWidget::setSelection(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,sipName_KAbstractFileWidget,sipName_setSelection);

    if (!sipMeth)
        return;

    typedef void (*sipVH_QtCore_33)(sip_gilstate_t,PyObject *,const QString&);

    ((sipVH_QtCore_33)(sipModuleAPI_kio_QtCore->em_virthandlers[33]))(sipGILState,sipMeth,a0);
}

void sipKAbstractFileWidget::setOperationMode(KAbstractFileWidget::OperationMode a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,sipName_KAbstractFileWidget,sipName_setOperationMode);

    if (!sipMeth)
        return;

    extern void sipVH_kio_45(sip_gilstate_t,PyObject *,KAbstractFileWidget::OperationMode);

    sipVH_kio_45(sipGILState,sipMeth,a0);
}

KAbstractFileWidget::OperationMode sipKAbstractFileWidget::operationMode() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,sipName_KAbstractFileWidget,sipName_operationMode);

    if (!sipMeth)
        return (KAbstractFileWidget::OperationMode)0;

    extern KAbstractFileWidget::OperationMode sipVH_kio_44(sip_gilstate_t,PyObject *);

    return sipVH_kio_44(sipGILState,sipMeth);
}

void sipKAbstractFileWidget::setKeepLocation(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,sipName_KAbstractFileWidget,sipName_setKeepLocation);

    if (!sipMeth)
        return;

    typedef void (*sipVH_QtNetwork_1)(sip_gilstate_t,PyObject *,bool);

    ((sipVH_QtNetwork_1)(sipModuleAPI_kio_QtNetwork->em_virthandlers[1]))(sipGILState,sipMeth,a0);
}

bool sipKAbstractFileWidget::keepsLocation() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[10]),sipPySelf,sipName_KAbstractFileWidget,sipName_keepsLocation);

    if (!sipMeth)
        return 0;

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kio_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

void sipKAbstractFileWidget::setFilter(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,sipName_KAbstractFileWidget,sipName_setFilter);

    if (!sipMeth)
        return;

    typedef void (*sipVH_QtCore_33)(sip_gilstate_t,PyObject *,const QString&);

    ((sipVH_QtCore_33)(sipModuleAPI_kio_QtCore->em_virthandlers[33]))(sipGILState,sipMeth,a0);
}

QString sipKAbstractFileWidget::currentFilter() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[12]),sipPySelf,sipName_KAbstractFileWidget,sipName_currentFilter);

    if (!sipMeth)
        return QString();

    typedef QString (*sipVH_QtCore_62)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_62)(sipModuleAPI_kio_QtCore->em_virthandlers[62]))(sipGILState,sipMeth);
}

KMimeType::Ptr sipKAbstractFileWidget::currentFilterMimeType()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,sipName_KAbstractFileWidget,sipName_currentFilterMimeType);

    if (!sipMeth)
        return KMimeType::Ptr();

    extern KSharedPtr<KMimeType> sipVH_kio_43(sip_gilstate_t,PyObject *);

    return sipVH_kio_43(sipGILState,sipMeth);
}

void sipKAbstractFileWidget::setMimeFilter(const QStringList& a0,const QString& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,sipName_KAbstractFileWidget,sipName_setMimeFilter);

    if (!sipMeth)
        return;

    extern void sipVH_kio_42(sip_gilstate_t,PyObject *,const QStringList&,const QString&);

    sipVH_kio_42(sipGILState,sipMeth,a0,a1);
}

QString sipKAbstractFileWidget::currentMimeFilter() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[15]),sipPySelf,sipName_KAbstractFileWidget,sipName_currentMimeFilter);

    if (!sipMeth)
        return QString();

    typedef QString (*sipVH_QtCore_62)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_62)(sipModuleAPI_kio_QtCore->em_virthandlers[62]))(sipGILState,sipMeth);
}

void sipKAbstractFileWidget::clearFilter()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,sipName_KAbstractFileWidget,sipName_clearFilter);

    if (!sipMeth)
        return;

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

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

void sipKAbstractFileWidget::setPreviewWidget(KPreviewWidgetBase *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,sipName_KAbstractFileWidget,sipName_setPreviewWidget);

    if (!sipMeth)
        return;

    extern void sipVH_kio_41(sip_gilstate_t,PyObject *,KPreviewWidgetBase *);

    sipVH_kio_41(sipGILState,sipMeth,a0);
}

void sipKAbstractFileWidget::setMode(KFile::Modes a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,sipName_KAbstractFileWidget,sipName_setMode);

    if (!sipMeth)
        return;

    extern void sipVH_kio_40(sip_gilstate_t,PyObject *,KFile::Modes);

    sipVH_kio_40(sipGILState,sipMeth,a0);
}

KFile::Modes sipKAbstractFileWidget::mode() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[19]),sipPySelf,sipName_KAbstractFileWidget,sipName_mode);

    if (!sipMeth)
        return KFile::Modes();

    extern KFile::Modes sipVH_kio_39(sip_gilstate_t,PyObject *);

    return sipVH_kio_39(sipGILState,sipMeth);
}

void sipKAbstractFileWidget::setLocationLabel(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,sipName_KAbstractFileWidget,sipName_setLocationLabel);

    if (!sipMeth)
        return;

    typedef void (*sipVH_QtCore_33)(sip_gilstate_t,PyObject *,const QString&);

    ((sipVH_QtCore_33)(sipModuleAPI_kio_QtCore->em_virthandlers[33]))(sipGILState,sipMeth,a0);
}

KToolBar * sipKAbstractFileWidget::toolBar() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[21]),sipPySelf,sipName_KAbstractFileWidget,sipName_toolBar);

    if (!sipMeth)
        return 0;

    extern KToolBar * sipVH_kio_81(sip_gilstate_t,PyObject *);

    return sipVH_kio_81(sipGILState,sipMeth);
}

KPushButton * sipKAbstractFileWidget::okButton() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[22]),sipPySelf,sipName_KAbstractFileWidget,sipName_okButton);

    if (!sipMeth)
        return 0;

    extern KPushButton * sipVH_kio_80(sip_gilstate_t,PyObject *);

    return sipVH_kio_80(sipGILState,sipMeth);
}

KPushButton * sipKAbstractFileWidget::cancelButton() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[23]),sipPySelf,sipName_KAbstractFileWidget,sipName_cancelButton);

    if (!sipMeth)
        return 0;

    extern KPushButton * sipVH_kio_80(sip_gilstate_t,PyObject *);

    return sipVH_kio_80(sipGILState,sipMeth);
}

KUrlComboBox * sipKAbstractFileWidget::locationEdit() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[24]),sipPySelf,sipName_KAbstractFileWidget,sipName_locationEdit);

    if (!sipMeth)
        return 0;

    extern KUrlComboBox * sipVH_kio_79(sip_gilstate_t,PyObject *);

    return sipVH_kio_79(sipGILState,sipMeth);
}

KFileFilterCombo * sipKAbstractFileWidget::filterWidget() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[25]),sipPySelf,sipName_KAbstractFileWidget,sipName_filterWidget);

    if (!sipMeth)
        return 0;

    extern KFileFilterCombo * sipVH_kio_78(sip_gilstate_t,PyObject *);

    return sipVH_kio_78(sipGILState,sipMeth);
}

KActionCollection * sipKAbstractFileWidget::actionCollection() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[26]),sipPySelf,sipName_KAbstractFileWidget,sipName_actionCollection);

    if (!sipMeth)
        return 0;

    typedef KActionCollection * (*sipVH_kdeui_19)(sip_gilstate_t,PyObject *);

    return ((sipVH_kdeui_19)(sipModuleAPI_kio_kdeui->em_virthandlers[19]))(sipGILState,sipMeth);
}

void sipKAbstractFileWidget::setCustomWidget(QWidget *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],sipPySelf,sipName_KAbstractFileWidget,sipName_setCustomWidget);

    if (!sipMeth)
        return;

    typedef void (*sipVH_QtGui_7)(sip_gilstate_t,PyObject *,QWidget *);

    ((sipVH_QtGui_7)(sipModuleAPI_kio_QtGui->em_virthandlers[7]))(sipGILState,sipMeth,a0);
}

void sipKAbstractFileWidget::setCustomWidget(const QString& a0,QWidget *a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[28],sipPySelf,sipName_KAbstractFileWidget,sipName_setCustomWidget);

    if (!sipMeth)
        return;

    extern void sipVH_kio_38(sip_gilstate_t,PyObject *,const QString&,QWidget *);

    sipVH_kio_38(sipGILState,sipMeth,a0,a1);
}

void sipKAbstractFileWidget::slotOk()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,sipName_KAbstractFileWidget,sipName_slotOk);

    if (!sipMeth)
        return;

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

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

void sipKAbstractFileWidget::accept()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[30],sipPySelf,sipName_KAbstractFileWidget,sipName_accept);

    if (!sipMeth)
        return;

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

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

void sipKAbstractFileWidget::slotCancel()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[31],sipPySelf,sipName_KAbstractFileWidget,sipName_slotCancel);

    if (!sipMeth)
        return;

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

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

void sipKAbstractFileWidget::virtual_hook(int a0,void *a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[32],sipPySelf,sipName_KAbstractFileWidget,sipName_virtual_hook);

    if (!sipMeth)
        return;

    extern void sipVH_kio_77(sip_gilstate_t,PyObject *,int,void *);

    sipVH_kio_77(sipGILState,sipMeth,a0,a1);
}


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

    {
        KAbstractFileWidget *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_selectedUrl);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl(sipCpp->selectedUrl());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KAbstractFileWidget *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_selectedUrls);
                return NULL;
            }

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

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

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

    return NULL;
}


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

    {
        KAbstractFileWidget *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_baseUrl);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl(sipCpp->baseUrl());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KAbstractFileWidget *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_selectedFile);
                return NULL;
            }

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

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

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

    return NULL;
}


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

    {
        KAbstractFileWidget *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_selectedFiles);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->selectedFiles());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const KUrl * a0;
        bool a1 = 1;
        KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9|b", &sipSelf, sipType_KAbstractFileWidget, &sipCpp, sipType_KUrl, &a0, &a1))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_setUrl);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->setUrl(*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_KAbstractFileWidget, sipName_setUrl, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KAbstractFileWidget, &sipCpp, sipType_QString,&a0, &a0State))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_setSelection);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSelection(*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_KAbstractFileWidget, sipName_setSelection, NULL);

    return NULL;
}


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

    {
        KAbstractFileWidget::OperationMode a0;
        KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KAbstractFileWidget, &sipCpp, sipType_KAbstractFileWidget_OperationMode, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_setOperationMode);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->setOperationMode(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_KAbstractFileWidget, sipName_setOperationMode, NULL);

    return NULL;
}


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

    {
        KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAbstractFileWidget, &sipCpp))
        {
            KAbstractFileWidget::OperationMode sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_operationMode);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->operationMode();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_KAbstractFileWidget_OperationMode);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KAbstractFileWidget, &sipCpp, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_setKeepLocation);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->setKeepLocation(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_KAbstractFileWidget, sipName_setKeepLocation, NULL);

    return NULL;
}


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

    {
        KAbstractFileWidget *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_keepsLocation);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->keepsLocation();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KAbstractFileWidget, &sipCpp, sipType_QString,&a0, &a0State))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_setFilter);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->setFilter(*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_KAbstractFileWidget, sipName_setFilter, NULL);

    return NULL;
}


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

    {
        KAbstractFileWidget *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_currentFilter);
                return NULL;
            }

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

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

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

    return NULL;
}


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

    {
        KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAbstractFileWidget, &sipCpp))
        {
            KMimeType::Ptr *sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_currentFilterMimeType);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KMimeType::Ptr(sipCpp->currentFilterMimeType());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QStringList * a0;
        int a0State = 0;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;
        KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|J1", &sipSelf, sipType_KAbstractFileWidget, &sipCpp, sipType_QStringList,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_setMimeFilter);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->setMimeFilter(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KAbstractFileWidget *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_currentMimeFilter);
                return NULL;
            }

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

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

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

    return NULL;
}


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

    {
        KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAbstractFileWidget, &sipCpp))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_clearFilter);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->clearFilter();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KPreviewWidgetBase * a0;
        KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KAbstractFileWidget, &sipCpp, sipType_KPreviewWidgetBase, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_setPreviewWidget);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPreviewWidget(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_KAbstractFileWidget, sipName_setPreviewWidget, NULL);

    return NULL;
}


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

    {
        KFile::Modes * a0;
        int a0State = 0;
        KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KAbstractFileWidget, &sipCpp, sipType_KFile_Modes, &a0, &a0State))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_setMode);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->setMode(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KFile_Modes,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAbstractFileWidget, &sipCpp))
        {
            KFile::Modes *sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_mode);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KFile::Modes(sipCpp->mode());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KAbstractFileWidget, &sipCpp, sipType_QString,&a0, &a0State))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_setLocationLabel);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->setLocationLabel(*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_KAbstractFileWidget, sipName_setLocationLabel, NULL);

    return NULL;
}


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

    {
        KAbstractFileWidget *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_toolBar);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toolBar();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KAbstractFileWidget *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_okButton);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->okButton();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KAbstractFileWidget *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_cancelButton);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->cancelButton();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KAbstractFileWidget *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_locationEdit);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->locationEdit();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KAbstractFileWidget *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_filterWidget);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->filterWidget();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KAbstractFileWidget *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_actionCollection);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->actionCollection();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        QWidget * a0;
        KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KAbstractFileWidget, &sipCpp, sipType_QWidget, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_setCustomWidget);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCustomWidget(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QString * a0;
        int a0State = 0;
        QWidget * a1;
        KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J8", &sipSelf, sipType_KAbstractFileWidget, &sipCpp, sipType_QString,&a0, &a0State, sipType_QWidget, &a1))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_setCustomWidget);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCustomWidget(*a0,a1);
            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_KAbstractFileWidget, sipName_setCustomWidget, NULL);

    return NULL;
}


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

    {
        KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAbstractFileWidget, &sipCpp))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_slotOk);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->slotOk();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAbstractFileWidget, &sipCpp))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_accept);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->accept();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KAbstractFileWidget, &sipCpp))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_slotCancel);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->slotCancel();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        void * a1;
        KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Biv", &sipSelf, sipType_KAbstractFileWidget, &sipCpp, &a0, &a1))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileWidget, sipName_virtual_hook);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->virtual_hook(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_KAbstractFileWidget, sipName_virtual_hook, NULL);

    return NULL;
}


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

    {
        bool a0;
        KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KAbstractFileWidget, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setConfirmOverwrite(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_KAbstractFileWidget, sipName_setConfirmOverwrite, NULL);

    return NULL;
}


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

    {
        bool a0;
        KAbstractFileWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KAbstractFileWidget, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setInlinePreviewShown(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_KAbstractFileWidget, sipName_setInlinePreviewShown, NULL);

    return NULL;
}


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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKAbstractFileWidget *>(sipCppV);
    else
        delete reinterpret_cast<KAbstractFileWidget *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const KAbstractFileWidget * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KAbstractFileWidget[] = {
    {SIP_MLNAME_CAST(sipName_accept), meth_KAbstractFileWidget_accept, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_actionCollection), meth_KAbstractFileWidget_actionCollection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_baseUrl), meth_KAbstractFileWidget_baseUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_cancelButton), meth_KAbstractFileWidget_cancelButton, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearFilter), meth_KAbstractFileWidget_clearFilter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentFilter), meth_KAbstractFileWidget_currentFilter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentFilterMimeType), meth_KAbstractFileWidget_currentFilterMimeType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentMimeFilter), meth_KAbstractFileWidget_currentMimeFilter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_filterWidget), meth_KAbstractFileWidget_filterWidget, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_keepsLocation), meth_KAbstractFileWidget_keepsLocation, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_locationEdit), meth_KAbstractFileWidget_locationEdit, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mode), meth_KAbstractFileWidget_mode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_okButton), meth_KAbstractFileWidget_okButton, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_operationMode), meth_KAbstractFileWidget_operationMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectedFile), meth_KAbstractFileWidget_selectedFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectedFiles), meth_KAbstractFileWidget_selectedFiles, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectedUrl), meth_KAbstractFileWidget_selectedUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectedUrls), meth_KAbstractFileWidget_selectedUrls, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setConfirmOverwrite), meth_KAbstractFileWidget_setConfirmOverwrite, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCustomWidget), meth_KAbstractFileWidget_setCustomWidget, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setFilter), meth_KAbstractFileWidget_setFilter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setInlinePreviewShown), meth_KAbstractFileWidget_setInlinePreviewShown, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setKeepLocation), meth_KAbstractFileWidget_setKeepLocation, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLocationLabel), meth_KAbstractFileWidget_setLocationLabel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMimeFilter), meth_KAbstractFileWidget_setMimeFilter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMode), meth_KAbstractFileWidget_setMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOperationMode), meth_KAbstractFileWidget_setOperationMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPreviewWidget), meth_KAbstractFileWidget_setPreviewWidget, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSelection), meth_KAbstractFileWidget_setSelection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setUrl), meth_KAbstractFileWidget_setUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotCancel), meth_KAbstractFileWidget_slotCancel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotOk), meth_KAbstractFileWidget_slotOk, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toolBar), meth_KAbstractFileWidget_toolBar, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_virtual_hook), meth_KAbstractFileWidget_virtual_hook, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KAbstractFileWidget[] = {
    {sipName_Opening, KAbstractFileWidget::Opening, 5},
    {sipName_Other, KAbstractFileWidget::Other, 5},
    {sipName_Saving, KAbstractFileWidget::Saving, 5},
};


pyqt4ClassTypeDef sipTypeDef_kio_KAbstractFileWidget = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_KAbstractFileWidget,
        {0}
    },
    {
        sipNameNr_KAbstractFileWidget,
        {0, 0, 1},
        34, methods_KAbstractFileWidget,
        3, enummembers_KAbstractFileWidget,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_KAbstractFileWidget,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KAbstractFileWidget,
    0,
    0,
    0,
    release_KAbstractFileWidget,
    cast_KAbstractFileWidget,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 113 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/kabstractfilemodule.sip"
#include <kabstractfilemodule.h>
#line 9264 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"

#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 9268 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 9271 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 9274 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 9277 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 9280 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 9283 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 9286 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 9289 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 9292 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 9295 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 9298 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 9301 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 9304 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 9307 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 9310 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"


class sipKAbstractFileModule : public KAbstractFileModule
{
public:
    sipKAbstractFileModule(QObject *);
    virtual ~sipKAbstractFileModule();

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

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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[11];
};

sipKAbstractFileModule::sipKAbstractFileModule(QObject *a0): KAbstractFileModule(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKAbstractFileModule::metaObject() const
{
    return sip_kio_qt_metaobject(sipPySelf,sipType_KAbstractFileModule);
}

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

    if (_id >= 0)
        _id = sip_kio_qt_metacall(sipPySelf,sipType_KAbstractFileModule,_c,_id,_a);

    return _id;
}

void *sipKAbstractFileModule::qt_metacast(const char *_clname)
{
    return (sip_kio_qt_metacast && sip_kio_qt_metacast(sipPySelf,sipType_KAbstractFileModule,_clname)) ? this : KAbstractFileModule::qt_metacast(_clname);
}

QWidget * sipKAbstractFileModule::createFileWidget(const KUrl& a0,QWidget *a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_KAbstractFileModule,sipName_createFileWidget);

    if (!sipMeth)
        return 0;

    extern QWidget * sipVH_kio_84(sip_gilstate_t,PyObject *,const KUrl&,QWidget *);

    return sipVH_kio_84(sipGILState,sipMeth,a0,a1);
}

KUrl sipKAbstractFileModule::getStartUrl(const KUrl& a0,QString& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,sipName_KAbstractFileModule,sipName_getStartUrl);

    if (!sipMeth)
        return KUrl();

    extern KUrl sipVH_kio_83(sip_gilstate_t,PyObject *,const KUrl&,QString&);

    return sipVH_kio_83(sipGILState,sipMeth,a0,a1);
}

void sipKAbstractFileModule::setStartDir(const KUrl& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,sipName_KAbstractFileModule,sipName_setStartDir);

    if (!sipMeth)
        return;

    typedef void (*sipVH_kdecore_47)(sip_gilstate_t,PyObject *,const KUrl&);

    ((sipVH_kdecore_47)(sipModuleAPI_kio_kdecore->em_virthandlers[47]))(sipGILState,sipMeth,a0);
}

KUrl sipKAbstractFileModule::selectDirectory(const KUrl& a0,bool a1,QWidget *a2,const QString& a3)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,sipName_KAbstractFileModule,sipName_selectDirectory);

    if (!sipMeth)
        return KUrl();

    extern KUrl sipVH_kio_82(sip_gilstate_t,PyObject *,const KUrl&,bool,QWidget *,const QString&);

    return sipVH_kio_82(sipGILState,sipMeth,a0,a1,a2,a3);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

    {
        sipKAbstractFileModule *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        char * a0;
        sipKAbstractFileModule *sipCpp;

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

#line 649 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp, a0, sipCpp->receivers(a0));
        #else
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
        #endif
#line 9676 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKAbstractFileModule *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KAbstractFileModule, &sipCpp, sipType_QTimerEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKAbstractFileModule *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KAbstractFileModule, &sipCpp, sipType_QChildEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKAbstractFileModule *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KAbstractFileModule, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKAbstractFileModule *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KAbstractFileModule, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKAbstractFileModule *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KAbstractFileModule, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KUrl * a0;
        QWidget * a1;
        KAbstractFileModule *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J:", &sipSelf, sipType_KAbstractFileModule, &sipCpp, sipType_KUrl, &a0, sipType_QWidget, &a1))
        {
            QWidget *sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileModule, sipName_createFileWidget);
                return NULL;
            }

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

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

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

    return NULL;
}


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

    {
        const KUrl * a0;
        QString * a1;
        int a1State = 0;
        KAbstractFileModule *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J1", &sipSelf, sipType_KAbstractFileModule, &sipCpp, sipType_KUrl, &a0, sipType_QString,&a1, &a1State))
        {
            KUrl *sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileModule, sipName_getStartUrl);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl(sipCpp->getStartUrl(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a1,sipType_QString,a1State);

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

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

    return NULL;
}


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

    {
        const KUrl * a0;
        KAbstractFileModule *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KAbstractFileModule, &sipCpp, sipType_KUrl, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileModule, sipName_setStartDir);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->setStartDir(*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_KAbstractFileModule, sipName_setStartDir, NULL);

    return NULL;
}


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

    {
        const KUrl * a0;
        bool a1;
        QWidget * a2;
        const QString * a3;
        int a3State = 0;
        KAbstractFileModule *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9bJ:J1", &sipSelf, sipType_KAbstractFileModule, &sipCpp, sipType_KUrl, &a0, &a1, sipType_QWidget, &a2, sipType_QString,&a3, &a3State))
        {
            KUrl *sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileModule, sipName_selectDirectory);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl(sipCpp->selectDirectory(*a0,a1,a2,*a3));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);

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

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

    return NULL;
}


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

    if (targetType == sipType_KAbstractFileModule)
        return ptr;

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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKAbstractFileModule *>(sipCppV);
    else
        delete reinterpret_cast<KAbstractFileModule *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        QObject * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KAbstractFileModule[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KAbstractFileModule_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KAbstractFileModule_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createFileWidget), meth_KAbstractFileModule_createFileWidget, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KAbstractFileModule_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KAbstractFileModule_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getStartUrl), meth_KAbstractFileModule_getStartUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KAbstractFileModule_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectDirectory), meth_KAbstractFileModule_selectDirectory, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_KAbstractFileModule_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setStartDir), meth_KAbstractFileModule_setStartDir, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KAbstractFileModule_timerEvent, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kio_KAbstractFileModule = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KAbstractFileModule,
        {0}
    },
    {
        sipNameNr_KAbstractFileModule,
        {0, 0, 1},
        11, methods_KAbstractFileModule,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KAbstractFileModule,
    0,
    init_KAbstractFileModule,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KAbstractFileModule,
    0,
    0,
    0,
    release_KAbstractFileModule,
    cast_KAbstractFileModule,
    0,
    0,
    0
},
    &KAbstractFileModule::staticMetaObject,
    0,
    0
};

#line 23 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/kabstractfileitemactionplugin.sip"
#include <kabstractfileitemactionplugin.h>
#line 10116 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"

#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 10120 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 10123 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtGui/qaction.sip"
#include <qaction.h>
#line 10126 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/kfileitemlistproperties.sip"
#include <kfileitemlistproperties.h>
#line 10129 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 10132 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 10135 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 10138 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 10141 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 10144 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 10147 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 10150 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 10153 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 10156 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 10159 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 10162 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 10165 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 10168 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"


class sipKAbstractFileItemActionPlugin : public KAbstractFileItemActionPlugin
{
public:
    sipKAbstractFileItemActionPlugin(QObject *);
    virtual ~sipKAbstractFileItemActionPlugin();

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

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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[8];
};

sipKAbstractFileItemActionPlugin::sipKAbstractFileItemActionPlugin(QObject *a0): KAbstractFileItemActionPlugin(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKAbstractFileItemActionPlugin::metaObject() const
{
    return sip_kio_qt_metaobject(sipPySelf,sipType_KAbstractFileItemActionPlugin);
}

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

    if (_id >= 0)
        _id = sip_kio_qt_metacall(sipPySelf,sipType_KAbstractFileItemActionPlugin,_c,_id,_a);

    return _id;
}

void *sipKAbstractFileItemActionPlugin::qt_metacast(const char *_clname)
{
    return (sip_kio_qt_metacast && sip_kio_qt_metacast(sipPySelf,sipType_KAbstractFileItemActionPlugin,_clname)) ? this : KAbstractFileItemActionPlugin::qt_metacast(_clname);
}

QList<QAction *> sipKAbstractFileItemActionPlugin::actions(const KFileItemListProperties& a0,QWidget *a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_KAbstractFileItemActionPlugin,sipName_actions);

    if (!sipMeth)
        return QList<QAction *>();

    extern QList<QAction *> sipVH_kio_49(sip_gilstate_t,PyObject *,const KFileItemListProperties&,QWidget *);

    return sipVH_kio_49(sipGILState,sipMeth,a0,a1);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

    {
        sipKAbstractFileItemActionPlugin *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        char * a0;
        sipKAbstractFileItemActionPlugin *sipCpp;

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

#line 649 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp, a0, sipCpp->receivers(a0));
        #else
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
        #endif
#line 10486 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipKAbstractFileItemActionPlugin *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KAbstractFileItemActionPlugin, &sipCpp, sipType_QTimerEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipKAbstractFileItemActionPlugin *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KAbstractFileItemActionPlugin, &sipCpp, sipType_QChildEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipKAbstractFileItemActionPlugin *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KAbstractFileItemActionPlugin, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKAbstractFileItemActionPlugin *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KAbstractFileItemActionPlugin, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipKAbstractFileItemActionPlugin *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KAbstractFileItemActionPlugin, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KFileItemListProperties * a0;
        QWidget * a1;
        KAbstractFileItemActionPlugin *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J8", &sipSelf, sipType_KAbstractFileItemActionPlugin, &sipCpp, sipType_KFileItemListProperties, &a0, sipType_QWidget, &a1))
        {
            QList<QAction *> *sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KAbstractFileItemActionPlugin, sipName_actions);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QAction *>(sipCpp->actions(*a0,a1));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    if (targetType == sipType_KAbstractFileItemActionPlugin)
        return ptr;

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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKAbstractFileItemActionPlugin *>(sipCppV);
    else
        delete reinterpret_cast<KAbstractFileItemActionPlugin *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        QObject * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KAbstractFileItemActionPlugin[] = {
    {SIP_MLNAME_CAST(sipName_actions), meth_KAbstractFileItemActionPlugin_actions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KAbstractFileItemActionPlugin_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KAbstractFileItemActionPlugin_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KAbstractFileItemActionPlugin_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KAbstractFileItemActionPlugin_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KAbstractFileItemActionPlugin_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_KAbstractFileItemActionPlugin_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KAbstractFileItemActionPlugin_timerEvent, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kio_KAbstractFileItemActionPlugin = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KAbstractFileItemActionPlugin,
        {0}
    },
    {
        sipNameNr_KAbstractFileItemActionPlugin,
        {0, 0, 1},
        8, methods_KAbstractFileItemActionPlugin,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KAbstractFileItemActionPlugin,
    0,
    init_KAbstractFileItemActionPlugin,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KAbstractFileItemActionPlugin,
    0,
    0,
    0,
    release_KAbstractFileItemActionPlugin,
    cast_KAbstractFileItemActionPlugin,
    0,
    0,
    0
},
    &KAbstractFileItemActionPlugin::staticMetaObject,
    0,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/jobuidelegate.sip"
#include <jobuidelegate.h>
#line 10811 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"

#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 10815 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 10818 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 10821 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 10824 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 10827 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 10830 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 10833 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 10836 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 10839 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 10842 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 10845 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 10848 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 10851 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 10854 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 10857 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 10860 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"


class sipKIO_JobUiDelegate : public KIO::JobUiDelegate
{
public:
    sipKIO_JobUiDelegate();
    virtual ~sipKIO_JobUiDelegate();

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

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void setWindow(QWidget *);
    KIO::RenameDialog_Result askFileRename(KJob *,const QString&,const QString&,const QString&,KIO::RenameDialog_Mode,QString&,KIO::filesize_t,KIO::filesize_t,time_t,time_t,time_t,time_t);
    KIO::SkipDialog_Result askSkip(KJob *,bool,const QString&);
    void showErrorMessage();
    void slotWarning(KJob *,const QString&,const QString&);
    bool event(QEvent *);
    bool eventFilter(QObject *,QEvent *);
    void timerEvent(QTimerEvent *);
    void childEvent(QChildEvent *);
    void customEvent(QEvent *);
    void connectNotify(const char *);
    void disconnectNotify(const char *);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[12];
};

sipKIO_JobUiDelegate::sipKIO_JobUiDelegate(): KIO::JobUiDelegate(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKIO_JobUiDelegate::metaObject() const
{
    return sip_kio_qt_metaobject(sipPySelf,sipType_KIO_JobUiDelegate);
}

int sipKIO_JobUiDelegate::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = KIO::JobUiDelegate::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_kio_qt_metacall(sipPySelf,sipType_KIO_JobUiDelegate,_c,_id,_a);

    return _id;
}

void *sipKIO_JobUiDelegate::qt_metacast(const char *_clname)
{
    return (sip_kio_qt_metacast && sip_kio_qt_metacast(sipPySelf,sipType_KIO_JobUiDelegate,_clname)) ? this : KIO::JobUiDelegate::qt_metacast(_clname);
}

void sipKIO_JobUiDelegate::setWindow(QWidget *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KIO::JobUiDelegate::setWindow(a0);
        return;
    }

    typedef void (*sipVH_QtGui_7)(sip_gilstate_t,PyObject *,QWidget *);

    ((sipVH_QtGui_7)(sipModuleAPI_kio_QtGui->em_virthandlers[7]))(sipGILState,sipMeth,a0);
}

KIO::RenameDialog_Result sipKIO_JobUiDelegate::askFileRename(KJob *a0,const QString& a1,const QString& a2,const QString& a3,KIO::RenameDialog_Mode a4,QString& a5,KIO::filesize_t a6,KIO::filesize_t a7,time_t a8,time_t a9,time_t a10,time_t a11)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KIO::JobUiDelegate::askFileRename(a0,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11);

    extern KIO::RenameDialog_Result sipVH_kio_86(sip_gilstate_t,PyObject *,KJob *,const QString&,const QString&,const QString&,KIO::RenameDialog_Mode,QString&,unsigned PY_LONG_LONG,unsigned PY_LONG_LONG,long,long,long,long);

    return sipVH_kio_86(sipGILState,sipMeth,a0,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11);
}

KIO::SkipDialog_Result sipKIO_JobUiDelegate::askSkip(KJob *a0,bool a1,const QString& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KIO::JobUiDelegate::askSkip(a0,a1,a2);

    extern KIO::SkipDialog_Result sipVH_kio_85(sip_gilstate_t,PyObject *,KJob *,bool,const QString&);

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

void sipKIO_JobUiDelegate::showErrorMessage()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_showErrorMessage);

    if (!sipMeth)
    {
        KDialogJobUiDelegate::showErrorMessage();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kio_QtCore->em_virthandlers[11]))(sipGILState,sipMeth);
}

void sipKIO_JobUiDelegate::slotWarning(KJob *a0,const QString& a1,const QString& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_slotWarning);

    if (!sipMeth)
    {
        KDialogJobUiDelegate::slotWarning(a0,a1,a2);
        return;
    }

    typedef void (*sipVH_kdecore_23)(sip_gilstate_t,PyObject *,KJob *,const QString&,const QString&);

    ((sipVH_kdecore_23)(sipModuleAPI_kio_kdecore->em_virthandlers[23]))(sipGILState,sipMeth,a0,a1,a2);
}

bool sipKIO_JobUiDelegate::event(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QObject::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *,QEvent *);

    return ((sipVH_QtCore_5)(sipModuleAPI_kio_QtCore->em_virthandlers[5]))(sipGILState,sipMeth,a0);
}

bool sipKIO_JobUiDelegate::eventFilter(QObject *a0,QEvent *a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QObject::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,QObject *,QEvent *);

    return ((sipVH_QtCore_18)(sipModuleAPI_kio_QtCore->em_virthandlers[18]))(sipGILState,sipMeth,a0,a1);
}

void sipKIO_JobUiDelegate::timerEvent(QTimerEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QObject::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t,PyObject *,QTimerEvent *);

    ((sipVH_QtCore_9)(sipModuleAPI_kio_QtCore->em_virthandlers[9]))(sipGILState,sipMeth,a0);
}

void sipKIO_JobUiDelegate::childEvent(QChildEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QObject::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t,PyObject *,QChildEvent *);

    ((sipVH_QtCore_25)(sipModuleAPI_kio_QtCore->em_virthandlers[25]))(sipGILState,sipMeth,a0);
}

void sipKIO_JobUiDelegate::customEvent(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QObject::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t,PyObject *,QEvent *);

    ((sipVH_QtCore_17)(sipModuleAPI_kio_QtCore->em_virthandlers[17]))(sipGILState,sipMeth,a0);
}

void sipKIO_JobUiDelegate::connectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QObject::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t,PyObject *,const char *);

    ((sipVH_QtCore_24)(sipModuleAPI_kio_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

void sipKIO_JobUiDelegate::disconnectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QObject::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t,PyObject *,const char *);

    ((sipVH_QtCore_24)(sipModuleAPI_kio_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

QObject * sipKIO_JobUiDelegate::sipProtect_sender() const
{
    return QObject::sender();
}

int sipKIO_JobUiDelegate::sipProtect_receivers(const char *a0) const
{
    return QObject::receivers(a0);
}

void sipKIO_JobUiDelegate::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent *a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipKIO_JobUiDelegate::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent *a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipKIO_JobUiDelegate::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipKIO_JobUiDelegate::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipKIO_JobUiDelegate::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

KJob * sipKIO_JobUiDelegate::sipProtect_job()
{
    return KJobUiDelegate::job();
}

void sipKIO_JobUiDelegate::sipProtectVirt_slotWarning(bool sipSelfWasArg,KJob *a0,const QString& a1,const QString& a2)
{
    (sipSelfWasArg ? KDialogJobUiDelegate::slotWarning(a0,a1,a2) : slotWarning(a0,a1,a2));
}


extern "C" {static PyObject *meth_KIO_JobUiDelegate_sender(PyObject *, PyObject *);}
static PyObject *meth_KIO_JobUiDelegate_sender(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipKIO_JobUiDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KIO_JobUiDelegate, &sipCpp))
        {
            QObject *sipRes = 0;

#line 632 "/usr/local/share/py-sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp->sender());
        #else
            sipRes = helper(sipCpp->sipProtect_sender());
        #endif
#line 11221 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_JobUiDelegate, sipName_sender, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_JobUiDelegate_receivers(PyObject *, PyObject *);}
static PyObject *meth_KIO_JobUiDelegate_receivers(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        char * a0;
        sipKIO_JobUiDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KIO_JobUiDelegate, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 649 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp, a0, sipCpp->receivers(a0));
        #else
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
        #endif
#line 11263 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_JobUiDelegate, sipName_receivers, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_JobUiDelegate_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_KIO_JobUiDelegate_timerEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipKIO_JobUiDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KIO_JobUiDelegate, &sipCpp, sipType_QTimerEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_JobUiDelegate, sipName_timerEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_JobUiDelegate_childEvent(PyObject *, PyObject *);}
static PyObject *meth_KIO_JobUiDelegate_childEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipKIO_JobUiDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KIO_JobUiDelegate, &sipCpp, sipType_QChildEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_JobUiDelegate, sipName_childEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_JobUiDelegate_customEvent(PyObject *, PyObject *);}
static PyObject *meth_KIO_JobUiDelegate_customEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipKIO_JobUiDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KIO_JobUiDelegate, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_JobUiDelegate, sipName_customEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_JobUiDelegate_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_KIO_JobUiDelegate_connectNotify(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKIO_JobUiDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KIO_JobUiDelegate, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_JobUiDelegate, sipName_connectNotify, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_JobUiDelegate_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_KIO_JobUiDelegate_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKIO_JobUiDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KIO_JobUiDelegate, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_JobUiDelegate, sipName_disconnectNotify, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_JobUiDelegate_job(PyObject *, PyObject *);}
static PyObject *meth_KIO_JobUiDelegate_job(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipKIO_JobUiDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KIO_JobUiDelegate, &sipCpp))
        {
            KJob *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_job();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KJob,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_JobUiDelegate, sipName_job, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_JobUiDelegate_slotWarning(PyObject *, PyObject *);}
static PyObject *meth_KIO_JobUiDelegate_slotWarning(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KJob * a0;
        const QString * a1;
        int a1State = 0;
        const QString * a2;
        int a2State = 0;
        sipKIO_JobUiDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J1J1", &sipSelf, sipType_KIO_JobUiDelegate, &sipCpp, sipType_KJob, &a0, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_slotWarning(sipSelfWasArg,a0,*a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_JobUiDelegate, sipName_slotWarning, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_JobUiDelegate_setWindow(PyObject *, PyObject *);}
static PyObject *meth_KIO_JobUiDelegate_setWindow(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QWidget * a0;
        KIO::JobUiDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KIO_JobUiDelegate, &sipCpp, sipType_QWidget, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KIO::JobUiDelegate::setWindow(a0) : sipCpp->setWindow(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_JobUiDelegate, sipName_setWindow, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_JobUiDelegate_askFileRename(PyObject *, PyObject *);}
static PyObject *meth_KIO_JobUiDelegate_askFileRename(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KJob * a0;
        const QString * a1;
        int a1State = 0;
        const QString * a2;
        int a2State = 0;
        const QString * a3;
        int a3State = 0;
        KIO::RenameDialog_Mode a4;
        QString * a5;
        int a5State = 0;
        KIO::filesize_t a6 = -1;
        KIO::filesize_t a7 = -1;
        time_t a8 = -1;
        time_t a9 = -1;
        time_t a10 = -1;
        time_t a11 = -1;
        KIO::JobUiDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J1J1J1EJ1|oollll", &sipSelf, sipType_KIO_JobUiDelegate, &sipCpp, sipType_KJob, &a0, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, sipType_QString,&a3, &a3State, sipType_KIO_RenameDialog_Mode, &a4, sipType_QString,&a5, &a5State, &a6, &a7, &a8, &a9, &a10, &a11))
        {
            KIO::RenameDialog_Result sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KIO::JobUiDelegate::askFileRename(a0,*a1,*a2,*a3,a4,*a5,a6,a7,a8,a9,a10,a11) : sipCpp->askFileRename(a0,*a1,*a2,*a3,a4,*a5,a6,a7,a8,a9,a10,a11));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);
            sipReleaseType(a5,sipType_QString,a5State);

            return sipConvertFromEnum(sipRes,sipType_KIO_RenameDialog_Result);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_JobUiDelegate, sipName_askFileRename, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_JobUiDelegate_askSkip(PyObject *, PyObject *);}
static PyObject *meth_KIO_JobUiDelegate_askSkip(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KJob * a0;
        bool a1;
        const QString * a2;
        int a2State = 0;
        KIO::JobUiDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8bJ1", &sipSelf, sipType_KIO_JobUiDelegate, &sipCpp, sipType_KJob, &a0, &a1, sipType_QString,&a2, &a2State))
        {
            KIO::SkipDialog_Result sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KIO::JobUiDelegate::askSkip(a0,a1,*a2) : sipCpp->askSkip(a0,a1,*a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            return sipConvertFromEnum(sipRes,sipType_KIO_SkipDialog_Result);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_JobUiDelegate, sipName_askSkip, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_JobUiDelegate_askDeleteConfirmation(PyObject *, PyObject *);}
static PyObject *meth_KIO_JobUiDelegate_askDeleteConfirmation(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KUrl::List * a0;
        KIO::JobUiDelegate::DeletionType a1;
        KIO::JobUiDelegate::ConfirmationType a2;
        KIO::JobUiDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9EE", &sipSelf, sipType_KIO_JobUiDelegate, &sipCpp, sipType_KUrl_List, &a0, sipType_KIO_JobUiDelegate_DeletionType, &a1, sipType_KIO_JobUiDelegate_ConfirmationType, &a2))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->askDeleteConfirmation(*a0,a1,a2);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_JobUiDelegate, sipName_askDeleteConfirmation, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KIO_JobUiDelegate(void *, const sipTypeDef *);}
static void *cast_KIO_JobUiDelegate(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_KIO_JobUiDelegate)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KDialogJobUiDelegate)->ctd_cast((KDialogJobUiDelegate *)(KIO::JobUiDelegate *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KIO_JobUiDelegate(void *, int);}
static void release_KIO_JobUiDelegate(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKIO_JobUiDelegate *>(sipCppV);
    else
        delete reinterpret_cast<KIO::JobUiDelegate *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KIO_JobUiDelegate(sipSimpleWrapper *);}
static void dealloc_KIO_JobUiDelegate(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKIO_JobUiDelegate *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KIO_JobUiDelegate(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_KIO_JobUiDelegate(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_KIO_JobUiDelegate(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKIO_JobUiDelegate *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKIO_JobUiDelegate();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KIO_JobUiDelegate[] = {{94, 7, 1}};


static PyMethodDef methods_KIO_JobUiDelegate[] = {
    {SIP_MLNAME_CAST(sipName_askDeleteConfirmation), meth_KIO_JobUiDelegate_askDeleteConfirmation, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_askFileRename), meth_KIO_JobUiDelegate_askFileRename, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_askSkip), meth_KIO_JobUiDelegate_askSkip, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KIO_JobUiDelegate_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KIO_JobUiDelegate_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KIO_JobUiDelegate_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KIO_JobUiDelegate_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_job), meth_KIO_JobUiDelegate_job, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KIO_JobUiDelegate_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_KIO_JobUiDelegate_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setWindow), meth_KIO_JobUiDelegate_setWindow, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotWarning), meth_KIO_JobUiDelegate_slotWarning, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KIO_JobUiDelegate_timerEvent, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KIO_JobUiDelegate[] = {
    {sipName_DefaultConfirmation, KIO::JobUiDelegate::DefaultConfirmation, 131},
    {sipName_Delete, KIO::JobUiDelegate::Delete, 132},
    {sipName_EmptyTrash, KIO::JobUiDelegate::EmptyTrash, 132},
    {sipName_ForceConfirmation, KIO::JobUiDelegate::ForceConfirmation, 131},
    {sipName_Trash, KIO::JobUiDelegate::Trash, 132},
};


pyqt4ClassTypeDef sipTypeDef_kio_KIO_JobUiDelegate = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KIO__JobUiDelegate,
        {0}
    },
    {
        sipNameNr_JobUiDelegate,
        {101, 255, 0},
        13, methods_KIO_JobUiDelegate,
        5, enummembers_KIO_JobUiDelegate,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KIO_JobUiDelegate,
    0,
    init_KIO_JobUiDelegate,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KIO_JobUiDelegate,
    0,
    0,
    0,
    release_KIO_JobUiDelegate,
    cast_KIO_JobUiDelegate,
    0,
    0,
    0
},
    &KIO::JobUiDelegate::staticMetaObject,
    0,
    0
};

#line 373 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/jobclasses.sip"
#include <jobclasses.h>
#line 11763 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"

#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 11767 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 11770 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/global.sip"
#include<qmap.h>
#line 11773 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 11776 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/jobclasses.sip"
#include <jobclasses.h>
#line 11779 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 11782 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 360 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 11785 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 11788 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 11791 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 11794 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 11797 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/jobuidelegate.sip"
#include <jobuidelegate.h>
#line 11800 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 11803 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 589 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 11806 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 11809 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 11812 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 11815 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 11818 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 11821 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 11824 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 11827 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 11830 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 11833 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 11836 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 11839 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 11842 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 11845 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"


class sipKIO_SpecialJob : public KIO::SpecialJob
{
public:
    sipKIO_SpecialJob(const KUrl&,const QByteArray&);
    virtual ~sipKIO_SpecialJob();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject * sipProtect_sender() const;
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    void sipProtect_setCapabilities(KJob::Capabilities);
    void sipProtect_setError(int);
    void sipProtect_setErrorText(const QString&);
    void sipProtect_setProcessedAmount(KJob::Unit,qulonglong);
    void sipProtect_setTotalAmount(KJob::Unit,qulonglong);
    void sipProtect_setPercent(unsigned long);
    void sipProtect_emitResult();
    void sipProtect_emitPercent(qulonglong,qulonglong);
    void sipProtect_emitSpeed(unsigned long);
    bool sipProtect_hasSubjobs();
    const QList<KJob *>& sipProtect_subjobs() const;
    void sipProtect_clearSubjobs();
    void sipProtectVirt_slotInfoMessage(bool,KJob *,const QString&,const QString&);
    bool sipProtectVirt_addSubjob(bool,KJob *);
    bool sipProtectVirt_removeSubjob(bool,KJob *);
    bool sipProtectVirt_doSuspend(bool);
    bool sipProtectVirt_doKill(bool);
    void sipProtectVirt_slotWarning(bool,const QString&);
    void sipProtect_storeSSLSessionFromJob(const KUrl&);
    void sipProtectVirt_slotResult(bool,KJob *);
    bool sipProtectVirt_doResume(bool);
    void sipProtectVirt_slotRedirection(bool,const KUrl&);
    void sipProtectVirt_slotFinished(bool);
    void sipProtectVirt_slotData(bool,const QByteArray&);
    void sipProtectVirt_slotDataReq(bool);
    void sipProtectVirt_slotMimetype(bool,const QString&);
    void sipProtectVirt_slotMetaData(bool,const KIO::MetaData&);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void slotResult(KJob *);
    bool doResume();
    void slotRedirection(const KUrl&);
    void slotFinished();
    void slotData(const QByteArray&);
    void slotDataReq();
    void slotMimetype(const QString&);
    void slotMetaData(const KIO::MetaData&);
    bool doSuspend();
    bool doKill();
    void putOnHold();
    void slotWarning(const QString&);
    bool addSubjob(KJob *);
    bool removeSubjob(KJob *);
    void slotInfoMessage(KJob *,const QString&,const QString&);
    void start();
    QString errorString() const;
    bool event(QEvent *);
    bool eventFilter(QObject *,QEvent *);
    void timerEvent(QTimerEvent *);
    void childEvent(QChildEvent *);
    void customEvent(QEvent *);
    void connectNotify(const char *);
    void disconnectNotify(const char *);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKIO_SpecialJob(const sipKIO_SpecialJob &);
    sipKIO_SpecialJob &operator = (const sipKIO_SpecialJob &);

    char sipPyMethods[24];
};

sipKIO_SpecialJob::sipKIO_SpecialJob(const KUrl& a0,const QByteArray& a1): KIO::SpecialJob(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKIO_SpecialJob::~sipKIO_SpecialJob()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipKIO_SpecialJob::metaObject() const
{
    return sip_kio_qt_metaobject(sipPySelf,sipType_KIO_SpecialJob);
}

int sipKIO_SpecialJob::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = KIO::SpecialJob::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_kio_qt_metacall(sipPySelf,sipType_KIO_SpecialJob,_c,_id,_a);

    return _id;
}

void *sipKIO_SpecialJob::qt_metacast(const char *_clname)
{
    return (sip_kio_qt_metacast && sip_kio_qt_metacast(sipPySelf,sipType_KIO_SpecialJob,_clname)) ? this : KIO::SpecialJob::qt_metacast(_clname);
}

void sipKIO_SpecialJob::slotResult(KJob *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_slotResult);

    if (!sipMeth)
    {
        KIO::TransferJob::slotResult(a0);
        return;
    }

    typedef void (*sipVH_kdecore_27)(sip_gilstate_t,PyObject *,KJob *);

    ((sipVH_kdecore_27)(sipModuleAPI_kio_kdecore->em_virthandlers[27]))(sipGILState,sipMeth,a0);
}

bool sipKIO_SpecialJob::doResume()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_doResume);

    if (!sipMeth)
        return KIO::TransferJob::doResume();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kio_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

void sipKIO_SpecialJob::slotRedirection(const KUrl& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_slotRedirection);

    if (!sipMeth)
    {
        KIO::TransferJob::slotRedirection(a0);
        return;
    }

    typedef void (*sipVH_kdecore_47)(sip_gilstate_t,PyObject *,const KUrl&);

    ((sipVH_kdecore_47)(sipModuleAPI_kio_kdecore->em_virthandlers[47]))(sipGILState,sipMeth,a0);
}

void sipKIO_SpecialJob::slotFinished()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_slotFinished);

    if (!sipMeth)
    {
        KIO::TransferJob::slotFinished();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kio_QtCore->em_virthandlers[11]))(sipGILState,sipMeth);
}

void sipKIO_SpecialJob::slotData(const QByteArray& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_slotData);

    if (!sipMeth)
    {
        KIO::TransferJob::slotData(a0);
        return;
    }

    typedef void (*sipVH_QtXml_29)(sip_gilstate_t,PyObject *,const QByteArray&);

    ((sipVH_QtXml_29)(sipModuleAPI_kio_QtXml->em_virthandlers[29]))(sipGILState,sipMeth,a0);
}

void sipKIO_SpecialJob::slotDataReq()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_slotDataReq);

    if (!sipMeth)
    {
        KIO::TransferJob::slotDataReq();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kio_QtCore->em_virthandlers[11]))(sipGILState,sipMeth);
}

void sipKIO_SpecialJob::slotMimetype(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_slotMimetype);

    if (!sipMeth)
    {
        KIO::TransferJob::slotMimetype(a0);
        return;
    }

    typedef void (*sipVH_QtCore_33)(sip_gilstate_t,PyObject *,const QString&);

    ((sipVH_QtCore_33)(sipModuleAPI_kio_QtCore->em_virthandlers[33]))(sipGILState,sipMeth,a0);
}

void sipKIO_SpecialJob::slotMetaData(const KIO::MetaData& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_slotMetaData);

    if (!sipMeth)
    {
        KIO::TransferJob::slotMetaData(a0);
        return;
    }

    extern void sipVH_kio_17(sip_gilstate_t,PyObject *,const KIO::MetaData&);

    sipVH_kio_17(sipGILState,sipMeth,a0);
}

bool sipKIO_SpecialJob::doSuspend()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_doSuspend);

    if (!sipMeth)
        return KIO::SimpleJob::doSuspend();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kio_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

bool sipKIO_SpecialJob::doKill()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_doKill);

    if (!sipMeth)
        return KIO::SimpleJob::doKill();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_kio_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

void sipKIO_SpecialJob::putOnHold()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_putOnHold);

    if (!sipMeth)
    {
        KIO::SimpleJob::putOnHold();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kio_QtCore->em_virthandlers[11]))(sipGILState,sipMeth);
}

void sipKIO_SpecialJob::slotWarning(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_slotWarning);

    if (!sipMeth)
    {
        KIO::SimpleJob::slotWarning(a0);
        return;
    }

    typedef void (*sipVH_QtCore_33)(sip_gilstate_t,PyObject *,const QString&);

    ((sipVH_QtCore_33)(sipModuleAPI_kio_QtCore->em_virthandlers[33]))(sipGILState,sipMeth,a0);
}

bool sipKIO_SpecialJob::addSubjob(KJob *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_addSubjob);

    if (!sipMeth)
        return KIO::Job::addSubjob(a0);

    typedef bool (*sipVH_kdecore_53)(sip_gilstate_t,PyObject *,KJob *);

    return ((sipVH_kdecore_53)(sipModuleAPI_kio_kdecore->em_virthandlers[53]))(sipGILState,sipMeth,a0);
}

bool sipKIO_SpecialJob::removeSubjob(KJob *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_removeSubjob);

    if (!sipMeth)
        return KIO::Job::removeSubjob(a0);

    typedef bool (*sipVH_kdecore_53)(sip_gilstate_t,PyObject *,KJob *);

    return ((sipVH_kdecore_53)(sipModuleAPI_kio_kdecore->em_virthandlers[53]))(sipGILState,sipMeth,a0);
}

void sipKIO_SpecialJob::slotInfoMessage(KJob *a0,const QString& a1,const QString& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_slotInfoMessage);

    if (!sipMeth)
    {
        KCompositeJob::slotInfoMessage(a0,a1,a2);
        return;
    }

    typedef void (*sipVH_kdecore_23)(sip_gilstate_t,PyObject *,KJob *,const QString&,const QString&);

    ((sipVH_kdecore_23)(sipModuleAPI_kio_kdecore->em_virthandlers[23]))(sipGILState,sipMeth,a0,a1,a2);
}

void sipKIO_SpecialJob::start()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_start);

    if (!sipMeth)
    {
        KIO::Job::start();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_kio_QtCore->em_virthandlers[11]))(sipGILState,sipMeth);
}

QString sipKIO_SpecialJob::errorString() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[16]),sipPySelf,NULL,sipName_errorString);

    if (!sipMeth)
        return KIO::Job::errorString();

    typedef QString (*sipVH_QtCore_62)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_62)(sipModuleAPI_kio_QtCore->em_virthandlers[62]))(sipGILState,sipMeth);
}

bool sipKIO_SpecialJob::event(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QObject::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *,QEvent *);

    return ((sipVH_QtCore_5)(sipModuleAPI_kio_QtCore->em_virthandlers[5]))(sipGILState,sipMeth,a0);
}

bool sipKIO_SpecialJob::eventFilter(QObject *a0,QEvent *a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QObject::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,QObject *,QEvent *);

    return ((sipVH_QtCore_18)(sipModuleAPI_kio_QtCore->em_virthandlers[18]))(sipGILState,sipMeth,a0,a1);
}

void sipKIO_SpecialJob::timerEvent(QTimerEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QObject::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t,PyObject *,QTimerEvent *);

    ((sipVH_QtCore_9)(sipModuleAPI_kio_QtCore->em_virthandlers[9]))(sipGILState,sipMeth,a0);
}

void sipKIO_SpecialJob::childEvent(QChildEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QObject::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t,PyObject *,QChildEvent *);

    ((sipVH_QtCore_25)(sipModuleAPI_kio_QtCore->em_virthandlers[25]))(sipGILState,sipMeth,a0);
}

void sipKIO_SpecialJob::customEvent(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QObject::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t,PyObject *,QEvent *);

    ((sipVH_QtCore_17)(sipModuleAPI_kio_QtCore->em_virthandlers[17]))(sipGILState,sipMeth,a0);
}

void sipKIO_SpecialJob::connectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QObject::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t,PyObject *,const char *);

    ((sipVH_QtCore_24)(sipModuleAPI_kio_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

void sipKIO_SpecialJob::disconnectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QObject::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t,PyObject *,const char *);

    ((sipVH_QtCore_24)(sipModuleAPI_kio_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

QObject * sipKIO_SpecialJob::sipProtect_sender() const
{
    return QObject::sender();
}

int sipKIO_SpecialJob::sipProtect_receivers(const char *a0) const
{
    return QObject::receivers(a0);
}

void sipKIO_SpecialJob::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent *a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipKIO_SpecialJob::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent *a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipKIO_SpecialJob::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipKIO_SpecialJob::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipKIO_SpecialJob::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

void sipKIO_SpecialJob::sipProtect_setCapabilities(KJob::Capabilities a0)
{
    KJob::setCapabilities(a0);
}

void sipKIO_SpecialJob::sipProtect_setError(int a0)
{
    KJob::setError(a0);
}

void sipKIO_SpecialJob::sipProtect_setErrorText(const QString& a0)
{
    KJob::setErrorText(a0);
}

void sipKIO_SpecialJob::sipProtect_setProcessedAmount(KJob::Unit a0,qulonglong a1)
{
    KJob::setProcessedAmount(a0,a1);
}

void sipKIO_SpecialJob::sipProtect_setTotalAmount(KJob::Unit a0,qulonglong a1)
{
    KJob::setTotalAmount(a0,a1);
}

void sipKIO_SpecialJob::sipProtect_setPercent(unsigned long a0)
{
    KJob::setPercent(a0);
}

void sipKIO_SpecialJob::sipProtect_emitResult()
{
    KJob::emitResult();
}

void sipKIO_SpecialJob::sipProtect_emitPercent(qulonglong a0,qulonglong a1)
{
    KJob::emitPercent(a0,a1);
}

void sipKIO_SpecialJob::sipProtect_emitSpeed(unsigned long a0)
{
    KJob::emitSpeed(a0);
}

bool sipKIO_SpecialJob::sipProtect_hasSubjobs()
{
    return KCompositeJob::hasSubjobs();
}

const QList<KJob *>& sipKIO_SpecialJob::sipProtect_subjobs() const
{
    return KCompositeJob::subjobs();
}

void sipKIO_SpecialJob::sipProtect_clearSubjobs()
{
    KCompositeJob::clearSubjobs();
}

void sipKIO_SpecialJob::sipProtectVirt_slotInfoMessage(bool sipSelfWasArg,KJob *a0,const QString& a1,const QString& a2)
{
    (sipSelfWasArg ? KCompositeJob::slotInfoMessage(a0,a1,a2) : slotInfoMessage(a0,a1,a2));
}

bool sipKIO_SpecialJob::sipProtectVirt_addSubjob(bool sipSelfWasArg,KJob *a0)
{
    return (sipSelfWasArg ? KIO::Job::addSubjob(a0) : addSubjob(a0));
}

bool sipKIO_SpecialJob::sipProtectVirt_removeSubjob(bool sipSelfWasArg,KJob *a0)
{
    return (sipSelfWasArg ? KIO::Job::removeSubjob(a0) : removeSubjob(a0));
}

bool sipKIO_SpecialJob::sipProtectVirt_doSuspend(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? KIO::SimpleJob::doSuspend() : doSuspend());
}

bool sipKIO_SpecialJob::sipProtectVirt_doKill(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? KIO::SimpleJob::doKill() : doKill());
}

void sipKIO_SpecialJob::sipProtectVirt_slotWarning(bool sipSelfWasArg,const QString& a0)
{
    (sipSelfWasArg ? KIO::SimpleJob::slotWarning(a0) : slotWarning(a0));
}

void sipKIO_SpecialJob::sipProtect_storeSSLSessionFromJob(const KUrl& a0)
{
    KIO::SimpleJob::storeSSLSessionFromJob(a0);
}

void sipKIO_SpecialJob::sipProtectVirt_slotResult(bool sipSelfWasArg,KJob *a0)
{
    (sipSelfWasArg ? KIO::TransferJob::slotResult(a0) : slotResult(a0));
}

bool sipKIO_SpecialJob::sipProtectVirt_doResume(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? KIO::TransferJob::doResume() : doResume());
}

void sipKIO_SpecialJob::sipProtectVirt_slotRedirection(bool sipSelfWasArg,const KUrl& a0)
{
    (sipSelfWasArg ? KIO::TransferJob::slotRedirection(a0) : slotRedirection(a0));
}

void sipKIO_SpecialJob::sipProtectVirt_slotFinished(bool sipSelfWasArg)
{
    (sipSelfWasArg ? KIO::TransferJob::slotFinished() : slotFinished());
}

void sipKIO_SpecialJob::sipProtectVirt_slotData(bool sipSelfWasArg,const QByteArray& a0)
{
    (sipSelfWasArg ? KIO::TransferJob::slotData(a0) : slotData(a0));
}

void sipKIO_SpecialJob::sipProtectVirt_slotDataReq(bool sipSelfWasArg)
{
    (sipSelfWasArg ? KIO::TransferJob::slotDataReq() : slotDataReq());
}

void sipKIO_SpecialJob::sipProtectVirt_slotMimetype(bool sipSelfWasArg,const QString& a0)
{
    (sipSelfWasArg ? KIO::TransferJob::slotMimetype(a0) : slotMimetype(a0));
}

void sipKIO_SpecialJob::sipProtectVirt_slotMetaData(bool sipSelfWasArg,const KIO::MetaData& a0)
{
    (sipSelfWasArg ? KIO::TransferJob::slotMetaData(a0) : slotMetaData(a0));
}


extern "C" {static PyObject *meth_KIO_SpecialJob_sender(PyObject *, PyObject *);}
static PyObject *meth_KIO_SpecialJob_sender(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipKIO_SpecialJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KIO_SpecialJob, &sipCpp))
        {
            QObject *sipRes = 0;

#line 632 "/usr/local/share/py-sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp->sender());
        #else
            sipRes = helper(sipCpp->sipProtect_sender());
        #endif
#line 12572 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_SpecialJob, sipName_sender, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_SpecialJob_receivers(PyObject *, PyObject *);}
static PyObject *meth_KIO_SpecialJob_receivers(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        char * a0;
        sipKIO_SpecialJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KIO_SpecialJob, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 649 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp, a0, sipCpp->receivers(a0));
        #else
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
        #endif
#line 12614 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_SpecialJob, sipName_receivers, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_SpecialJob_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_KIO_SpecialJob_timerEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipKIO_SpecialJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KIO_SpecialJob, &sipCpp, sipType_QTimerEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_SpecialJob, sipName_timerEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_SpecialJob_childEvent(PyObject *, PyObject *);}
static PyObject *meth_KIO_SpecialJob_childEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipKIO_SpecialJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KIO_SpecialJob, &sipCpp, sipType_QChildEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_SpecialJob, sipName_childEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_SpecialJob_customEvent(PyObject *, PyObject *);}
static PyObject *meth_KIO_SpecialJob_customEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipKIO_SpecialJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KIO_SpecialJob, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_SpecialJob, sipName_customEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_SpecialJob_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_KIO_SpecialJob_connectNotify(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKIO_SpecialJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KIO_SpecialJob, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_SpecialJob, sipName_connectNotify, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_SpecialJob_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_KIO_SpecialJob_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKIO_SpecialJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KIO_SpecialJob, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_SpecialJob, sipName_disconnectNotify, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_SpecialJob_setCapabilities(PyObject *, PyObject *);}
static PyObject *meth_KIO_SpecialJob_setCapabilities(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KJob::Capabilities * a0;
        int a0State = 0;
        sipKIO_SpecialJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KIO_SpecialJob, &sipCpp, sipType_KJob_Capabilities, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setCapabilities(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KJob_Capabilities,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_SpecialJob, sipName_setCapabilities, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_SpecialJob_setError(PyObject *, PyObject *);}
static PyObject *meth_KIO_SpecialJob_setError(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        sipKIO_SpecialJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KIO_SpecialJob, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setError(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_SpecialJob, sipName_setError, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_SpecialJob_setErrorText(PyObject *, PyObject *);}
static PyObject *meth_KIO_SpecialJob_setErrorText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;
        sipKIO_SpecialJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KIO_SpecialJob, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setErrorText(*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_SpecialJob, sipName_setErrorText, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_SpecialJob_setProcessedAmount(PyObject *, PyObject *);}
static PyObject *meth_KIO_SpecialJob_setProcessedAmount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KJob::Unit a0;
        qulonglong a1;
        sipKIO_SpecialJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEo", &sipSelf, sipType_KIO_SpecialJob, &sipCpp, sipType_KJob_Unit, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setProcessedAmount(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_SpecialJob, sipName_setProcessedAmount, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_SpecialJob_setTotalAmount(PyObject *, PyObject *);}
static PyObject *meth_KIO_SpecialJob_setTotalAmount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KJob::Unit a0;
        qulonglong a1;
        sipKIO_SpecialJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEo", &sipSelf, sipType_KIO_SpecialJob, &sipCpp, sipType_KJob_Unit, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setTotalAmount(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_SpecialJob, sipName_setTotalAmount, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_SpecialJob_setPercent(PyObject *, PyObject *);}
static PyObject *meth_KIO_SpecialJob_setPercent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        unsigned long a0;
        sipKIO_SpecialJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bm", &sipSelf, sipType_KIO_SpecialJob, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setPercent(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_SpecialJob, sipName_setPercent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_SpecialJob_emitResult(PyObject *, PyObject *);}
static PyObject *meth_KIO_SpecialJob_emitResult(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipKIO_SpecialJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KIO_SpecialJob, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_emitResult();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_SpecialJob, sipName_emitResult, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_SpecialJob_emitPercent(PyObject *, PyObject *);}
static PyObject *meth_KIO_SpecialJob_emitPercent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qulonglong a0;
        qulonglong a1;
        sipKIO_SpecialJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Boo", &sipSelf, sipType_KIO_SpecialJob, &sipCpp, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_emitPercent(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_SpecialJob, sipName_emitPercent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_SpecialJob_emitSpeed(PyObject *, PyObject *);}
static PyObject *meth_KIO_SpecialJob_emitSpeed(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        unsigned long a0;
        sipKIO_SpecialJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bm", &sipSelf, sipType_KIO_SpecialJob, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_emitSpeed(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_SpecialJob, sipName_emitSpeed, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_SpecialJob_hasSubjobs(PyObject *, PyObject *);}
static PyObject *meth_KIO_SpecialJob_hasSubjobs(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipKIO_SpecialJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KIO_SpecialJob, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_hasSubjobs();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_SpecialJob, sipName_hasSubjobs, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_SpecialJob_subjobs(PyObject *, PyObject *);}
static PyObject *meth_KIO_SpecialJob_subjobs(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipKIO_SpecialJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KIO_SpecialJob, &sipCpp))
        {
            QList<KJob *> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KJob *>(sipCpp->sipProtect_subjobs());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0101KJob,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_SpecialJob, sipName_subjobs, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_SpecialJob_clearSubjobs(PyObject *, PyObject *);}
static PyObject *meth_KIO_SpecialJob_clearSubjobs(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipKIO_SpecialJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KIO_SpecialJob, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_clearSubjobs();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_SpecialJob, sipName_clearSubjobs, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_SpecialJob_slotInfoMessage(PyObject *, PyObject *);}
static PyObject *meth_KIO_SpecialJob_slotInfoMessage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KJob * a0;
        const QString * a1;
        int a1State = 0;
        const QString * a2;
        int a2State = 0;
        sipKIO_SpecialJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J1J1", &sipSelf, sipType_KIO_SpecialJob, &sipCpp, sipType_KJob, &a0, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_slotInfoMessage(sipSelfWasArg,a0,*a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_SpecialJob, sipName_slotInfoMessage, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_SpecialJob_addSubjob(PyObject *, PyObject *);}
static PyObject *meth_KIO_SpecialJob_addSubjob(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KJob * a0;
        sipKIO_SpecialJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KIO_SpecialJob, &sipCpp, sipType_KJob, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_addSubjob(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_SpecialJob, sipName_addSubjob, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_SpecialJob_removeSubjob(PyObject *, PyObject *);}
static PyObject *meth_KIO_SpecialJob_removeSubjob(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KJob * a0;
        sipKIO_SpecialJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KIO_SpecialJob, &sipCpp, sipType_KJob, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_removeSubjob(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_SpecialJob, sipName_removeSubjob, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_SpecialJob_doSuspend(PyObject *, PyObject *);}
static PyObject *meth_KIO_SpecialJob_doSuspend(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipKIO_SpecialJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KIO_SpecialJob, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_doSuspend(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_SpecialJob, sipName_doSuspend, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_SpecialJob_doKill(PyObject *, PyObject *);}
static PyObject *meth_KIO_SpecialJob_doKill(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipKIO_SpecialJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KIO_SpecialJob, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_doKill(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_SpecialJob, sipName_doKill, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_SpecialJob_slotWarning(PyObject *, PyObject *);}
static PyObject *meth_KIO_SpecialJob_slotWarning(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString * a0;
        int a0State = 0;
        sipKIO_SpecialJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KIO_SpecialJob, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_slotWarning(sipSelfWasArg,*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_SpecialJob, sipName_slotWarning, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_SpecialJob_storeSSLSessionFromJob(PyObject *, PyObject *);}
static PyObject *meth_KIO_SpecialJob_storeSSLSessionFromJob(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KUrl * a0;
        sipKIO_SpecialJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KIO_SpecialJob, &sipCpp, sipType_KUrl, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_storeSSLSessionFromJob(*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_SpecialJob, sipName_storeSSLSessionFromJob, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_SpecialJob_slotResult(PyObject *, PyObject *);}
static PyObject *meth_KIO_SpecialJob_slotResult(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KJob * a0;
        sipKIO_SpecialJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KIO_SpecialJob, &sipCpp, sipType_KJob, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_slotResult(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_SpecialJob, sipName_slotResult, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_SpecialJob_doResume(PyObject *, PyObject *);}
static PyObject *meth_KIO_SpecialJob_doResume(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipKIO_SpecialJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KIO_SpecialJob, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_doResume(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_SpecialJob, sipName_doResume, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_SpecialJob_slotRedirection(PyObject *, PyObject *);}
static PyObject *meth_KIO_SpecialJob_slotRedirection(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KUrl * a0;
        sipKIO_SpecialJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KIO_SpecialJob, &sipCpp, sipType_KUrl, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_slotRedirection(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_SpecialJob, sipName_slotRedirection, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_SpecialJob_slotFinished(PyObject *, PyObject *);}
static PyObject *meth_KIO_SpecialJob_slotFinished(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipKIO_SpecialJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KIO_SpecialJob, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_slotFinished(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_SpecialJob, sipName_slotFinished, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_SpecialJob_slotData(PyObject *, PyObject *);}
static PyObject *meth_KIO_SpecialJob_slotData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QByteArray * a0;
        int a0State = 0;
        sipKIO_SpecialJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KIO_SpecialJob, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_slotData(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_SpecialJob, sipName_slotData, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_SpecialJob_slotDataReq(PyObject *, PyObject *);}
static PyObject *meth_KIO_SpecialJob_slotDataReq(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipKIO_SpecialJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KIO_SpecialJob, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_slotDataReq(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_SpecialJob, sipName_slotDataReq, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_SpecialJob_slotMimetype(PyObject *, PyObject *);}
static PyObject *meth_KIO_SpecialJob_slotMimetype(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString * a0;
        int a0State = 0;
        sipKIO_SpecialJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KIO_SpecialJob, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_slotMimetype(sipSelfWasArg,*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_SpecialJob, sipName_slotMimetype, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_SpecialJob_slotMetaData(PyObject *, PyObject *);}
static PyObject *meth_KIO_SpecialJob_slotMetaData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KIO::MetaData * a0;
        int a0State = 0;
        sipKIO_SpecialJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KIO_SpecialJob, &sipCpp, sipType_KIO_MetaData,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_slotMetaData(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<KIO::MetaData *>(a0),sipType_KIO_MetaData,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_SpecialJob, sipName_slotMetaData, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_SpecialJob_setArguments(PyObject *, PyObject *);}
static PyObject *meth_KIO_SpecialJob_setArguments(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray * a0;
        int a0State = 0;
        KIO::SpecialJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KIO_SpecialJob, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setArguments(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_SpecialJob, sipName_setArguments, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_SpecialJob_arguments(PyObject *, PyObject *);}
static PyObject *meth_KIO_SpecialJob_arguments(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KIO::SpecialJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KIO_SpecialJob, &sipCpp))
        {
            QByteArray *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray(sipCpp->arguments());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_SpecialJob, sipName_arguments, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KIO_SpecialJob(void *, const sipTypeDef *);}
static void *cast_KIO_SpecialJob(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_KIO_SpecialJob)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KIO_TransferJob)->ctd_cast((KIO::TransferJob *)(KIO::SpecialJob *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KIO_SpecialJob(void *, int);}
static void release_KIO_SpecialJob(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKIO_SpecialJob *>(sipCppV);
    else
        delete reinterpret_cast<KIO::SpecialJob *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KIO_SpecialJob(sipSimpleWrapper *);}
static void dealloc_KIO_SpecialJob(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKIO_SpecialJob *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KIO_SpecialJob(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_KIO_SpecialJob(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_KIO_SpecialJob(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKIO_SpecialJob *sipCpp = 0;

    {
        const KUrl * a0;
        const QByteArray& a1def = QByteArray();
        const QByteArray * a1 = &a1def;
        int a1State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9|J1", sipType_KUrl, &a0, sipType_QByteArray, &a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKIO_SpecialJob(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KIO_SpecialJob[] = {{174, 255, 1}};


static PyMethodDef methods_KIO_SpecialJob[] = {
    {SIP_MLNAME_CAST(sipName_addSubjob), meth_KIO_SpecialJob_addSubjob, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_arguments), meth_KIO_SpecialJob_arguments, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KIO_SpecialJob_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearSubjobs), meth_KIO_SpecialJob_clearSubjobs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KIO_SpecialJob_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KIO_SpecialJob_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KIO_SpecialJob_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doKill), meth_KIO_SpecialJob_doKill, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doResume), meth_KIO_SpecialJob_doResume, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doSuspend), meth_KIO_SpecialJob_doSuspend, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitPercent), meth_KIO_SpecialJob_emitPercent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitResult), meth_KIO_SpecialJob_emitResult, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitSpeed), meth_KIO_SpecialJob_emitSpeed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasSubjobs), meth_KIO_SpecialJob_hasSubjobs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KIO_SpecialJob_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeSubjob), meth_KIO_SpecialJob_removeSubjob, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_KIO_SpecialJob_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setArguments), meth_KIO_SpecialJob_setArguments, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCapabilities), meth_KIO_SpecialJob_setCapabilities, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_KIO_SpecialJob_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setErrorText), meth_KIO_SpecialJob_setErrorText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPercent), meth_KIO_SpecialJob_setPercent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProcessedAmount), meth_KIO_SpecialJob_setProcessedAmount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTotalAmount), meth_KIO_SpecialJob_setTotalAmount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotData), meth_KIO_SpecialJob_slotData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotDataReq), meth_KIO_SpecialJob_slotDataReq, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotFinished), meth_KIO_SpecialJob_slotFinished, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotInfoMessage), meth_KIO_SpecialJob_slotInfoMessage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotMetaData), meth_KIO_SpecialJob_slotMetaData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotMimetype), meth_KIO_SpecialJob_slotMimetype, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotRedirection), meth_KIO_SpecialJob_slotRedirection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotResult), meth_KIO_SpecialJob_slotResult, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotWarning), meth_KIO_SpecialJob_slotWarning, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_storeSSLSessionFromJob), meth_KIO_SpecialJob_storeSSLSessionFromJob, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_subjobs), meth_KIO_SpecialJob_subjobs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KIO_SpecialJob_timerEvent, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kio_KIO_SpecialJob = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KIO__SpecialJob,
        {0}
    },
    {
        sipNameNr_SpecialJob,
        {101, 255, 0},
        36, methods_KIO_SpecialJob,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KIO_SpecialJob,
    0,
    init_KIO_SpecialJob,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KIO_SpecialJob,
    0,
    0,
    0,
    release_KIO_SpecialJob,
    cast_KIO_SpecialJob,
    0,
    0,
    0
},
    &KIO::SpecialJob::staticMetaObject,
    0,
    0
};

#line 339 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/jobclasses.sip"
#include <jobclasses.h>
#line 13753 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 13757 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/global.sip"
#include<qmap.h>
#line 13760 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/jobclasses.sip"
#include <jobclasses.h>
#line 13763 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 13766 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 13769 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/udsentry.sip"
#include <udsentry.h>
#line 13772 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 13775 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 13778 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 13781 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 13784 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 13787 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/jobuidelegate.sip"
#include <jobuidelegate.h>
#line 13790 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 13793 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 589 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 13796 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 13799 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 13802 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 13805 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 13808 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 13811 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 13814 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 13817 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 13820 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 13823 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 13826 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 13829 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 13832 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 13835 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 13838 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"


extern "C" {static PyObject *meth_KIO_ListJob_redirectionUrl(PyObject *, PyObject *);}
static PyObject *meth_KIO_ListJob_redirectionUrl(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KIO::ListJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KIO_ListJob, &sipCpp))
        {
            KUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl(sipCpp->redirectionUrl());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ListJob, sipName_redirectionUrl, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_ListJob_setUnrestricted(PyObject *, PyObject *);}
static PyObject *meth_KIO_ListJob_setUnrestricted(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        KIO::ListJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KIO_ListJob, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setUnrestricted(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_ListJob, sipName_setUnrestricted, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KIO_ListJob(void *, const sipTypeDef *);}
static void *cast_KIO_ListJob(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_KIO_ListJob)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KIO_SimpleJob)->ctd_cast((KIO::SimpleJob *)(KIO::ListJob *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KIO_ListJob(void *, int);}
static void release_KIO_ListJob(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KIO::ListJob *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KIO_ListJob(sipSimpleWrapper *);}
static void dealloc_KIO_ListJob(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KIO_ListJob(sipGetAddress(sipSelf),0);
    }
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KIO_ListJob[] = {{156, 255, 1}};


static PyMethodDef methods_KIO_ListJob[] = {
    {SIP_MLNAME_CAST(sipName_redirectionUrl), meth_KIO_ListJob_redirectionUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setUnrestricted), meth_KIO_ListJob_setUnrestricted, METH_VARARGS, NULL}
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_KIO_ListJob[] = {
    {"permanentRedirection(KIO::Job *,KUrl,KUrl)", 0, 0},
    {"redirection(KIO::Job *,KUrl)", 0, 0},
    {"entries(KIO::Job *,KIO::UDSEntryList)", 0, 0},
    {0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_kio_KIO_ListJob = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KIO__ListJob,
        {0}
    },
    {
        sipNameNr_ListJob,
        {101, 255, 0},
        2, methods_KIO_ListJob,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KIO_ListJob,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KIO_ListJob,
    0,
    0,
    0,
    release_KIO_ListJob,
    cast_KIO_ListJob,
    0,
    0,
    0
},
    &KIO::ListJob::staticMetaObject,
    0,
    pyqt4_signals_KIO_ListJob
};

#line 305 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/jobclasses.sip"
#include <jobclasses.h>
#line 14004 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 14008 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/jobclasses.sip"
#include <jobclasses.h>
#line 14011 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 14014 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 14017 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 360 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 14020 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/global.sip"
#include<qmap.h>
#line 14023 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 14026 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 14029 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 14032 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 14035 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/jobuidelegate.sip"
#include <jobuidelegate.h>
#line 14038 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 14041 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 589 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 14044 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 14047 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 14050 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 14053 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 14056 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 14059 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 14062 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 14065 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 14068 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 14071 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 14074 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 14077 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 14080 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 14083 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 14086 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"


extern "C" {static PyObject *meth_KIO_FileCopyJob_setSourceSize(PyObject *, PyObject *);}
static PyObject *meth_KIO_FileCopyJob_setSourceSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KIO::filesize_t a0;
        KIO::FileCopyJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bo", &sipSelf, sipType_KIO_FileCopyJob, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSourceSize(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_FileCopyJob, sipName_setSourceSize, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_FileCopyJob_setModificationTime(PyObject *, PyObject *);}
static PyObject *meth_KIO_FileCopyJob_setModificationTime(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QDateTime * a0;
        int a0State = 0;
        KIO::FileCopyJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KIO_FileCopyJob, &sipCpp, sipType_QDateTime, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setModificationTime(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_FileCopyJob, sipName_setModificationTime, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_FileCopyJob_srcUrl(PyObject *, PyObject *);}
static PyObject *meth_KIO_FileCopyJob_srcUrl(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KIO::FileCopyJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KIO_FileCopyJob, &sipCpp))
        {
            KUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl(sipCpp->srcUrl());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_FileCopyJob, sipName_srcUrl, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_FileCopyJob_destUrl(PyObject *, PyObject *);}
static PyObject *meth_KIO_FileCopyJob_destUrl(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KIO::FileCopyJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KIO_FileCopyJob, &sipCpp))
        {
            KUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl(sipCpp->destUrl());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_FileCopyJob, sipName_destUrl, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_FileCopyJob_doSuspend(PyObject *, PyObject *);}
static PyObject *meth_KIO_FileCopyJob_doSuspend(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KIO::FileCopyJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KIO_FileCopyJob, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->doSuspend();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_FileCopyJob, sipName_doSuspend, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_FileCopyJob_doResume(PyObject *, PyObject *);}
static PyObject *meth_KIO_FileCopyJob_doResume(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KIO::FileCopyJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KIO_FileCopyJob, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->doResume();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_FileCopyJob, sipName_doResume, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KIO_FileCopyJob(void *, const sipTypeDef *);}
static void *cast_KIO_FileCopyJob(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_KIO_FileCopyJob)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KIO_Job)->ctd_cast((KIO::Job *)(KIO::FileCopyJob *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KIO_FileCopyJob(void *, int);}
static void release_KIO_FileCopyJob(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KIO::FileCopyJob *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KIO_FileCopyJob(sipSimpleWrapper *);}
static void dealloc_KIO_FileCopyJob(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KIO_FileCopyJob(sipGetAddress(sipSelf),0);
    }
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KIO_FileCopyJob[] = {{127, 255, 1}};


static PyMethodDef methods_KIO_FileCopyJob[] = {
    {SIP_MLNAME_CAST(sipName_destUrl), meth_KIO_FileCopyJob_destUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doResume), meth_KIO_FileCopyJob_doResume, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doSuspend), meth_KIO_FileCopyJob_doSuspend, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setModificationTime), meth_KIO_FileCopyJob_setModificationTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSourceSize), meth_KIO_FileCopyJob_setSourceSize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_srcUrl), meth_KIO_FileCopyJob_srcUrl, METH_VARARGS, NULL}
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_KIO_FileCopyJob[] = {
    {"mimetype(KIO::Job *,QString)", 0, 0},
    {0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_kio_KIO_FileCopyJob = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KIO__FileCopyJob,
        {0}
    },
    {
        sipNameNr_FileCopyJob,
        {101, 255, 0},
        6, methods_KIO_FileCopyJob,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KIO_FileCopyJob,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KIO_FileCopyJob,
    0,
    0,
    0,
    release_KIO_FileCopyJob,
    cast_KIO_FileCopyJob,
    0,
    0,
    0
},
    &KIO::FileCopyJob::staticMetaObject,
    0,
    pyqt4_signals_KIO_FileCopyJob
};

#line 282 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/jobclasses.sip"
#include <jobclasses.h>
#line 14364 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"

#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/global.sip"
#include<qmap.h>
#line 14368 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 14371 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 14374 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 14377 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/jobclasses.sip"
#include <jobclasses.h>
#line 14380 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 14383 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 360 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 14386 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 14389 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 14392 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 14395 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 14398 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/jobuidelegate.sip"
#include <jobuidelegate.h>
#line 14401 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 14404 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 589 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 14407 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 14410 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 14413 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 14416 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 14419 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 14422 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 14425 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 14428 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 14431 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 14434 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 14437 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 14440 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 14443 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 14446 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KIO_MimetypeJob(void *, const sipTypeDef *);}
static void *cast_KIO_MimetypeJob(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_KIO_MimetypeJob)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KIO_TransferJob)->ctd_cast((KIO::TransferJob *)(KIO::MimetypeJob *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KIO_MimetypeJob(void *, int);}
static void release_KIO_MimetypeJob(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KIO::MimetypeJob *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KIO_MimetypeJob(sipSimpleWrapper *);}
static void dealloc_KIO_MimetypeJob(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KIO_MimetypeJob(sipGetAddress(sipSelf),0);
    }
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KIO_MimetypeJob[] = {{174, 255, 1}};


pyqt4ClassTypeDef sipTypeDef_kio_KIO_MimetypeJob = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KIO__MimetypeJob,
        {0}
    },
    {
        sipNameNr_MimetypeJob,
        {101, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KIO_MimetypeJob,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KIO_MimetypeJob,
    0,
    0,
    0,
    release_KIO_MimetypeJob,
    cast_KIO_MimetypeJob,
    0,
    0,
    0
},
    &KIO::MimetypeJob::staticMetaObject,
    0,
    0
};

#line 248 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/jobclasses.sip"
#include <jobclasses.h>
#line 14543 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 14547 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 14550 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 14553 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/global.sip"
#include<qmap.h>
#line 14556 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/jobclasses.sip"
#include <jobclasses.h>
#line 14559 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 14562 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 360 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 14565 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 14568 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 14571 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 14574 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 14577 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/jobuidelegate.sip"
#include <jobuidelegate.h>
#line 14580 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 14583 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 589 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 14586 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 14589 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 14592 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 14595 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 14598 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 14601 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 14604 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 14607 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 14610 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 14613 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 14616 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 14619 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 14622 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 14625 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"


extern "C" {static PyObject *meth_KIO_MultiGetJob_get(PyObject *, PyObject *);}
static PyObject *meth_KIO_MultiGetJob_get(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        long a0;
        const KUrl * a1;
        const KIO::MetaData * a2;
        int a2State = 0;
        KIO::MultiGetJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BlJ9J1", &sipSelf, sipType_KIO_MultiGetJob, &sipCpp, &a0, sipType_KUrl, &a1, sipType_KIO_MetaData,&a2, &a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->get(a0,*a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<KIO::MetaData *>(a2),sipType_KIO_MetaData,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_MultiGetJob, sipName_get, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KIO_MultiGetJob(void *, const sipTypeDef *);}
static void *cast_KIO_MultiGetJob(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_KIO_MultiGetJob)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KIO_TransferJob)->ctd_cast((KIO::TransferJob *)(KIO::MultiGetJob *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KIO_MultiGetJob(void *, int);}
static void release_KIO_MultiGetJob(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KIO::MultiGetJob *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KIO_MultiGetJob(sipSimpleWrapper *);}
static void dealloc_KIO_MultiGetJob(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KIO_MultiGetJob(sipGetAddress(sipSelf),0);
    }
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KIO_MultiGetJob[] = {{174, 255, 1}};


static PyMethodDef methods_KIO_MultiGetJob[] = {
    {SIP_MLNAME_CAST(sipName_get), meth_KIO_MultiGetJob_get, METH_VARARGS, NULL}
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_KIO_MultiGetJob[] = {
    {"result(long)", 0, 0},
    {"mimetype(long,QString)", 0, 0},
    {"data(long,QByteArray)", 0, 0},
    {0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_kio_KIO_MultiGetJob = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KIO__MultiGetJob,
        {0}
    },
    {
        sipNameNr_MultiGetJob,
        {101, 255, 0},
        1, methods_KIO_MultiGetJob,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KIO_MultiGetJob,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KIO_MultiGetJob,
    0,
    0,
    0,
    release_KIO_MultiGetJob,
    cast_KIO_MultiGetJob,
    0,
    0,
    0
},
    &KIO::MultiGetJob::staticMetaObject,
    0,
    pyqt4_signals_KIO_MultiGetJob
};

#line 222 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/jobclasses.sip"
#include <jobclasses.h>
#line 14767 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"

#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 14771 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/global.sip"
#include<qmap.h>
#line 14774 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 14777 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 14780 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/jobclasses.sip"
#include <jobclasses.h>
#line 14783 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 14786 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 360 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 14789 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 14792 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 14795 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 14798 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 14801 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/jobuidelegate.sip"
#include <jobuidelegate.h>
#line 14804 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 14807 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 589 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 14810 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 14813 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 14816 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 14819 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 14822 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 14825 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 14828 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 14831 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 14834 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 14837 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 14840 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 14843 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 14846 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 14849 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"


extern "C" {static PyObject *meth_KIO_StoredTransferJob_setData(PyObject *, PyObject *);}
static PyObject *meth_KIO_StoredTransferJob_setData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray * a0;
        int a0State = 0;
        KIO::StoredTransferJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KIO_StoredTransferJob, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setData(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_StoredTransferJob, sipName_setData, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_StoredTransferJob_data(PyObject *, PyObject *);}
static PyObject *meth_KIO_StoredTransferJob_data(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KIO::StoredTransferJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KIO_StoredTransferJob, &sipCpp))
        {
            QByteArray *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray(sipCpp->data());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_StoredTransferJob, sipName_data, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KIO_StoredTransferJob(void *, const sipTypeDef *);}
static void *cast_KIO_StoredTransferJob(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_KIO_StoredTransferJob)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KIO_TransferJob)->ctd_cast((KIO::TransferJob *)(KIO::StoredTransferJob *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KIO_StoredTransferJob(void *, int);}
static void release_KIO_StoredTransferJob(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KIO::StoredTransferJob *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KIO_StoredTransferJob(sipSimpleWrapper *);}
static void dealloc_KIO_StoredTransferJob(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KIO_StoredTransferJob(sipGetAddress(sipSelf),0);
    }
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KIO_StoredTransferJob[] = {{174, 255, 1}};


static PyMethodDef methods_KIO_StoredTransferJob[] = {
    {SIP_MLNAME_CAST(sipName_data), meth_KIO_StoredTransferJob_data, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setData), meth_KIO_StoredTransferJob_setData, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_kio_KIO_StoredTransferJob = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KIO__StoredTransferJob,
        {0}
    },
    {
        sipNameNr_StoredTransferJob,
        {101, 255, 0},
        2, methods_KIO_StoredTransferJob,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KIO_StoredTransferJob,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KIO_StoredTransferJob,
    0,
    0,
    0,
    release_KIO_StoredTransferJob,
    cast_KIO_StoredTransferJob,
    0,
    0,
    0
},
    &KIO::StoredTransferJob::staticMetaObject,
    0,
    0
};

#line 130 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/jobclasses.sip"
#include <jobclasses.h>
#line 15008 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"

#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 15012 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/global.sip"
#include<qmap.h>
#line 15015 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/jobclasses.sip"
#include <jobclasses.h>
#line 15018 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/udsentry.sip"
#include <udsentry.h>
#line 15021 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 15024 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 15027 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 15030 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 15033 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 15036 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 15039 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/jobuidelegate.sip"
#include <jobuidelegate.h>
#line 15042 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 15045 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 589 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 15048 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 15051 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 15054 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 15057 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 15060 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 15063 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 15066 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 15069 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 15072 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 15075 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 15078 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 15081 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 15084 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 15087 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 15090 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"


extern "C" {static PyObject *meth_KIO_StatJob_setSide(PyObject *, PyObject *);}
static PyObject *meth_KIO_StatJob_setSide(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KIO::StatJob::StatSide a0;
        KIO::StatJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KIO_StatJob, &sipCpp, sipType_KIO_StatJob_StatSide, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSide(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        bool a0;
        KIO::StatJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BXb", &sipSelf, sipType_KIO_StatJob, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSide(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_StatJob, sipName_setSide, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_StatJob_setDetails(PyObject *, PyObject *);}
static PyObject *meth_KIO_StatJob_setDetails(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        short a0;
        KIO::StatJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bh", &sipSelf, sipType_KIO_StatJob, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDetails(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_StatJob, sipName_setDetails, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_StatJob_statResult(PyObject *, PyObject *);}
static PyObject *meth_KIO_StatJob_statResult(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KIO::StatJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KIO_StatJob, &sipCpp))
        {
            KIO::UDSEntry *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KIO::UDSEntry(sipCpp->statResult());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KIO_UDSEntry,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_StatJob, sipName_statResult, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KIO_StatJob_mostLocalUrl(PyObject *, PyObject *);}
static PyObject *meth_KIO_StatJob_mostLocalUrl(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KIO::StatJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KIO_StatJob, &sipCpp))
        {
            KUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KUrl(sipCpp->mostLocalUrl());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_StatJob, sipName_mostLocalUrl, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KIO_StatJob(void *, const sipTypeDef *);}
static void *cast_KIO_StatJob(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_KIO_StatJob)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KIO_SimpleJob)->ctd_cast((KIO::SimpleJob *)(KIO::StatJob *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KIO_StatJob(void *, int);}
static void release_KIO_StatJob(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KIO::StatJob *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KIO_StatJob(sipSimpleWrapper *);}
static void dealloc_KIO_StatJob(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KIO_StatJob(sipGetAddress(sipSelf),0);
    }
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KIO_StatJob[] = {{156, 255, 1}};


static PyMethodDef methods_KIO_StatJob[] = {
    {SIP_MLNAME_CAST(sipName_mostLocalUrl), meth_KIO_StatJob_mostLocalUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDetails), meth_KIO_StatJob_setDetails, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSide), meth_KIO_StatJob_setSide, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_statResult), meth_KIO_StatJob_statResult, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KIO_StatJob[] = {
    {sipName_DestinationSide, KIO::StatJob::DestinationSide, 169},
    {sipName_SourceSide, KIO::StatJob::SourceSide, 169},
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_KIO_StatJob[] = {
    {"permanentRedirection(KIO::Job *,KUrl,KUrl)", 0, 0},
    {"redirection(KIO::Job *,KUrl)", 0, 0},
    {0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_kio_KIO_StatJob = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KIO__StatJob,
        {0}
    },
    {
        sipNameNr_StatJob,
        {101, 255, 0},
        4, methods_KIO_StatJob,
        2, enummembers_KIO_StatJob,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KIO_StatJob,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KIO_StatJob,
    0,
    0,
    0,
    release_KIO_StatJob,
    cast_KIO_StatJob,
    0,
    0,
    0
},
    &KIO::StatJob::staticMetaObject,
    0,
    pyqt4_signals_KIO_StatJob
};




extern "C" {static int slot_KIO_JobFlags___bool__(PyObject *);}
static int slot_KIO_JobFlags___bool__(PyObject *sipSelf)
{
    KIO::JobFlags *sipCpp = reinterpret_cast<KIO::JobFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KIO_JobFlags));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 15347 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KIO_JobFlags___ne__(PyObject *,PyObject *);}
static PyObject *slot_KIO_JobFlags___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KIO::JobFlags *sipCpp = reinterpret_cast<KIO::JobFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KIO_JobFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KIO::JobFlags * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KIO_JobFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 15377 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
            sipReleaseType(const_cast<KIO::JobFlags *>(a0),sipType_KIO_JobFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kio,ne_slot,sipType_KIO_JobFlags,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KIO_JobFlags___eq__(PyObject *,PyObject *);}
static PyObject *slot_KIO_JobFlags___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KIO::JobFlags *sipCpp = reinterpret_cast<KIO::JobFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KIO_JobFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KIO::JobFlags * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KIO_JobFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 15413 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
            sipReleaseType(const_cast<KIO::JobFlags *>(a0),sipType_KIO_JobFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kio,eq_slot,sipType_KIO_JobFlags,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KIO_JobFlags___invert__(PyObject *);}
static PyObject *slot_KIO_JobFlags___invert__(PyObject *sipSelf)
{
    KIO::JobFlags *sipCpp = reinterpret_cast<KIO::JobFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KIO_JobFlags));

    if (!sipCpp)
        return 0;


    {
        {
            KIO::JobFlags *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KIO::JobFlags(~(*sipCpp));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KIO_JobFlags,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KIO_JobFlags___and__(PyObject *,PyObject *);}
static PyObject *slot_KIO_JobFlags___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        KIO::JobFlags * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KIO_JobFlags, &a0, &a0State, &a1))
        {
            KIO::JobFlags *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KIO::JobFlags((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KIO_JobFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_KIO_JobFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kio,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_KIO_JobFlags___xor__(PyObject *,PyObject *);}
static PyObject *slot_KIO_JobFlags___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        KIO::JobFlags * a0;
        int a0State = 0;
        KIO::JobFlags * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KIO_JobFlags, &a0, &a0State, sipType_KIO_JobFlags, &a1, &a1State))
        {
            KIO::JobFlags *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KIO::JobFlags((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KIO_JobFlags,a0State);
            sipReleaseType(a1,sipType_KIO_JobFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_KIO_JobFlags,NULL);
        }
    }

    {
        KIO::JobFlags * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KIO_JobFlags, &a0, &a0State, &a1))
        {
            KIO::JobFlags *sipRes = 0;

#line 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KIO::JobFlags(*a0 ^ a1);
#line 15522 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
            sipReleaseType(a0,sipType_KIO_JobFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_KIO_JobFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kio,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_KIO_JobFlags___or__(PyObject *,PyObject *);}
static PyObject *slot_KIO_JobFlags___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        KIO::JobFlags * a0;
        int a0State = 0;
        KIO::JobFlags * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_KIO_JobFlags, &a0, &a0State, sipType_KIO_JobFlags, &a1, &a1State))
        {
            KIO::JobFlags *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KIO::JobFlags((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KIO_JobFlags,a0State);
            sipReleaseType(a1,sipType_KIO_JobFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_KIO_JobFlags,NULL);
        }
    }

    {
        KIO::JobFlags * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_KIO_JobFlags, &a0, &a0State, &a1))
        {
            KIO::JobFlags *sipRes = 0;

#line 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new KIO::JobFlags(*a0 | a1);
#line 15574 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
            sipReleaseType(a0,sipType_KIO_JobFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_KIO_JobFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_kio,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_KIO_JobFlags___int__(PyObject *);}
static PyObject *slot_KIO_JobFlags___int__(PyObject *sipSelf)
{
    KIO::JobFlags *sipCpp = reinterpret_cast<KIO::JobFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KIO_JobFlags));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KIO_JobFlags___ixor__(PyObject *,PyObject *);}
static PyObject *slot_KIO_JobFlags___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KIO_JobFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KIO::JobFlags *sipCpp = reinterpret_cast<KIO::JobFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KIO_JobFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KIO::JobFlags * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KIO_JobFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KIO::JobFlags::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KIO_JobFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_KIO_JobFlags___ior__(PyObject *,PyObject *);}
static PyObject *slot_KIO_JobFlags___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KIO_JobFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KIO::JobFlags *sipCpp = reinterpret_cast<KIO::JobFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KIO_JobFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        KIO::JobFlags * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_KIO_JobFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KIO::JobFlags::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KIO_JobFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_KIO_JobFlags___iand__(PyObject *,PyObject *);}
static PyObject *slot_KIO_JobFlags___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KIO_JobFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KIO::JobFlags *sipCpp = reinterpret_cast<KIO::JobFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KIO_JobFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KIO::JobFlags::operator&=(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KIO_JobFlags(void *, const sipTypeDef *);}
static void *cast_KIO_JobFlags(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_KIO_JobFlags)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KIO_JobFlags(void *, int);}
static void release_KIO_JobFlags(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KIO::JobFlags *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KIO_JobFlags(void *, SIP_SSIZE_T, const void *);}
static void assign_KIO_JobFlags(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KIO::JobFlags *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KIO::JobFlags *>(sipSrc);
}


extern "C" {static void *array_KIO_JobFlags(SIP_SSIZE_T);}
static void *array_KIO_JobFlags(SIP_SSIZE_T sipNrElem)
{
    return new KIO::JobFlags[sipNrElem];
}


extern "C" {static void *copy_KIO_JobFlags(const void *, SIP_SSIZE_T);}
static void *copy_KIO_JobFlags(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new KIO::JobFlags(reinterpret_cast<const KIO::JobFlags *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_KIO_JobFlags(sipSimpleWrapper *);}
static void dealloc_KIO_JobFlags(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KIO_JobFlags(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_KIO_JobFlags(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_KIO_JobFlags(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KIO::JobFlags *sipCpp = 0;

    {
        const KIO::JobFlags * a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_KIO_JobFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KIO::JobFlags(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<KIO::JobFlags *>(a0),sipType_KIO_JobFlags,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KIO::JobFlags(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KIO::JobFlags();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_KIO_JobFlags(PyObject *, void **, int *, PyObject *);}
static int convertTo_KIO_JobFlags(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    KIO::JobFlags **sipCppPtr = reinterpret_cast<KIO::JobFlags **>(sipCppPtrV);

#line 336 "/usr/local/share/py-sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a KIO::JobFlags is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KIO_JobFlag)) ||
            sipCanConvertToType(sipPy, sipType_KIO_JobFlags, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KIO_JobFlag)))
{
    *sipCppPtr = new KIO::JobFlags(SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<KIO::JobFlags *>(sipConvertToType(sipPy, sipType_KIO_JobFlags, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 15869 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KIO_JobFlags[] = {
    {(void *)slot_KIO_JobFlags___bool__, bool_slot},
    {(void *)slot_KIO_JobFlags___ne__, ne_slot},
    {(void *)slot_KIO_JobFlags___eq__, eq_slot},
    {(void *)slot_KIO_JobFlags___invert__, invert_slot},
    {(void *)slot_KIO_JobFlags___and__, and_slot},
    {(void *)slot_KIO_JobFlags___xor__, xor_slot},
    {(void *)slot_KIO_JobFlags___or__, or_slot},
    {(void *)slot_KIO_JobFlags___int__, int_slot},
    {(void *)slot_KIO_JobFlags___ixor__, ixor_slot},
    {(void *)slot_KIO_JobFlags___ior__, ior_slot},
    {(void *)slot_KIO_JobFlags___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_kio_KIO_JobFlags = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KIO__JobFlags,
        {0}
    },
    {
        sipNameNr_JobFlags,
        {101, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_KIO_JobFlags,
    init_KIO_JobFlags,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KIO_JobFlags,
    assign_KIO_JobFlags,
    array_KIO_JobFlags,
    copy_KIO_JobFlags,
    release_KIO_JobFlags,
    cast_KIO_JobFlags,
    convertTo_KIO_JobFlags,
    0,
    0
},
    0,
    1,
    0
};

#line 188 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/global.sip"
#include<qmap.h>
#line 15942 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"



extern "C" {static void assign_KIO_MetaData(void *, SIP_SSIZE_T, const void *);}
static void assign_KIO_MetaData(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KIO::MetaData *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KIO::MetaData *>(sipSrc);
}


extern "C" {static void *array_KIO_MetaData(SIP_SSIZE_T);}
static void *array_KIO_MetaData(SIP_SSIZE_T sipNrElem)
{
    return new KIO::MetaData[sipNrElem];
}


extern "C" {static void *copy_KIO_MetaData(const void *, SIP_SSIZE_T);}
static void *copy_KIO_MetaData(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new KIO::MetaData(reinterpret_cast<const KIO::MetaData *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_KIO_MetaData(void *, int);}
static void release_KIO_MetaData(void *ptr, int)
{
    Py_BEGIN_ALLOW_THREADS
    delete reinterpret_cast<KIO::MetaData *>(ptr);
    Py_END_ALLOW_THREADS
}



extern "C" {static int convertTo_KIO_MetaData(PyObject *, void **, int *, PyObject *);}
static int convertTo_KIO_MetaData(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *)
{
    KIO::MetaData **sipCppPtr = reinterpret_cast<KIO::MetaData **>(sipCppPtrV);

#line 231 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/global.sip"
    // Convert a Python dictionary to a QMap on the heap.

    if (sipIsErr == NULL)
        return PyDict_Check(sipPy);


    QMap<QString,QString> *cppmap = new QMap<QString,QString>;

    PyObject *aelem, *belem;
    SIP_SSIZE_T pos = 0;
    QString *acpp;
    QString *bcpp;

    while (PyDict_Next(sipPy, &pos, &aelem, &belem))
    {
        int iserr = 0;

        acpp = (QString *)sipForceConvertToType(aelem, sipType_QString, NULL, 0, NULL, &iserr);
        bcpp = (QString *)sipForceConvertToType(belem, sipType_QString, NULL, 0, NULL, &iserr);

        if (iserr)
        {
            *sipIsErr = 1;
            delete cppmap;
            return 0;
        }

        cppmap->insert (*acpp, *bcpp);
    }

    *sipCppPtr = (KIO::MetaData *)cppmap;

    return 1;
#line 16017 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
}


extern "C" {static PyObject *convertFrom_KIO_MetaData(void *, PyObject *);}
static PyObject *convertFrom_KIO_MetaData(void *sipCppV,PyObject *)
{
   KIO::MetaData *sipCpp = reinterpret_cast<KIO::MetaData *>(sipCppV);

#line 192 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/global.sip"
    // Convert to a Python dict

    if (!sipCpp)
        return PyDict_New();

    PyObject *dict;

    // Create the dictionary.

    if ((dict = PyDict_New()) == NULL)
        return NULL;

    // Get it.

    const QMap<QString,QString> cppmap = *sipCpp;
    QMap<QString,QString>::ConstIterator it;

    for (it = cppmap.begin (); it != cppmap.end (); ++it)
    {
        QString acpp = it.key ();
        QString bcpp = it.value ();
        PyObject *ainst = 0;
        PyObject *binst = 0;
        if (((ainst = sipBuildResult (NULL, "N", new QString (acpp), sipType_QString)) == NULL)
            || ((binst = sipBuildResult (NULL, "N", new QString (bcpp), sipType_QString)) == NULL)
            || (PyDict_SetItem (dict, ainst, binst) < 0))
        {
            Py_XDECREF (ainst);
            Py_XDECREF (binst);
            Py_DECREF (dict);
            return NULL;
        }
    }

    return dict;
#line 16062 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kio/sipkiopart6.cpp"
}


sipMappedTypeDef sipTypeDef_kio_KIO_MetaData = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_KIO__MetaData,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_KIO_MetaData,
    array_KIO_MetaData,
    copy_KIO_MetaData,
    release_KIO_MetaData,
    convertTo_KIO_MetaData,
    convertFrom_KIO_MetaData
};
