/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.6.2
 *
 * Copyright (c) 2022 Riverbank Computing Limited <info@riverbankcomputing.com>
 * 
 * This file is part of PyQt5.
 * 
 * This file may be used under the terms of the GNU General Public License
 * version 3.0 as published by the Free Software Foundation and appearing in
 * the file LICENSE included in the packaging of this file.  Please review the
 * following information to ensure the GNU General Public License version 3.0
 * requirements will be met: http://www.gnu.org/copyleft/gpl.html.
 * 
 * If you do not wish to use this file under the terms of the GPL version 3.0
 * then you may purchase a commercial license.  For more information contact
 * info@riverbankcomputing.com.
 * 
 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
 * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 */

#include "sipAPIQtNfc.h"

#line 28 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtNfc/qnearfieldtarget.sip"
#include <qnearfieldtarget.h>
#line 29 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldTarget.cpp"

#line 28 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 33 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldTarget.cpp"
#line 28 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtNfc/qnearfieldtarget.sip"
#include <qnearfieldtarget.h>
#line 71 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtNfc/qnearfieldtarget.sip"
#include <qnearfieldtarget.h>
#line 38 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldTarget.cpp"
#line 28 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtNfc/qndefmessage.sip"
#include <qndefmessage.h>
#line 41 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldTarget.cpp"
#line 30 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 44 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldTarget.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 47 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldTarget.cpp"
#line 38 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 50 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldTarget.cpp"
#line 38 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 53 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldTarget.cpp"
#line 28 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtNfc/qnearfieldtarget.sip"
#include <qnearfieldtarget.h>
#line 56 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldTarget.cpp"
#line 109 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qurl.sip"
#include <qurl.h>
#line 59 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldTarget.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 62 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldTarget.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 65 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldTarget.cpp"
#line 247 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 68 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldTarget.cpp"
#line 235 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 71 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldTarget.cpp"
#line 27 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 74 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldTarget.cpp"
#line 149 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 77 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldTarget.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 80 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldTarget.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 83 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldTarget.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 86 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldTarget.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 89 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldTarget.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 92 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldTarget.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 95 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldTarget.cpp"


class sipQNearFieldTarget : public  ::QNearFieldTarget
{
public:
    sipQNearFieldTarget( ::QObject*);
    virtual ~sipQNearFieldTarget();

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool handleResponse(const  ::QNearFieldTarget::RequestId&,const  ::QByteArray&) SIP_OVERRIDE;
    bool waitForRequestCompleted(const  ::QNearFieldTarget::RequestId&,int) SIP_OVERRIDE;
     ::QNearFieldTarget::RequestId sendCommands(const QList< ::QByteArray>&) SIP_OVERRIDE;
     ::QNearFieldTarget::RequestId sendCommand(const  ::QByteArray&) SIP_OVERRIDE;
     ::QNearFieldTarget::RequestId writeNdefMessages(const QList< ::QNdefMessage>&) SIP_OVERRIDE;
     ::QNearFieldTarget::RequestId readNdefMessages() SIP_OVERRIDE;
    bool hasNdefMessage() SIP_OVERRIDE;
     ::QNearFieldTarget::AccessMethods accessMethods() const SIP_OVERRIDE;
     ::QNearFieldTarget::Type type() const SIP_OVERRIDE;
     ::QUrl url() const SIP_OVERRIDE;
     ::QByteArray uid() const SIP_OVERRIDE;
    bool event( ::QEvent*) SIP_OVERRIDE;
    bool eventFilter( ::QObject*, ::QEvent*) SIP_OVERRIDE;
    void timerEvent( ::QTimerEvent*) SIP_OVERRIDE;
    void childEvent( ::QChildEvent*) SIP_OVERRIDE;
    void customEvent( ::QEvent*) SIP_OVERRIDE;
    void connectNotify(const  ::QMetaMethod&) SIP_OVERRIDE;
    void disconnectNotify(const  ::QMetaMethod&) SIP_OVERRIDE;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[18];
};

sipQNearFieldTarget::sipQNearFieldTarget( ::QObject*a0):  ::QNearFieldTarget(a0), sipPySelf(SIP_NULLPTR)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQNearFieldTarget::~sipQNearFieldTarget()
{
    sipInstanceDestroyedEx(&sipPySelf);
}

const QMetaObject *sipQNearFieldTarget::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtNfc_qt_metaobject(sipPySelf,sipType_QNearFieldTarget);

    return  ::QNearFieldTarget::metaObject();
}

int sipQNearFieldTarget::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id =  ::QNearFieldTarget::qt_metacall(_c,_id,_a);

    if (_id >= 0)
    {
        SIP_BLOCK_THREADS
        _id = sip_QtNfc_qt_metacall(sipPySelf,sipType_QNearFieldTarget,_c,_id,_a);
        SIP_UNBLOCK_THREADS
    }

    return _id;
}

void *sipQNearFieldTarget::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtNfc_qt_metacast(sipPySelf, sipType_QNearFieldTarget, _clname, &sipCpp) ? sipCpp :  ::QNearFieldTarget::qt_metacast(_clname));
}

bool sipQNearFieldTarget::handleResponse(const  ::QNearFieldTarget::RequestId& a0,const  ::QByteArray& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[0], &sipPySelf, SIP_NULLPTR, sipName_handleResponse);

    if (!sipMeth)
        return  ::QNearFieldTarget::handleResponse(a0,a1);

    extern bool sipVH_QtNfc_16(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QNearFieldTarget::RequestId&,const  ::QByteArray&);

    return sipVH_QtNfc_16(sipGILState, sipImportedVirtErrorHandlers_QtNfc_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

bool sipQNearFieldTarget::waitForRequestCompleted(const  ::QNearFieldTarget::RequestId& a0,int a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[1], &sipPySelf, SIP_NULLPTR, sipName_waitForRequestCompleted);

    if (!sipMeth)
        return  ::QNearFieldTarget::waitForRequestCompleted(a0,a1);

    extern bool sipVH_QtNfc_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QNearFieldTarget::RequestId&,int);

    return sipVH_QtNfc_15(sipGILState, sipImportedVirtErrorHandlers_QtNfc_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

 ::QNearFieldTarget::RequestId sipQNearFieldTarget::sendCommands(const QList< ::QByteArray>& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[2], &sipPySelf, SIP_NULLPTR, sipName_sendCommands);

    if (!sipMeth)
        return  ::QNearFieldTarget::sendCommands(a0);

    extern  ::QNearFieldTarget::RequestId sipVH_QtNfc_14(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QList< ::QByteArray>&);

    return sipVH_QtNfc_14(sipGILState, sipImportedVirtErrorHandlers_QtNfc_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

 ::QNearFieldTarget::RequestId sipQNearFieldTarget::sendCommand(const  ::QByteArray& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[3], &sipPySelf, SIP_NULLPTR, sipName_sendCommand);

    if (!sipMeth)
        return  ::QNearFieldTarget::sendCommand(a0);

    extern  ::QNearFieldTarget::RequestId sipVH_QtNfc_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QByteArray&);

    return sipVH_QtNfc_13(sipGILState, sipImportedVirtErrorHandlers_QtNfc_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

 ::QNearFieldTarget::RequestId sipQNearFieldTarget::writeNdefMessages(const QList< ::QNdefMessage>& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[4], &sipPySelf, SIP_NULLPTR, sipName_writeNdefMessages);

    if (!sipMeth)
        return  ::QNearFieldTarget::writeNdefMessages(a0);

    extern  ::QNearFieldTarget::RequestId sipVH_QtNfc_12(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QList< ::QNdefMessage>&);

    return sipVH_QtNfc_12(sipGILState, sipImportedVirtErrorHandlers_QtNfc_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

 ::QNearFieldTarget::RequestId sipQNearFieldTarget::readNdefMessages()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[5], &sipPySelf, SIP_NULLPTR, sipName_readNdefMessages);

    if (!sipMeth)
        return  ::QNearFieldTarget::readNdefMessages();

    extern  ::QNearFieldTarget::RequestId sipVH_QtNfc_11(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNfc_11(sipGILState, sipImportedVirtErrorHandlers_QtNfc_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

bool sipQNearFieldTarget::hasNdefMessage()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[6], &sipPySelf, SIP_NULLPTR, sipName_hasNdefMessage);

    if (!sipMeth)
        return  ::QNearFieldTarget::hasNdefMessage();

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

    return sipVH_QtNfc_10(sipGILState, sipImportedVirtErrorHandlers_QtNfc_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

 ::QNearFieldTarget::AccessMethods sipQNearFieldTarget::accessMethods() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, const_cast<char *>(&sipPyMethods[7]), const_cast<sipSimpleWrapper **>(&sipPySelf), sipName_QNearFieldTarget, sipName_accessMethods);

    if (!sipMeth)
        return  ::QNearFieldTarget::AccessMethods();

    extern  ::QNearFieldTarget::AccessMethods sipVH_QtNfc_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNfc_9(sipGILState, sipImportedVirtErrorHandlers_QtNfc_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

 ::QNearFieldTarget::Type sipQNearFieldTarget::type() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, const_cast<char *>(&sipPyMethods[8]), const_cast<sipSimpleWrapper **>(&sipPySelf), sipName_QNearFieldTarget, sipName_type);

    if (!sipMeth)
        return  ::QNearFieldTarget::ProprietaryTag;

    extern  ::QNearFieldTarget::Type sipVH_QtNfc_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNfc_8(sipGILState, sipImportedVirtErrorHandlers_QtNfc_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

 ::QUrl sipQNearFieldTarget::url() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, const_cast<char *>(&sipPyMethods[9]), const_cast<sipSimpleWrapper **>(&sipPySelf), SIP_NULLPTR, sipName_url);

    if (!sipMeth)
        return  ::QNearFieldTarget::url();

    extern  ::QUrl sipVH_QtNfc_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNfc_7(sipGILState, sipImportedVirtErrorHandlers_QtNfc_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

 ::QByteArray sipQNearFieldTarget::uid() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, const_cast<char *>(&sipPyMethods[10]), const_cast<sipSimpleWrapper **>(&sipPySelf), sipName_QNearFieldTarget, sipName_uid);

    if (!sipMeth)
        return  ::QByteArray();

    extern  ::QByteArray sipVH_QtNfc_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNfc_6(sipGILState, sipImportedVirtErrorHandlers_QtNfc_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

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

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[11], &sipPySelf, SIP_NULLPTR, sipName_event);

    if (!sipMeth)
        return  ::QNearFieldTarget::event(a0);

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

    return sipVH_QtNfc_5(sipGILState, sipImportedVirtErrorHandlers_QtNfc_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

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

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[12], &sipPySelf, SIP_NULLPTR, sipName_eventFilter);

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

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

    return sipVH_QtNfc_4(sipGILState, sipImportedVirtErrorHandlers_QtNfc_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

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

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[13], &sipPySelf, SIP_NULLPTR, sipName_timerEvent);

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

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

    sipVH_QtNfc_3(sipGILState, sipImportedVirtErrorHandlers_QtNfc_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

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

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[14], &sipPySelf, SIP_NULLPTR, sipName_childEvent);

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

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

    sipVH_QtNfc_2(sipGILState, sipImportedVirtErrorHandlers_QtNfc_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

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

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[15], &sipPySelf, SIP_NULLPTR, sipName_customEvent);

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

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

    sipVH_QtNfc_1(sipGILState, sipImportedVirtErrorHandlers_QtNfc_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQNearFieldTarget::connectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[16], &sipPySelf, SIP_NULLPTR, sipName_connectNotify);

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

    extern void sipVH_QtNfc_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtNfc_0(sipGILState, sipImportedVirtErrorHandlers_QtNfc_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQNearFieldTarget::disconnectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[17], &sipPySelf, SIP_NULLPTR, sipName_disconnectNotify);

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

    extern void sipVH_QtNfc_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtNfc_0(sipGILState, sipImportedVirtErrorHandlers_QtNfc_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}


PyDoc_STRVAR(doc_QNearFieldTarget_uid, "uid(self) -> QByteArray");

extern "C" {static PyObject *meth_QNearFieldTarget_uid(PyObject *, PyObject *);}
static PyObject *meth_QNearFieldTarget_uid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    PyObject *sipOrigSelf = sipSelf;

    {
        const  ::QNearFieldTarget *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QNearFieldTarget, sipName_uid);
                return SIP_NULLPTR;
            }

            sipRes = new  ::QByteArray(sipCpp->uid());

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

    sipNoMethod(sipParseErr, sipName_QNearFieldTarget, sipName_uid, doc_QNearFieldTarget_uid);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QNearFieldTarget_url, "url(self) -> QUrl");

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

    {
        const  ::QNearFieldTarget *sipCpp;

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

            sipRes = new  ::QUrl((sipSelfWasArg ? sipCpp-> ::QNearFieldTarget::url() : sipCpp->url()));

            return sipConvertFromNewType(sipRes,sipType_QUrl,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QNearFieldTarget, sipName_url, doc_QNearFieldTarget_url);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QNearFieldTarget_type, "type(self) -> QNearFieldTarget.Type");

extern "C" {static PyObject *meth_QNearFieldTarget_type(PyObject *, PyObject *);}
static PyObject *meth_QNearFieldTarget_type(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    PyObject *sipOrigSelf = sipSelf;

    {
        const  ::QNearFieldTarget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNearFieldTarget, &sipCpp))
        {
             ::QNearFieldTarget::Type sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QNearFieldTarget, sipName_type);
                return SIP_NULLPTR;
            }

            sipRes = sipCpp->type();

            return sipConvertFromEnum(static_cast<int>(sipRes), sipType_QNearFieldTarget_Type);
        }
    }

    sipNoMethod(sipParseErr, sipName_QNearFieldTarget, sipName_type, doc_QNearFieldTarget_type);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QNearFieldTarget_accessMethods, "accessMethods(self) -> QNearFieldTarget.AccessMethods");

extern "C" {static PyObject *meth_QNearFieldTarget_accessMethods(PyObject *, PyObject *);}
static PyObject *meth_QNearFieldTarget_accessMethods(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    PyObject *sipOrigSelf = sipSelf;

    {
        const  ::QNearFieldTarget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNearFieldTarget, &sipCpp))
        {
             ::QNearFieldTarget::AccessMethods*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QNearFieldTarget, sipName_accessMethods);
                return SIP_NULLPTR;
            }

            sipRes = new  ::QNearFieldTarget::AccessMethods(sipCpp->accessMethods());

            return sipConvertFromNewType(sipRes,sipType_QNearFieldTarget_AccessMethods,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QNearFieldTarget, sipName_accessMethods, doc_QNearFieldTarget_accessMethods);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QNearFieldTarget_isProcessingCommand, "isProcessingCommand(self) -> bool");

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

    {
        const  ::QNearFieldTarget *sipCpp;

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

            sipRes = sipCpp->isProcessingCommand();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QNearFieldTarget, sipName_isProcessingCommand, doc_QNearFieldTarget_isProcessingCommand);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QNearFieldTarget_hasNdefMessage, "hasNdefMessage(self) -> bool");

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

    {
         ::QNearFieldTarget *sipCpp;

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

            sipRes = (sipSelfWasArg ? sipCpp-> ::QNearFieldTarget::hasNdefMessage() : sipCpp->hasNdefMessage());

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QNearFieldTarget, sipName_hasNdefMessage, doc_QNearFieldTarget_hasNdefMessage);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QNearFieldTarget_readNdefMessages, "readNdefMessages(self) -> QNearFieldTarget.RequestId");

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

    {
         ::QNearFieldTarget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNearFieldTarget, &sipCpp))
        {
             ::QNearFieldTarget::RequestId*sipRes;

            sipRes = new  ::QNearFieldTarget::RequestId((sipSelfWasArg ? sipCpp-> ::QNearFieldTarget::readNdefMessages() : sipCpp->readNdefMessages()));

            return sipConvertFromNewType(sipRes,sipType_QNearFieldTarget_RequestId,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QNearFieldTarget, sipName_readNdefMessages, doc_QNearFieldTarget_readNdefMessages);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QNearFieldTarget_writeNdefMessages, "writeNdefMessages(self, Iterable[QNdefMessage]) -> QNearFieldTarget.RequestId");

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

    {
        const QList< ::QNdefMessage>* a0;
        int a0State = 0;
         ::QNearFieldTarget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QNearFieldTarget, &sipCpp, sipType_QList_0100QNdefMessage, &a0, &a0State))
        {
             ::QNearFieldTarget::RequestId*sipRes;

            sipRes = new  ::QNearFieldTarget::RequestId((sipSelfWasArg ? sipCpp-> ::QNearFieldTarget::writeNdefMessages(*a0) : sipCpp->writeNdefMessages(*a0)));
            sipReleaseType(const_cast<QList< ::QNdefMessage> *>(a0), sipType_QList_0100QNdefMessage, a0State);

            return sipConvertFromNewType(sipRes,sipType_QNearFieldTarget_RequestId,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QNearFieldTarget, sipName_writeNdefMessages, doc_QNearFieldTarget_writeNdefMessages);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QNearFieldTarget_sendCommand, "sendCommand(self, Union[QByteArray, bytes, bytearray]) -> QNearFieldTarget.RequestId");

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

    {
        const  ::QByteArray* a0;
        int a0State = 0;
         ::QNearFieldTarget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QNearFieldTarget, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
             ::QNearFieldTarget::RequestId*sipRes;

            sipRes = new  ::QNearFieldTarget::RequestId((sipSelfWasArg ? sipCpp-> ::QNearFieldTarget::sendCommand(*a0) : sipCpp->sendCommand(*a0)));
            sipReleaseType(const_cast< ::QByteArray *>(a0), sipType_QByteArray, a0State);

            return sipConvertFromNewType(sipRes,sipType_QNearFieldTarget_RequestId,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QNearFieldTarget, sipName_sendCommand, doc_QNearFieldTarget_sendCommand);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QNearFieldTarget_sendCommands, "sendCommands(self, Iterable[Union[QByteArray, bytes, bytearray]]) -> QNearFieldTarget.RequestId");

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

    {
        const QList< ::QByteArray>* a0;
        int a0State = 0;
         ::QNearFieldTarget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QNearFieldTarget, &sipCpp, sipType_QList_0100QByteArray, &a0, &a0State))
        {
             ::QNearFieldTarget::RequestId*sipRes;

            sipRes = new  ::QNearFieldTarget::RequestId((sipSelfWasArg ? sipCpp-> ::QNearFieldTarget::sendCommands(*a0) : sipCpp->sendCommands(*a0)));
            sipReleaseType(const_cast<QList< ::QByteArray> *>(a0), sipType_QList_0100QByteArray, a0State);

            return sipConvertFromNewType(sipRes,sipType_QNearFieldTarget_RequestId,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QNearFieldTarget, sipName_sendCommands, doc_QNearFieldTarget_sendCommands);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QNearFieldTarget_waitForRequestCompleted, "waitForRequestCompleted(self, QNearFieldTarget.RequestId, msecs: int = 5000) -> bool");

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

    {
        const  ::QNearFieldTarget::RequestId* a0;
        int a1 = 5000;
         ::QNearFieldTarget *sipCpp;

        static const char *sipKwdList[] = {
            SIP_NULLPTR,
            sipName_msecs,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9|i", &sipSelf, sipType_QNearFieldTarget, &sipCpp, sipType_QNearFieldTarget_RequestId, &a0, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::QNearFieldTarget::waitForRequestCompleted(*a0,a1) : sipCpp->waitForRequestCompleted(*a0,a1));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QNearFieldTarget, sipName_waitForRequestCompleted, doc_QNearFieldTarget_waitForRequestCompleted);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QNearFieldTarget_requestResponse, "requestResponse(self, QNearFieldTarget.RequestId) -> Any");

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

    {
        const  ::QNearFieldTarget::RequestId* a0;
         ::QNearFieldTarget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QNearFieldTarget, &sipCpp, sipType_QNearFieldTarget_RequestId, &a0))
        {
             ::QVariant*sipRes;

            sipRes = new  ::QVariant(sipCpp->requestResponse(*a0));

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

    sipNoMethod(sipParseErr, sipName_QNearFieldTarget, sipName_requestResponse, doc_QNearFieldTarget_requestResponse);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QNearFieldTarget_setResponseForRequest, "setResponseForRequest(self, QNearFieldTarget.RequestId, Any, emitRequestCompleted: bool = True)");

extern "C" {static PyObject *meth_QNearFieldTarget_setResponseForRequest(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNearFieldTarget_setResponseForRequest(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QNearFieldTarget::RequestId* a0;
        const  ::QVariant* a1;
        int a1State = 0;
        bool a2 = 1;
         ::QNearFieldTarget *sipCpp;

        static const char *sipKwdList[] = {
            SIP_NULLPTR,
            SIP_NULLPTR,
            sipName_emitRequestCompleted,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9J1|b", &sipSelf, sipType_QNearFieldTarget, &sipCpp, sipType_QNearFieldTarget_RequestId, &a0, sipType_QVariant, &a1, &a1State, &a2))
        {
            sipCpp->setResponseForRequest(*a0,*a1,a2);
            sipReleaseType(const_cast< ::QVariant *>(a1), sipType_QVariant, a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QNearFieldTarget, sipName_setResponseForRequest, doc_QNearFieldTarget_setResponseForRequest);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QNearFieldTarget_handleResponse, "handleResponse(self, QNearFieldTarget.RequestId, Union[QByteArray, bytes, bytearray]) -> bool");

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

    {
        const  ::QNearFieldTarget::RequestId* a0;
        const  ::QByteArray* a1;
        int a1State = 0;
         ::QNearFieldTarget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ9J1", &sipSelf, sipType_QNearFieldTarget, &sipCpp, sipType_QNearFieldTarget_RequestId, &a0, sipType_QByteArray, &a1, &a1State))
        {
            bool sipRes;

            sipRes = (sipSelfWasArg ? sipCpp-> ::QNearFieldTarget::handleResponse(*a0,*a1) : sipCpp->handleResponse(*a0,*a1));
            sipReleaseType(const_cast< ::QByteArray *>(a1), sipType_QByteArray, a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QNearFieldTarget, sipName_handleResponse, doc_QNearFieldTarget_handleResponse);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QNearFieldTarget_reportError, "reportError(self, QNearFieldTarget.Error, QNearFieldTarget.RequestId)");

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

    {
         ::QNearFieldTarget::Error a0;
        const  ::QNearFieldTarget::RequestId* a1;
         ::QNearFieldTarget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pEJ9", &sipSelf, sipType_QNearFieldTarget, &sipCpp, sipType_QNearFieldTarget_Error, &a0, sipType_QNearFieldTarget_RequestId, &a1))
        {
            sipCpp->reportError(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QNearFieldTarget, sipName_reportError, doc_QNearFieldTarget_reportError);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QNearFieldTarget_keepConnection, "keepConnection(self) -> bool");

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

    {
        const  ::QNearFieldTarget *sipCpp;

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

            sipRes = sipCpp->keepConnection();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QNearFieldTarget, sipName_keepConnection, doc_QNearFieldTarget_keepConnection);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QNearFieldTarget_setKeepConnection, "setKeepConnection(self, bool) -> bool");

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

    {
        bool a0;
         ::QNearFieldTarget *sipCpp;

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

            sipRes = sipCpp->setKeepConnection(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QNearFieldTarget, sipName_setKeepConnection, doc_QNearFieldTarget_setKeepConnection);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QNearFieldTarget_disconnect, "disconnect(self) -> bool");

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

    {
         ::QNearFieldTarget *sipCpp;

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

            sipRes = sipCpp->disconnect();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QNearFieldTarget, sipName_disconnect, doc_QNearFieldTarget_disconnect);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QNearFieldTarget_maxCommandLength, "maxCommandLength(self) -> int");

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

    {
        const  ::QNearFieldTarget *sipCpp;

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

            sipRes = sipCpp->maxCommandLength();

            return PyLong_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QNearFieldTarget, sipName_maxCommandLength, doc_QNearFieldTarget_maxCommandLength);

    return SIP_NULLPTR;
}


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

    if (targetType == sipType_QNearFieldTarget)
        return sipCppV;

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

    return SIP_NULLPTR;
}


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

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


extern "C" {static void dealloc_QNearFieldTarget(sipSimpleWrapper *);}
static void dealloc_QNearFieldTarget(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQNearFieldTarget *>(sipGetAddress(sipSelf))->sipPySelf = SIP_NULLPTR;

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


extern "C" {static void *init_type_QNearFieldTarget(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QNearFieldTarget(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQNearFieldTarget *sipCpp = SIP_NULLPTR;

    {
         ::QObject* a0 = 0;

        static const char *sipKwdList[] = {
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            sipCpp = new sipQNearFieldTarget(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


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


static PyMethodDef methods_QNearFieldTarget[] = {
    {sipName_accessMethods, meth_QNearFieldTarget_accessMethods, METH_VARARGS, doc_QNearFieldTarget_accessMethods},
    {sipName_disconnect, meth_QNearFieldTarget_disconnect, METH_VARARGS, doc_QNearFieldTarget_disconnect},
    {sipName_handleResponse, meth_QNearFieldTarget_handleResponse, METH_VARARGS, doc_QNearFieldTarget_handleResponse},
    {sipName_hasNdefMessage, meth_QNearFieldTarget_hasNdefMessage, METH_VARARGS, doc_QNearFieldTarget_hasNdefMessage},
    {sipName_isProcessingCommand, meth_QNearFieldTarget_isProcessingCommand, METH_VARARGS, doc_QNearFieldTarget_isProcessingCommand},
    {sipName_keepConnection, meth_QNearFieldTarget_keepConnection, METH_VARARGS, doc_QNearFieldTarget_keepConnection},
    {sipName_maxCommandLength, meth_QNearFieldTarget_maxCommandLength, METH_VARARGS, doc_QNearFieldTarget_maxCommandLength},
    {sipName_readNdefMessages, meth_QNearFieldTarget_readNdefMessages, METH_VARARGS, doc_QNearFieldTarget_readNdefMessages},
    {sipName_reportError, meth_QNearFieldTarget_reportError, METH_VARARGS, doc_QNearFieldTarget_reportError},
    {sipName_requestResponse, meth_QNearFieldTarget_requestResponse, METH_VARARGS, doc_QNearFieldTarget_requestResponse},
    {sipName_sendCommand, meth_QNearFieldTarget_sendCommand, METH_VARARGS, doc_QNearFieldTarget_sendCommand},
    {sipName_sendCommands, meth_QNearFieldTarget_sendCommands, METH_VARARGS, doc_QNearFieldTarget_sendCommands},
    {sipName_setKeepConnection, meth_QNearFieldTarget_setKeepConnection, METH_VARARGS, doc_QNearFieldTarget_setKeepConnection},
    {sipName_setResponseForRequest, SIP_MLMETH_CAST(meth_QNearFieldTarget_setResponseForRequest), METH_VARARGS|METH_KEYWORDS, doc_QNearFieldTarget_setResponseForRequest},
    {sipName_type, meth_QNearFieldTarget_type, METH_VARARGS, doc_QNearFieldTarget_type},
    {sipName_uid, meth_QNearFieldTarget_uid, METH_VARARGS, doc_QNearFieldTarget_uid},
    {sipName_url, meth_QNearFieldTarget_url, METH_VARARGS, doc_QNearFieldTarget_url},
    {sipName_waitForRequestCompleted, SIP_MLMETH_CAST(meth_QNearFieldTarget_waitForRequestCompleted), METH_VARARGS|METH_KEYWORDS, doc_QNearFieldTarget_waitForRequestCompleted},
    {sipName_writeNdefMessages, meth_QNearFieldTarget_writeNdefMessages, METH_VARARGS, doc_QNearFieldTarget_writeNdefMessages}
};

static sipEnumMemberDef enummembers_QNearFieldTarget[] = {
    {sipName_ChecksumMismatchError, static_cast<int>( ::QNearFieldTarget::ChecksumMismatchError), 27},
    {sipName_CommandError, static_cast<int>( ::QNearFieldTarget::CommandError), 27},
    {sipName_InvalidParametersError, static_cast<int>( ::QNearFieldTarget::InvalidParametersError), 27},
    {sipName_LlcpAccess, static_cast<int>( ::QNearFieldTarget::LlcpAccess), 25},
    {sipName_MifareTag, static_cast<int>( ::QNearFieldTarget::MifareTag), 29},
    {sipName_NdefAccess, static_cast<int>( ::QNearFieldTarget::NdefAccess), 25},
    {sipName_NdefReadError, static_cast<int>( ::QNearFieldTarget::NdefReadError), 27},
    {sipName_NdefWriteError, static_cast<int>( ::QNearFieldTarget::NdefWriteError), 27},
    {sipName_NfcTagType1, static_cast<int>( ::QNearFieldTarget::NfcTagType1), 29},
    {sipName_NfcTagType2, static_cast<int>( ::QNearFieldTarget::NfcTagType2), 29},
    {sipName_NfcTagType3, static_cast<int>( ::QNearFieldTarget::NfcTagType3), 29},
    {sipName_NfcTagType4, static_cast<int>( ::QNearFieldTarget::NfcTagType4), 29},
    {sipName_NoError, static_cast<int>( ::QNearFieldTarget::NoError), 27},
    {sipName_NoResponseError, static_cast<int>( ::QNearFieldTarget::NoResponseError), 27},
    {sipName_ProprietaryTag, static_cast<int>( ::QNearFieldTarget::ProprietaryTag), 29},
    {sipName_TagTypeSpecificAccess, static_cast<int>( ::QNearFieldTarget::TagTypeSpecificAccess), 25},
    {sipName_TargetOutOfRangeError, static_cast<int>( ::QNearFieldTarget::TargetOutOfRangeError), 27},
    {sipName_UnknownAccess, static_cast<int>( ::QNearFieldTarget::UnknownAccess), 25},
    {sipName_UnknownError, static_cast<int>( ::QNearFieldTarget::UnknownError), 27},
    {sipName_UnsupportedError, static_cast<int>( ::QNearFieldTarget::UnsupportedError), 27},
};

PyDoc_STRVAR(doc_QNearFieldTarget, "\1QNearFieldTarget(parent: QObject = None)");


/* Define this type's signals. */
static const pyqt5QtSignal signals_QNearFieldTarget[] = {
    {"error(QNearFieldTarget::Error,QNearFieldTarget::RequestId)", "\1error(self, QNearFieldTarget.Error, QNearFieldTarget.RequestId)", SIP_NULLPTR, SIP_NULLPTR},
    {"requestCompleted(QNearFieldTarget::RequestId)", "\1requestCompleted(self, QNearFieldTarget.RequestId)", SIP_NULLPTR, SIP_NULLPTR},
    {"ndefMessagesWritten()", "\1ndefMessagesWritten(self)", SIP_NULLPTR, SIP_NULLPTR},
    {"ndefMessageRead(QNdefMessage)", "\1ndefMessageRead(self, QNdefMessage)", SIP_NULLPTR, SIP_NULLPTR},
    {"disconnected()", "\1disconnected(self)", SIP_NULLPTR, SIP_NULLPTR},
    {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR}
};


static pyqt5ClassPluginDef plugin_QNearFieldTarget = {
    & ::QNearFieldTarget::staticMetaObject,
    0,
    signals_QNearFieldTarget,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_QtNfc_QNearFieldTarget = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QNearFieldTarget,
        SIP_NULLPTR,
        &plugin_QNearFieldTarget
    },
    {
        sipNameNr_QNearFieldTarget,
        {0, 0, 1},
        19, methods_QNearFieldTarget,
        20, enummembers_QNearFieldTarget,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QNearFieldTarget,
    -1,
    -1,
    supers_QNearFieldTarget,
    SIP_NULLPTR,
    init_type_QNearFieldTarget,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QNearFieldTarget,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    release_QNearFieldTarget,
    cast_QNearFieldTarget,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    sizeof ( ::QNearFieldTarget),
};
