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

#include "sipAPIdnssd.h"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/dnssd/remoteservice.sip"
#include <dnssd/remoteservice.h>
#line 12 "sipdnssdpart3.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 16 "sipdnssdpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 19 "sipdnssdpart3.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 22 "sipdnssdpart3.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 25 "sipdnssdpart3.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 28 "sipdnssdpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 31 "sipdnssdpart3.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 62 "sipdnssdpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 65 "sipdnssdpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 68 "sipdnssdpart3.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 71 "sipdnssdpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 74 "sipdnssdpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 77 "sipdnssdpart3.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 80 "sipdnssdpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 83 "sipdnssdpart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 86 "sipdnssdpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 89 "sipdnssdpart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/dnssd/servicebase.sip"
#include <dnssd/servicebase.h>
#line 92 "sipdnssdpart3.cpp"
#line 147 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kcompletion.sip"
#include <qmap.h>
#line 43 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 97 "sipdnssdpart3.cpp"
#line 98 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kcompletion.sip"
#include <kcompletion.h>
#line 100 "sipdnssdpart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kshortcut.sip"
#include <kshortcut.h>
#line 103 "sipdnssdpart3.cpp"


class sipDNSSD_RemoteService : public DNSSD::RemoteService
{
public:
    sipDNSSD_RemoteService(const QString&,const QString&,const QString&);
    virtual ~sipDNSSD_RemoteService();

    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_RemoteService(const sipDNSSD_RemoteService &);
    sipDNSSD_RemoteService &operator = (const sipDNSSD_RemoteService &);

    char sipPyMethods[7];
};

sipDNSSD_RemoteService::sipDNSSD_RemoteService(const QString& a0,const QString& a1,const QString& a2): DNSSD::RemoteService(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipDNSSD_RemoteService::metaObject() const
{
    return sip_dnssd_qt_metaobject(sipPySelf,sipType_DNSSD_RemoteService);
}

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

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

    return _id;
}

void *sipDNSSD_RemoteService::qt_metacast(const char *_clname)
{
    return (sip_dnssd_qt_metacast && sip_dnssd_qt_metacast(sipPySelf,sipType_DNSSD_RemoteService,_clname)) ? this : DNSSD::RemoteService::qt_metacast(_clname);
}

bool sipDNSSD_RemoteService::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_RemoteService::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_RemoteService::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_RemoteService::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_RemoteService::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_RemoteService::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_RemoteService::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_RemoteService::sipProtect_receivers(const char *a0) const
{
    return QObject::receivers(a0);
}

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

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

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

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

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


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

    {
        char * a0;
        sipDNSSD_RemoteService *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_DNSSD_RemoteService,&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 356 "sipdnssdpart3.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipDNSSD_RemoteService *sipCpp;

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipDNSSD_RemoteService *sipCpp;

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipDNSSD_RemoteService *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipDNSSD_RemoteService *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipDNSSD_RemoteService *sipCpp;

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

    return NULL;
}


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

    {
        DNSSD::RemoteService *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DNSSD_RemoteService,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->resolveAsync();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        DNSSD::RemoteService *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DNSSD_RemoteService,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->resolve();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        DNSSD::RemoteService *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DNSSD_RemoteService,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isResolved();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_DNSSD_RemoteService)
        return ptr;

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

    if ((res = ((const sipClassTypeDef *)sipType_DNSSD_ServiceBase)->ctd_cast((DNSSD::ServiceBase *)(DNSSD::RemoteService *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

    if (!sipCpp)
    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;
        const QString * a2;
        int a2State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1J1J1",sipType_QString,&a0,&a0State,sipType_QString,&a1,&a1State,sipType_QString,&a2,&a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipDNSSD_RemoteService(*a0,*a1,*a2);
            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);
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_DNSSD_RemoteService[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_DNSSD_RemoteService_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_DNSSD_RemoteService_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_DNSSD_RemoteService_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_DNSSD_RemoteService_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isResolved), meth_DNSSD_RemoteService_isResolved, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_DNSSD_RemoteService_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resolve), meth_DNSSD_RemoteService_resolve, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resolveAsync), meth_DNSSD_RemoteService_resolveAsync, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_DNSSD_RemoteService_timerEvent, METH_VARARGS, NULL}
};


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


pyqt4ClassTypeDef pyqt4Type_dnssd_DNSSD_RemoteService = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_DNSSD__RemoteService,
        {0}
    },
    sipNameNr_RemoteService,
    -1,
    -1,
    {0, 255, 0},
    supers_DNSSD_RemoteService,
    0,
    9, methods_DNSSD_RemoteService,
    0, 0,
    0, 0,
    init_DNSSD_RemoteService,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DNSSD_RemoteService,
    release_DNSSD_RemoteService,
    cast_DNSSD_RemoteService,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &DNSSD::RemoteService::staticMetaObject,
    0,
    pyqt4_signals_DNSSD_RemoteService
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/dnssd/servicebase.sip"
#include <dnssd/servicebase.h>
#line 740 "sipdnssdpart3.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 744 "sipdnssdpart3.cpp"
#line 147 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kcompletion.sip"
#include <qmap.h>
#line 43 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 749 "sipdnssdpart3.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 752 "sipdnssdpart3.cpp"
#line 98 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kcompletion.sip"
#include <kcompletion.h>
#line 755 "sipdnssdpart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kshortcut.sip"
#include <kshortcut.h>
#line 758 "sipdnssdpart3.cpp"


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

    {
        DNSSD::ServiceBase *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        DNSSD::ServiceBase *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        DNSSD::ServiceBase *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        DNSSD::ServiceBase *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        DNSSD::ServiceBase *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DNSSD_ServiceBase,&sipCpp))
        {
            unsigned short sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->port();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        DNSSD::ServiceBase *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DNSSD_ServiceBase,&sipCpp))
        {
            QMap<QString,QByteArray> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QMap<QString,QByteArray>(sipCpp->textData());
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QMap_0200QString_0200QByteArray,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *slot_DNSSD_ServiceBase___ne__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_DNSSD_ServiceBase___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    DNSSD::ServiceBase *sipCpp = reinterpret_cast<DNSSD::ServiceBase *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_DNSSD_ServiceBase));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const DNSSD::ServiceBase * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_DNSSD_ServiceBase,&a0))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_dnssd,ne_slot,sipType_DNSSD_ServiceBase,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_DNSSD_ServiceBase___eq__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_DNSSD_ServiceBase___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    DNSSD::ServiceBase *sipCpp = reinterpret_cast<DNSSD::ServiceBase *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_DNSSD_ServiceBase));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const DNSSD::ServiceBase * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_DNSSD_ServiceBase,&a0))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_dnssd,eq_slot,sipType_DNSSD_ServiceBase,sipSelf,sipArg);
}


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

    if (targetType == sipType_DNSSD_ServiceBase)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KShared)->ctd_cast((KShared *)(DNSSD::ServiceBase *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    delete reinterpret_cast<DNSSD::ServiceBase *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *init_DNSSD_ServiceBase(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_DNSSD_ServiceBase(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    DNSSD::ServiceBase *sipCpp = 0;

    if (!sipCpp)
    {
        const QString& a0def = QString();
        const QString * a0 = &a0def;
        int a0State = 0;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;
        const QString& a2def = QString();
        const QString * a2 = &a2def;
        int a2State = 0;
        const QString& a3def = QString();
        const QString * a3 = &a3def;
        int a3State = 0;
        unsigned short a4 = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"|J1J1J1J1t",sipType_QString,&a0,&a0State,sipType_QString,&a1,&a1State,sipType_QString,&a2,&a2State,sipType_QString,&a3,&a3State,&a4))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DNSSD::ServiceBase(*a0,*a1,*a2,*a3,a4);
            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 sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_DNSSD_ServiceBase[] = {{139, 3, 1}};


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


static PyMethodDef methods_DNSSD_ServiceBase[] = {
    {SIP_MLNAME_CAST(sipName_domain), meth_DNSSD_ServiceBase_domain, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hostName), meth_DNSSD_ServiceBase_hostName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_port), meth_DNSSD_ServiceBase_port, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_serviceName), meth_DNSSD_ServiceBase_serviceName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_textData), meth_DNSSD_ServiceBase_textData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_DNSSD_ServiceBase_type, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_dnssd_DNSSD_ServiceBase = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DNSSD__ServiceBase,
        {0}
    },
    sipNameNr_ServiceBase,
    -1,
    -1,
    {0, 255, 0},
    supers_DNSSD_ServiceBase,
    slots_DNSSD_ServiceBase,
    6, methods_DNSSD_ServiceBase,
    0, 0,
    0, 0,
    init_DNSSD_ServiceBase,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DNSSD_ServiceBase,
    release_DNSSD_ServiceBase,
    cast_DNSSD_ServiceBase,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};
