/*
 * Module code.
 *
 * Generated by SIP 4.8.2 on Sun Oct 11 19:57:13 2009
 */

#include "sipAPIdnssd.h"

#line 40 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/dnssd/domainbrowser.sip"
#include <dnssd/domainbrowser.h>
#line 12 "sipdnssdpart5.cpp"

#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 16 "sipdnssdpart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 19 "sipdnssdpart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 22 "sipdnssdpart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 25 "sipdnssdpart5.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 28 "sipdnssdpart5.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 31 "sipdnssdpart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 34 "sipdnssdpart5.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 65 "sipdnssdpart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 68 "sipdnssdpart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 71 "sipdnssdpart5.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 74 "sipdnssdpart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 77 "sipdnssdpart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 80 "sipdnssdpart5.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 83 "sipdnssdpart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 86 "sipdnssdpart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 89 "sipdnssdpart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 92 "sipdnssdpart5.cpp"


class sipDNSSD_DomainBrowser : public DNSSD::DomainBrowser
{
public:
    sipDNSSD_DomainBrowser(DNSSD::DomainBrowser::DomainType,QObject *);
    virtual ~sipDNSSD_DomainBrowser();

    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.
     */
    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:
    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_DomainBrowser(const sipDNSSD_DomainBrowser &);
    sipDNSSD_DomainBrowser &operator = (const sipDNSSD_DomainBrowser &);

    char sipPyMethods[7];
};

sipDNSSD_DomainBrowser::sipDNSSD_DomainBrowser(DNSSD::DomainBrowser::DomainType a0,QObject *a1): DNSSD::DomainBrowser(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipDNSSD_DomainBrowser::metaObject() const
{
    return sip_dnssd_qt_metaobject(sipPySelf,sipType_DNSSD_DomainBrowser);
}

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

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

    return _id;
}

void *sipDNSSD_DomainBrowser::qt_metacast(const char *_clname)
{
    return (sip_dnssd_qt_metacast && sip_dnssd_qt_metacast(sipPySelf,sipType_DNSSD_DomainBrowser,_clname)) ? this : DNSSD::DomainBrowser::qt_metacast(_clname);
}

bool sipDNSSD_DomainBrowser::event(QEvent *a0)
{
    typedef bool (*sipVH_QtCore_13)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return ((sipVH_QtCore_13)(sipModuleAPI_dnssd_QtCore->em_virthandlers[13]))(sipGILState,meth,a0);
}

bool sipDNSSD_DomainBrowser::eventFilter(QObject *a0,QEvent *a1)
{
    typedef bool (*sipVH_QtCore_21)(sip_gilstate_t,PyObject *,QObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return ((sipVH_QtCore_21)(sipModuleAPI_dnssd_QtCore->em_virthandlers[21]))(sipGILState,meth,a0,a1);
}

void sipDNSSD_DomainBrowser::timerEvent(QTimerEvent *a0)
{
    typedef void (*sipVH_QtCore_3)(sip_gilstate_t,PyObject *,QTimerEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    ((sipVH_QtCore_3)(sipModuleAPI_dnssd_QtCore->em_virthandlers[3]))(sipGILState,meth,a0);
}

void sipDNSSD_DomainBrowser::childEvent(QChildEvent *a0)
{
    typedef void (*sipVH_QtCore_20)(sip_gilstate_t,PyObject *,QChildEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    ((sipVH_QtCore_20)(sipModuleAPI_dnssd_QtCore->em_virthandlers[20]))(sipGILState,meth,a0);
}

void sipDNSSD_DomainBrowser::customEvent(QEvent *a0)
{
    typedef void (*sipVH_QtCore_19)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    ((sipVH_QtCore_19)(sipModuleAPI_dnssd_QtCore->em_virthandlers[19]))(sipGILState,meth,a0);
}

void sipDNSSD_DomainBrowser::connectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    ((sipVH_QtCore_18)(sipModuleAPI_dnssd_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

void sipDNSSD_DomainBrowser::disconnectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    ((sipVH_QtCore_18)(sipModuleAPI_dnssd_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

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

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

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

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

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

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


extern "C" {static PyObject *meth_DNSSD_DomainBrowser_receivers(PyObject *, PyObject *);}
static PyObject *meth_DNSSD_DomainBrowser_receivers(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        char * a0;
        sipDNSSD_DomainBrowser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_DNSSD_DomainBrowser,&sipCpp,&a0))
        {
            int sipRes = 0;

#line 462 "/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)
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
#line 345 "sipdnssdpart5.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_DNSSD_DomainBrowser_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_DNSSD_DomainBrowser_timerEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipDNSSD_DomainBrowser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_DNSSD_DomainBrowser,&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(sipArgsParsed,sipName_DomainBrowser,sipName_timerEvent);

    return NULL;
}


extern "C" {static PyObject *meth_DNSSD_DomainBrowser_childEvent(PyObject *, PyObject *);}
static PyObject *meth_DNSSD_DomainBrowser_childEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipDNSSD_DomainBrowser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_DNSSD_DomainBrowser,&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(sipArgsParsed,sipName_DomainBrowser,sipName_childEvent);

    return NULL;
}


extern "C" {static PyObject *meth_DNSSD_DomainBrowser_customEvent(PyObject *, PyObject *);}
static PyObject *meth_DNSSD_DomainBrowser_customEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipDNSSD_DomainBrowser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_DNSSD_DomainBrowser,&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(sipArgsParsed,sipName_DomainBrowser,sipName_customEvent);

    return NULL;
}


extern "C" {static PyObject *meth_DNSSD_DomainBrowser_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_DNSSD_DomainBrowser_connectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipDNSSD_DomainBrowser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_DNSSD_DomainBrowser,&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(sipArgsParsed,sipName_DomainBrowser,sipName_connectNotify);

    return NULL;
}


extern "C" {static PyObject *meth_DNSSD_DomainBrowser_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_DNSSD_DomainBrowser_disconnectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipDNSSD_DomainBrowser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_DNSSD_DomainBrowser,&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(sipArgsParsed,sipName_DomainBrowser,sipName_disconnectNotify);

    return NULL;
}


extern "C" {static PyObject *meth_DNSSD_DomainBrowser_domains(PyObject *, PyObject *);}
static PyObject *meth_DNSSD_DomainBrowser_domains(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DNSSD::DomainBrowser *sipCpp;

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

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_DomainBrowser,sipName_domains);

    return NULL;
}


extern "C" {static PyObject *meth_DNSSD_DomainBrowser_startBrowse(PyObject *, PyObject *);}
static PyObject *meth_DNSSD_DomainBrowser_startBrowse(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DNSSD::DomainBrowser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DNSSD_DomainBrowser,&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(sipArgsParsed,sipName_DomainBrowser,sipName_startBrowse);

    return NULL;
}


extern "C" {static PyObject *meth_DNSSD_DomainBrowser_isRunning(PyObject *, PyObject *);}
static PyObject *meth_DNSSD_DomainBrowser_isRunning(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DNSSD::DomainBrowser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DNSSD_DomainBrowser,&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(sipArgsParsed,sipName_DomainBrowser,sipName_isRunning);

    return NULL;
}


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

    if (targetType == sipType_DNSSD_DomainBrowser)
        return ptr;

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

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipDNSSD_DomainBrowser *>(sipCppV);
    else
        delete reinterpret_cast<DNSSD::DomainBrowser *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


extern "C" {static void *init_DNSSD_DomainBrowser(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_DNSSD_DomainBrowser(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **sipOwner, int *sipArgsParsed)
{
    sipDNSSD_DomainBrowser *sipCpp = 0;

    if (!sipCpp)
    {
        DNSSD::DomainBrowser::DomainType a0;
        QObject * a1 = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"E|JH",sipType_DNSSD_DomainBrowser_DomainType,&a0,sipType_QObject,&a1,sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipDNSSD_DomainBrowser(a0,a1);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_DNSSD_DomainBrowser[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_DNSSD_DomainBrowser_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_DNSSD_DomainBrowser_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_DNSSD_DomainBrowser_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_DNSSD_DomainBrowser_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_domains), meth_DNSSD_DomainBrowser_domains, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isRunning), meth_DNSSD_DomainBrowser_isRunning, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_DNSSD_DomainBrowser_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_startBrowse), meth_DNSSD_DomainBrowser_startBrowse, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_DNSSD_DomainBrowser_timerEvent, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_DNSSD_DomainBrowser[] = {
    {sipName_Browsing, DNSSD::DomainBrowser::Browsing, 2},
    {sipName_Publishing, DNSSD::DomainBrowser::Publishing, 2},
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_DNSSD_DomainBrowser[] = {
    {"domainAdded(const QString&)", 0},
    {"domainRemoved(const QString&)", 0},
    {0, 0}
};


pyqt4ClassTypeDef pyqt4Type_dnssd_DNSSD_DomainBrowser = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_DNSSD__DomainBrowser,
        {0}
    },
    sipNameNr_DomainBrowser,
    -1,
    -1,
    {0, 255, 0},
    supers_DNSSD_DomainBrowser,
    0,
    9, methods_DNSSD_DomainBrowser,
    2, enummembers_DNSSD_DomainBrowser,
    0, 0,
    init_DNSSD_DomainBrowser,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DNSSD_DomainBrowser,
    release_DNSSD_DomainBrowser,
    cast_DNSSD_DomainBrowser,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &DNSSD::DomainBrowser::staticMetaObject,
    0,
    pyqt4_signals_DNSSD_DomainBrowser
};




pyqt4ClassTypeDef pyqt4Type_dnssd_DNSSD = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_DNSSD,
        {0}
    },
    sipNameNr_DNSSD,
    -1,
    -1,
    {0, 0, 1},
    0,
    0,
    0, 0,
    0, 0,
    0, 0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};
