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

#include "sipAPIdnssd.h"

#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/dnssd/servicetypebrowser.sip"
#include <dnssd/servicetypebrowser.h>
#line 12 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"

#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 16 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"
#line 29 "/usr/share/sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 19 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 22 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 25 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"
#line 368 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 28 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"
#line 351 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 31 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"
#line 265 "/usr/share/sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 34 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 37 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"
#line 32 "/usr/share/sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 40 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 43 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 46 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 49 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 52 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 55 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"


class sipDNSSD_ServiceTypeBrowser : public  ::DNSSD::ServiceTypeBrowser
{
public:
    sipDNSSD_ServiceTypeBrowser(const  ::QString&, ::QObject*);
    virtual ~sipDNSSD_ServiceTypeBrowser();

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    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:
    sipDNSSD_ServiceTypeBrowser(const sipDNSSD_ServiceTypeBrowser &);
    sipDNSSD_ServiceTypeBrowser &operator = (const sipDNSSD_ServiceTypeBrowser &);

    char sipPyMethods[7];
};

sipDNSSD_ServiceTypeBrowser::sipDNSSD_ServiceTypeBrowser(const  ::QString& a0, ::QObject*a1):  ::DNSSD::ServiceTypeBrowser(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipDNSSD_ServiceTypeBrowser::~sipDNSSD_ServiceTypeBrowser()
{
    sipInstanceDestroyed(sipPySelf);
}

const QMetaObject *sipDNSSD_ServiceTypeBrowser::metaObject() const
{
    return sip_dnssd_qt_metaobject(sipPySelf,sipType_DNSSD_ServiceTypeBrowser);
}

int sipDNSSD_ServiceTypeBrowser::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id =  ::DNSSD::ServiceTypeBrowser::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_dnssd_qt_metacall(sipPySelf,sipType_DNSSD_ServiceTypeBrowser,_c,_id,_a);

    return _id;
}

void *sipDNSSD_ServiceTypeBrowser::qt_metacast(const char *_clname)
{
    return (sip_dnssd_qt_metacast(sipPySelf, sipType_DNSSD_ServiceTypeBrowser, _clname)) ? this :  ::DNSSD::ServiceTypeBrowser::qt_metacast(_clname);
}

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

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

    if (!sipMeth)
        return  ::DNSSD::ServiceTypeBrowser::event(a0);

    extern bool sipVH_dnssd_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_dnssd_5(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    extern bool sipVH_dnssd_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

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

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

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

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

    extern void sipVH_dnssd_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_dnssd_3(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    extern void sipVH_dnssd_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_dnssd_2(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    extern void sipVH_dnssd_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_dnssd_1(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    extern void sipVH_dnssd_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    sipVH_dnssd_0(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    extern void sipVH_dnssd_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    sipVH_dnssd_0(sipGILState, 0, sipPySelf, sipMeth, a0);
}


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

    {
        const  ::DNSSD::ServiceTypeBrowser *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
         ::DNSSD::ServiceTypeBrowser *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const  ::DNSSD::ServiceTypeBrowser *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isRunning();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_DNSSD_ServiceTypeBrowser(void *, const sipTypeDef *);}
static void *cast_DNSSD_ServiceTypeBrowser(void *sipCppV, const sipTypeDef *targetType)
{
     ::DNSSD::ServiceTypeBrowser *sipCpp = reinterpret_cast< ::DNSSD::ServiceTypeBrowser *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


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

    Py_BEGIN_ALLOW_THREADS

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

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_DNSSD_ServiceTypeBrowser(sipSimpleWrapper *);}
static void dealloc_DNSSD_ServiceTypeBrowser(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipDNSSD_ServiceTypeBrowser *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_DNSSD_ServiceTypeBrowser(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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

    {
        const  ::QString& a0def = QString();
        const  ::QString* a0 = &a0def;
        int a0State = 0;
         ::QObject* a1 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|J1JH", sipType_QString,&a0, &a0State, sipType_QObject, &a1, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipDNSSD_ServiceTypeBrowser(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_DNSSD_ServiceTypeBrowser[] = {
    {SIP_MLNAME_CAST(sipName_isRunning), meth_DNSSD_ServiceTypeBrowser_isRunning, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_serviceTypes), meth_DNSSD_ServiceTypeBrowser_serviceTypes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_startBrowse), meth_DNSSD_ServiceTypeBrowser_startBrowse, METH_VARARGS, NULL}
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_DNSSD_ServiceTypeBrowser[] = {
    {"finished()", 0, 0, 0},
    {"serviceTypeAdded(QString)", 0, 0, 0},
    {"serviceTypeRemoved(QString)", 0, 0, 0},
    {0, 0, 0, 0}
};


static pyqt4ClassPluginDef plugin_DNSSD_ServiceTypeBrowser = {
    & ::DNSSD::ServiceTypeBrowser::staticMetaObject,
    0,
    signals_DNSSD_ServiceTypeBrowser
};


sipClassTypeDef sipTypeDef_dnssd_DNSSD_ServiceTypeBrowser = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_DNSSD__ServiceTypeBrowser,
        {0},
        &plugin_DNSSD_ServiceTypeBrowser
    },
    {
        sipNameNr_ServiceTypeBrowser,
        {0, 255, 0},
        3, methods_DNSSD_ServiceTypeBrowser,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_DNSSD_ServiceTypeBrowser,
    0,
    init_type_DNSSD_ServiceTypeBrowser,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DNSSD_ServiceTypeBrowser,
    0,
    0,
    0,
    release_DNSSD_ServiceTypeBrowser,
    cast_DNSSD_ServiceTypeBrowser,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/dnssd/servicemodel.sip"
#include <dnssd/servicemodel.h>
#line 471 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"

#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/dnssd/servicebrowser.sip"
#include <dnssd/servicebrowser.h>
#line 475 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"
#line 29 "/usr/share/sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 478 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 481 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"
#line 265 "/usr/share/sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 484 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 487 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"
#line 139 "/usr/share/sip/PyQt4/QtCore/qhash.sip"
#include <qhash.h>
#line 490 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"
#line 32 "/usr/share/sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 493 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 496 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 499 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 502 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 505 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 508 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 511 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 514 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 517 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"
#line 139 "/usr/share/sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 520 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 523 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 526 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"
#line 368 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 529 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"
#line 351 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 532 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 535 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 538 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 541 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 544 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 547 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 550 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/dnssd/sipdnssdpart1.cpp"


class sipDNSSD_ServiceModel : public  ::DNSSD::ServiceModel
{
public:
    sipDNSSD_ServiceModel( ::DNSSD::ServiceBrowser*, ::QObject*);
    virtual ~sipDNSSD_ServiceModel();

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool hasIndex(int,int,const  ::QModelIndex&) const;
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent( ::QEvent*);
    void childEvent( ::QChildEvent*);
    void timerEvent( ::QTimerEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    bool event( ::QEvent*);
     ::QModelIndex index(int,int,const  ::QModelIndex&) const;
     ::QModelIndex parent(const  ::QModelIndex&) const;
    int rowCount(const  ::QModelIndex&) const;
    int columnCount(const  ::QModelIndex&) const;
    bool hasChildren(const  ::QModelIndex&) const;
     ::QVariant data(const  ::QModelIndex&,int) const;
    bool setData(const  ::QModelIndex&,const  ::QVariant&,int);
     ::QVariant headerData(int, ::Qt::Orientation,int) const;
    bool setHeaderData(int, ::Qt::Orientation,const  ::QVariant&,int);
    QMap<int, ::QVariant> itemData(const  ::QModelIndex&) const;
    bool setItemData(const  ::QModelIndex&,const QMap<int, ::QVariant>&);
     ::QStringList mimeTypes() const;
     ::QMimeData* mimeData(const  ::QModelIndexList&) const;
    bool dropMimeData(const  ::QMimeData*, ::Qt::DropAction,int,int,const  ::QModelIndex&);
     ::Qt::DropActions supportedDropActions() const;
    bool insertRows(int,int,const  ::QModelIndex&);
    bool insertColumns(int,int,const  ::QModelIndex&);
    bool removeRows(int,int,const  ::QModelIndex&);
    bool removeColumns(int,int,const  ::QModelIndex&);
    void fetchMore(const  ::QModelIndex&);
    bool canFetchMore(const  ::QModelIndex&) const;
     ::Qt::ItemFlags flags(const  ::QModelIndex&) const;
    void sort(int, ::Qt::SortOrder);
     ::QModelIndex buddy(const  ::QModelIndex&) const;
     ::QModelIndexList match(const  ::QModelIndex&,int,const  ::QVariant&,int, ::Qt::MatchFlags) const;
     ::QSize span(const  ::QModelIndex&) const;
    bool submit();
    void revert();

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[36];
};

sipDNSSD_ServiceModel::sipDNSSD_ServiceModel( ::DNSSD::ServiceBrowser*a0, ::QObject*a1):  ::DNSSD::ServiceModel(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipDNSSD_ServiceModel::~sipDNSSD_ServiceModel()
{
    sipInstanceDestroyed(sipPySelf);
}

const QMetaObject *sipDNSSD_ServiceModel::metaObject() const
{
    return sip_dnssd_qt_metaobject(sipPySelf,sipType_DNSSD_ServiceModel);
}

int sipDNSSD_ServiceModel::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id =  ::DNSSD::ServiceModel::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_dnssd_qt_metacall(sipPySelf,sipType_DNSSD_ServiceModel,_c,_id,_a);

    return _id;
}

void *sipDNSSD_ServiceModel::qt_metacast(const char *_clname)
{
    return (sip_dnssd_qt_metacast(sipPySelf, sipType_DNSSD_ServiceModel, _clname)) ? this :  ::DNSSD::ServiceModel::qt_metacast(_clname);
}

bool sipDNSSD_ServiceModel::hasIndex(int a0,int a1,const  ::QModelIndex& a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::DNSSD::ServiceModel::hasIndex(a0,a1,a2);

    extern bool sipVH_dnssd_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const  ::QModelIndex&);

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

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

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

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

    extern void sipVH_dnssd_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    sipVH_dnssd_0(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    extern void sipVH_dnssd_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    sipVH_dnssd_0(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    extern void sipVH_dnssd_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_dnssd_1(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    extern void sipVH_dnssd_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_dnssd_2(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    extern void sipVH_dnssd_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_dnssd_3(sipGILState, 0, sipPySelf, sipMeth, a0);
}

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

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

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

    extern bool sipVH_dnssd_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

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

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

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

    if (!sipMeth)
        return  ::DNSSD::ServiceModel::event(a0);

    extern bool sipVH_dnssd_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_dnssd_5(sipGILState, 0, sipPySelf, sipMeth, a0);
}

 ::QModelIndex sipDNSSD_ServiceModel::index(int a0,int a1,const  ::QModelIndex& a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::DNSSD::ServiceModel::index(a0,a1,a2);

    extern  ::QModelIndex sipVH_dnssd_27(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const  ::QModelIndex&);

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

 ::QModelIndex sipDNSSD_ServiceModel::parent(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::DNSSD::ServiceModel::parent(a0);

    extern  ::QModelIndex sipVH_dnssd_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_dnssd_10(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipDNSSD_ServiceModel::rowCount(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::DNSSD::ServiceModel::rowCount(a0);

    extern int sipVH_dnssd_26(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_dnssd_26(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipDNSSD_ServiceModel::columnCount(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::DNSSD::ServiceModel::columnCount(a0);

    extern int sipVH_dnssd_26(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_dnssd_26(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipDNSSD_ServiceModel::hasChildren(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::DNSSD::ServiceModel::hasChildren(a0);

    extern bool sipVH_dnssd_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_dnssd_13(sipGILState, 0, sipPySelf, sipMeth, a0);
}

 ::QVariant sipDNSSD_ServiceModel::data(const  ::QModelIndex& a0,int a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::DNSSD::ServiceModel::data(a0,a1);

    extern  ::QVariant sipVH_dnssd_25(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&,int);

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

bool sipDNSSD_ServiceModel::setData(const  ::QModelIndex& a0,const  ::QVariant& a1,int a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::DNSSD::ServiceModel::setData(a0,a1,a2);

    extern bool sipVH_dnssd_24(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&,const  ::QVariant&,int);

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

 ::QVariant sipDNSSD_ServiceModel::headerData(int a0, ::Qt::Orientation a1,int a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::DNSSD::ServiceModel::headerData(a0,a1,a2);

    extern  ::QVariant sipVH_dnssd_23(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int, ::Qt::Orientation,int);

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

bool sipDNSSD_ServiceModel::setHeaderData(int a0, ::Qt::Orientation a1,const  ::QVariant& a2,int a3)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_setHeaderData);

    if (!sipMeth)
        return  ::DNSSD::ServiceModel::setHeaderData(a0,a1,a2,a3);

    extern bool sipVH_dnssd_22(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int, ::Qt::Orientation,const  ::QVariant&,int);

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

QMap<int, ::QVariant> sipDNSSD_ServiceModel::itemData(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::DNSSD::ServiceModel::itemData(a0);

    extern QMap<int, ::QVariant> sipVH_dnssd_21(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_dnssd_21(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipDNSSD_ServiceModel::setItemData(const  ::QModelIndex& a0,const QMap<int, ::QVariant>& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_setItemData);

    if (!sipMeth)
        return  ::DNSSD::ServiceModel::setItemData(a0,a1);

    extern bool sipVH_dnssd_20(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&,const QMap<int, ::QVariant>&);

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

 ::QStringList sipDNSSD_ServiceModel::mimeTypes() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::DNSSD::ServiceModel::mimeTypes();

    extern  ::QStringList sipVH_dnssd_19(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_dnssd_19(sipGILState, 0, sipPySelf, sipMeth);
}

 ::QMimeData* sipDNSSD_ServiceModel::mimeData(const  ::QModelIndexList& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::DNSSD::ServiceModel::mimeData(a0);

    extern  ::QMimeData* sipVH_dnssd_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndexList&);

    return sipVH_dnssd_18(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipDNSSD_ServiceModel::dropMimeData(const  ::QMimeData*a0, ::Qt::DropAction a1,int a2,int a3,const  ::QModelIndex& a4)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,NULL,sipName_dropMimeData);

    if (!sipMeth)
        return  ::DNSSD::ServiceModel::dropMimeData(a0,a1,a2,a3,a4);

    extern bool sipVH_dnssd_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMimeData*, ::Qt::DropAction,int,int,const  ::QModelIndex&);

    return sipVH_dnssd_17(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3, a4);
}

 ::Qt::DropActions sipDNSSD_ServiceModel::supportedDropActions() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::DNSSD::ServiceModel::supportedDropActions();

    extern  ::Qt::DropActions sipVH_dnssd_16(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_dnssd_16(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipDNSSD_ServiceModel::insertRows(int a0,int a1,const  ::QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,NULL,sipName_insertRows);

    if (!sipMeth)
        return  ::DNSSD::ServiceModel::insertRows(a0,a1,a2);

    extern bool sipVH_dnssd_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const  ::QModelIndex&);

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

bool sipDNSSD_ServiceModel::insertColumns(int a0,int a1,const  ::QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[24],sipPySelf,NULL,sipName_insertColumns);

    if (!sipMeth)
        return  ::DNSSD::ServiceModel::insertColumns(a0,a1,a2);

    extern bool sipVH_dnssd_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const  ::QModelIndex&);

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

bool sipDNSSD_ServiceModel::removeRows(int a0,int a1,const  ::QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[25],sipPySelf,NULL,sipName_removeRows);

    if (!sipMeth)
        return  ::DNSSD::ServiceModel::removeRows(a0,a1,a2);

    extern bool sipVH_dnssd_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const  ::QModelIndex&);

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

bool sipDNSSD_ServiceModel::removeColumns(int a0,int a1,const  ::QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[26],sipPySelf,NULL,sipName_removeColumns);

    if (!sipMeth)
        return  ::DNSSD::ServiceModel::removeColumns(a0,a1,a2);

    extern bool sipVH_dnssd_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const  ::QModelIndex&);

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

void sipDNSSD_ServiceModel::fetchMore(const  ::QModelIndex& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],sipPySelf,NULL,sipName_fetchMore);

    if (!sipMeth)
    {
         ::DNSSD::ServiceModel::fetchMore(a0);
        return;
    }

    extern void sipVH_dnssd_14(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    sipVH_dnssd_14(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipDNSSD_ServiceModel::canFetchMore(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::DNSSD::ServiceModel::canFetchMore(a0);

    extern bool sipVH_dnssd_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_dnssd_13(sipGILState, 0, sipPySelf, sipMeth, a0);
}

 ::Qt::ItemFlags sipDNSSD_ServiceModel::flags(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::DNSSD::ServiceModel::flags(a0);

    extern  ::Qt::ItemFlags sipVH_dnssd_12(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_dnssd_12(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipDNSSD_ServiceModel::sort(int a0, ::Qt::SortOrder a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[30],sipPySelf,NULL,sipName_sort);

    if (!sipMeth)
    {
         ::DNSSD::ServiceModel::sort(a0,a1);
        return;
    }

    extern void sipVH_dnssd_11(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int, ::Qt::SortOrder);

    sipVH_dnssd_11(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

 ::QModelIndex sipDNSSD_ServiceModel::buddy(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::DNSSD::ServiceModel::buddy(a0);

    extern  ::QModelIndex sipVH_dnssd_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_dnssd_10(sipGILState, 0, sipPySelf, sipMeth, a0);
}

 ::QModelIndexList sipDNSSD_ServiceModel::match(const  ::QModelIndex& a0,int a1,const  ::QVariant& a2,int a3, ::Qt::MatchFlags a4) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::DNSSD::ServiceModel::match(a0,a1,a2,a3,a4);

    extern  ::QModelIndexList sipVH_dnssd_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&,int,const  ::QVariant&,int, ::Qt::MatchFlags);

    return sipVH_dnssd_9(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3, a4);
}

 ::QSize sipDNSSD_ServiceModel::span(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::DNSSD::ServiceModel::span(a0);

    extern  ::QSize sipVH_dnssd_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_dnssd_8(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipDNSSD_ServiceModel::submit()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[34],sipPySelf,NULL,sipName_submit);

    if (!sipMeth)
        return  ::DNSSD::ServiceModel::submit();

    extern bool sipVH_dnssd_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_dnssd_7(sipGILState, 0, sipPySelf, sipMeth);
}

void sipDNSSD_ServiceModel::revert()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[35],sipPySelf,NULL,sipName_revert);

    if (!sipMeth)
    {
         ::DNSSD::ServiceModel::revert();
        return;
    }

    extern void sipVH_dnssd_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    sipVH_dnssd_6(sipGILState, 0, sipPySelf, sipMeth);
}


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

    {
        const  ::QModelIndex& a0def = QModelIndex();
        const  ::QModelIndex* a0 = &a0def;
        const  ::DNSSD::ServiceModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J9", &sipSelf, sipType_DNSSD_ServiceModel, &sipCpp, sipType_QModelIndex, &a0))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::DNSSD::ServiceModel::columnCount(*a0) : sipCpp->columnCount(*a0));
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const  ::QModelIndex& a0def = QModelIndex();
        const  ::QModelIndex* a0 = &a0def;
        const  ::DNSSD::ServiceModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J9", &sipSelf, sipType_DNSSD_ServiceModel, &sipCpp, sipType_QModelIndex, &a0))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::DNSSD::ServiceModel::rowCount(*a0) : sipCpp->rowCount(*a0));
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const  ::QModelIndex* a0;
        const  ::DNSSD::ServiceModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DNSSD_ServiceModel, &sipCpp, sipType_QModelIndex, &a0))
        {
             ::QModelIndex*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QModelIndex((sipSelfWasArg ? sipCpp-> ::DNSSD::ServiceModel::parent(*a0) : sipCpp->parent(*a0)));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        int a0;
        int a1;
        const  ::QModelIndex& a2def = QModelIndex();
        const  ::QModelIndex* a2 = &a2def;
        const  ::DNSSD::ServiceModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii|J9", &sipSelf, sipType_DNSSD_ServiceModel, &sipCpp, &a0, &a1, sipType_QModelIndex, &a2))
        {
             ::QModelIndex*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QModelIndex((sipSelfWasArg ? sipCpp-> ::DNSSD::ServiceModel::index(a0,a1,*a2) : sipCpp->index(a0,a1,*a2)));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const  ::QModelIndex* a0;
        int a1 = Qt::DisplayRole;
        const  ::DNSSD::ServiceModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9|i", &sipSelf, sipType_DNSSD_ServiceModel, &sipCpp, sipType_QModelIndex, &a0, &a1))
        {
             ::QVariant*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QVariant((sipSelfWasArg ? sipCpp-> ::DNSSD::ServiceModel::data(*a0,a1) : sipCpp->data(*a0,a1)));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        int a0;
         ::Qt::Orientation a1;
        int a2 = Qt::DisplayRole;
        const  ::DNSSD::ServiceModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiE|i", &sipSelf, sipType_DNSSD_ServiceModel, &sipCpp, &a0, sipType_Qt_Orientation, &a1, &a2))
        {
             ::QVariant*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QVariant((sipSelfWasArg ? sipCpp-> ::DNSSD::ServiceModel::headerData(a0,a1,a2) : sipCpp->headerData(a0,a1,a2)));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        int a0;
        int a1;
        const  ::QModelIndex* a2;
        const  ::DNSSD::ServiceModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiiJ9", &sipSelf, sipType_DNSSD_ServiceModel, &sipCpp, &a0, &a1, sipType_QModelIndex, &a2))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::DNSSD::ServiceModel::hasIndex(a0,a1,*a2) : sipCpp->hasIndex(a0,a1,*a2));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_DNSSD_ServiceModel(void *, const sipTypeDef *);}
static void *cast_DNSSD_ServiceModel(void *sipCppV, const sipTypeDef *targetType)
{
     ::DNSSD::ServiceModel *sipCpp = reinterpret_cast< ::DNSSD::ServiceModel *>(sipCppV);

    if (targetType == sipType_QAbstractItemModel)
        return static_cast< ::QAbstractItemModel *>(sipCpp);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


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

    Py_BEGIN_ALLOW_THREADS

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

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_DNSSD_ServiceModel(sipSimpleWrapper *);}
static void dealloc_DNSSD_ServiceModel(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipDNSSD_ServiceModel *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_DNSSD_ServiceModel(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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

    {
         ::DNSSD::ServiceBrowser* a0;
         ::QObject* a1 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_DNSSD_ServiceModel[] = {
    {SIP_MLNAME_CAST(sipName_columnCount), meth_DNSSD_ServiceModel_columnCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_data), meth_DNSSD_ServiceModel_data, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasIndex), meth_DNSSD_ServiceModel_hasIndex, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_headerData), meth_DNSSD_ServiceModel_headerData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_index), meth_DNSSD_ServiceModel_index, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parent), meth_DNSSD_ServiceModel_parent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_rowCount), meth_DNSSD_ServiceModel_rowCount, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_DNSSD_ServiceModel[] = {
    {sipName_Host, static_cast<int>( ::DNSSD::ServiceModel::Host), 11},
    {sipName_Port, static_cast<int>( ::DNSSD::ServiceModel::Port), 11},
    {sipName_ServiceName, static_cast<int>( ::DNSSD::ServiceModel::ServiceName), 11},
    {sipName_ServicePtrRole, static_cast<int>( ::DNSSD::ServiceModel::ServicePtrRole), 10},
};


static pyqt4ClassPluginDef plugin_DNSSD_ServiceModel = {
    & ::DNSSD::ServiceModel::staticMetaObject,
    0,
    0
};


sipClassTypeDef sipTypeDef_dnssd_DNSSD_ServiceModel = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_DNSSD__ServiceModel,
        {0},
        &plugin_DNSSD_ServiceModel
    },
    {
        sipNameNr_ServiceModel,
        {0, 255, 0},
        7, methods_DNSSD_ServiceModel,
        4, enummembers_DNSSD_ServiceModel,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_DNSSD_ServiceModel,
    0,
    init_type_DNSSD_ServiceModel,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DNSSD_ServiceModel,
    0,
    0,
    0,
    release_DNSSD_ServiceModel,
    cast_DNSSD_ServiceModel,
    0,
    0,
    0,
    0,
    0,
    0
};
