/*
 * 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/qnearfieldmanager.sip"
#include <qnearfieldmanager.h>
#line 29 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldManager.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/sipQtNfcQNearFieldManager.cpp"
#line 28 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtNfc/qnearfieldtarget.sip"
#include <qnearfieldtarget.h>
#line 36 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldManager.cpp"
#line 28 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtNfc/qndefrecord.sip"
#include <qndefrecord.h>
#line 39 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldManager.cpp"
#line 30 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 42 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldManager.cpp"
#line 28 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtNfc/qndeffilter.sip"
#include <qndeffilter.h>
#line 45 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldManager.cpp"
#line 28 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtNfc/qnearfieldmanager.sip"
#include <qnearfieldmanager.h>
#line 48 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldManager.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 146 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 53 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldManager.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 56 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldManager.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 59 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldManager.cpp"
#line 247 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 62 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldManager.cpp"
#line 235 "/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/sipQtNfcQNearFieldManager.cpp"
#line 27 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 68 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldManager.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 71 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldManager.cpp"
#line 38 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 74 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldManager.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/sipQtNfcQNearFieldManager.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/sipQtNfcQNearFieldManager.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/sipQtNfcQNearFieldManager.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/sipQtNfcQNearFieldManager.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/sipQtNfcQNearFieldManager.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/sipQtNfcQNearFieldManager.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/sipQtNfcQNearFieldManager.cpp"


class sipQNearFieldManager : public  ::QNearFieldManager
{
public:
    sipQNearFieldManager( ::QObject*);
    virtual ~sipQNearFieldManager();

    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 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:
    sipQNearFieldManager(const sipQNearFieldManager &);
    sipQNearFieldManager &operator = (const sipQNearFieldManager &);

    char sipPyMethods[7];
};

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

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

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

    return  ::QNearFieldManager::metaObject();
}

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

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

    return _id;
}

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

    return (sip_QtNfc_qt_metacast(sipPySelf, sipType_QNearFieldManager, _clname, &sipCpp) ? sipCpp :  ::QNearFieldManager::qt_metacast(_clname));
}

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

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

    if (!sipMeth)
        return  ::QNearFieldManager::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 sipQNearFieldManager::eventFilter( ::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::QNearFieldManager::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 sipQNearFieldManager::timerEvent( ::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::QNearFieldManager::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 sipQNearFieldManager::childEvent( ::QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::QNearFieldManager::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 sipQNearFieldManager::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::QNearFieldManager::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 sipQNearFieldManager::connectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::QNearFieldManager::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 sipQNearFieldManager::disconnectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::QNearFieldManager::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_QNearFieldManager_isAvailable, "isAvailable(self) -> bool");

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

    {
        const  ::QNearFieldManager *sipCpp;

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

            sipRes = sipCpp->isAvailable();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QNearFieldManager, sipName_isAvailable, doc_QNearFieldManager_isAvailable);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QNearFieldManager_setTargetAccessModes, "setTargetAccessModes(self, Union[QNearFieldManager.TargetAccessModes, QNearFieldManager.TargetAccessMode])");

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

    {
         ::QNearFieldManager::TargetAccessModes* a0;
        int a0State = 0;
         ::QNearFieldManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QNearFieldManager, &sipCpp, sipType_QNearFieldManager_TargetAccessModes, &a0, &a0State))
        {
            sipCpp->setTargetAccessModes(*a0);
            sipReleaseType(a0, sipType_QNearFieldManager_TargetAccessModes, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QNearFieldManager, sipName_setTargetAccessModes, doc_QNearFieldManager_setTargetAccessModes);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QNearFieldManager_targetAccessModes, "targetAccessModes(self) -> QNearFieldManager.TargetAccessModes");

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

    {
        const  ::QNearFieldManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNearFieldManager, &sipCpp))
        {
             ::QNearFieldManager::TargetAccessModes*sipRes;

            sipRes = new  ::QNearFieldManager::TargetAccessModes(sipCpp->targetAccessModes());

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

    sipNoMethod(sipParseErr, sipName_QNearFieldManager, sipName_targetAccessModes, doc_QNearFieldManager_targetAccessModes);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QNearFieldManager_startTargetDetection, "startTargetDetection(self) -> bool");

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

    {
         ::QNearFieldManager *sipCpp;

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

            sipRes = sipCpp->startTargetDetection();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QNearFieldManager, sipName_startTargetDetection, doc_QNearFieldManager_startTargetDetection);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QNearFieldManager_stopTargetDetection, "stopTargetDetection(self)");

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

    {
         ::QNearFieldManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNearFieldManager, &sipCpp))
        {
            sipCpp->stopTargetDetection();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QNearFieldManager, sipName_stopTargetDetection, doc_QNearFieldManager_stopTargetDetection);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QNearFieldManager_registerNdefMessageHandler, "registerNdefMessageHandler(self, PYQT_SLOT) -> int\n"
"registerNdefMessageHandler(self, QNdefRecord.TypeNameFormat, Union[QByteArray, bytes, bytearray], PYQT_SLOT) -> int\n"
"registerNdefMessageHandler(self, QNdefFilter, PYQT_SLOT) -> int");

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

    {
        PyObject * a0;
         ::QNearFieldManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BP0", &sipSelf, sipType_QNearFieldManager, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 82 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtNfc/qnearfieldmanager.sip"
        QObject *receiver;
        QByteArray slot;
        
        if ((sipError = pyqt5_qtnfc_get_pyqtslot_parts(a0, &receiver, slot)) == sipErrorNone)
        {
            sipRes = sipCpp->registerNdefMessageHandler(receiver, slot.constData());
        }
        else if (sipError == sipErrorContinue)
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 460 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldManager.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return PyLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    {
         ::QNdefRecord::TypeNameFormat a0;
        const  ::QByteArray* a1;
        int a1State = 0;
        PyObject * a2;
         ::QNearFieldManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEJ1P0", &sipSelf, sipType_QNearFieldManager, &sipCpp, sipType_QNdefRecord_TypeNameFormat, &a0, sipType_QByteArray, &a1, &a1State, &a2))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 97 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtNfc/qnearfieldmanager.sip"
        QObject *receiver;
        QByteArray slot;
        
        if ((sipError = pyqt5_qtnfc_get_pyqtslot_parts(a2, &receiver, slot)) == sipErrorNone)
        {
            sipRes = sipCpp->registerNdefMessageHandler(a0, *a1, receiver, slot.constData());
        }
        else if (sipError == sipErrorContinue)
        {
            sipError = sipBadCallableArg(2, a2);
        }
#line 498 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldManager.cpp"
            sipReleaseType(const_cast< ::QByteArray *>(a1), sipType_QByteArray, a1State);

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return PyLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    {
        const  ::QNdefFilter* a0;
        PyObject * a1;
         ::QNearFieldManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9P0", &sipSelf, sipType_QNearFieldManager, &sipCpp, sipType_QNdefFilter, &a0, &a1))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 112 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtNfc/qnearfieldmanager.sip"
        QObject *receiver;
        QByteArray slot;
        
        if ((sipError = pyqt5_qtnfc_get_pyqtslot_parts(a1, &receiver, slot)) == sipErrorNone)
        {
            sipRes = sipCpp->registerNdefMessageHandler(*a0, receiver, slot.constData());
        }
        else if (sipError == sipErrorContinue)
        {
            sipError = sipBadCallableArg(1, a1);
        }
#line 535 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldManager.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return PyLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    sipNoMethod(sipParseErr, sipName_QNearFieldManager, sipName_registerNdefMessageHandler, doc_QNearFieldManager_registerNdefMessageHandler);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QNearFieldManager_unregisterNdefMessageHandler, "unregisterNdefMessageHandler(self, int) -> bool");

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

    {
        int a0;
         ::QNearFieldManager *sipCpp;

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

            sipRes = sipCpp->unregisterNdefMessageHandler(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QNearFieldManager, sipName_unregisterNdefMessageHandler, doc_QNearFieldManager_unregisterNdefMessageHandler);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QNearFieldManager_isSupported, "isSupported(self) -> bool");

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

    {
        const  ::QNearFieldManager *sipCpp;

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

            sipRes = sipCpp->isSupported();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QNearFieldManager, sipName_isSupported, doc_QNearFieldManager_isSupported);

    return SIP_NULLPTR;
}


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

    if (targetType == sipType_QNearFieldManager)
        return sipCppV;

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

    return SIP_NULLPTR;
}


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

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


extern "C" {static void *array_QNearFieldManager(Py_ssize_t);}
static void *array_QNearFieldManager(Py_ssize_t sipNrElem)
{
    return new  ::QNearFieldManager[sipNrElem];
}


extern "C" {static void array_delete_QNearFieldManager(void *);}
static void array_delete_QNearFieldManager(void *sipCpp)
{
    delete[] reinterpret_cast< ::QNearFieldManager *>(sipCpp);
}


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

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


extern "C" {static void *init_type_QNearFieldManager(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QNearFieldManager(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQNearFieldManager *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 sipQNearFieldManager(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


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


static PyMethodDef methods_QNearFieldManager[] = {
    {sipName_isAvailable, meth_QNearFieldManager_isAvailable, METH_VARARGS, doc_QNearFieldManager_isAvailable},
    {sipName_isSupported, meth_QNearFieldManager_isSupported, METH_VARARGS, doc_QNearFieldManager_isSupported},
    {sipName_registerNdefMessageHandler, meth_QNearFieldManager_registerNdefMessageHandler, METH_VARARGS, doc_QNearFieldManager_registerNdefMessageHandler},
    {sipName_setTargetAccessModes, meth_QNearFieldManager_setTargetAccessModes, METH_VARARGS, doc_QNearFieldManager_setTargetAccessModes},
    {sipName_startTargetDetection, meth_QNearFieldManager_startTargetDetection, METH_VARARGS, doc_QNearFieldManager_startTargetDetection},
    {sipName_stopTargetDetection, meth_QNearFieldManager_stopTargetDetection, METH_VARARGS, doc_QNearFieldManager_stopTargetDetection},
    {sipName_targetAccessModes, meth_QNearFieldManager_targetAccessModes, METH_VARARGS, doc_QNearFieldManager_targetAccessModes},
    {sipName_unregisterNdefMessageHandler, meth_QNearFieldManager_unregisterNdefMessageHandler, METH_VARARGS, doc_QNearFieldManager_unregisterNdefMessageHandler}
};

static sipEnumMemberDef enummembers_QNearFieldManager[] = {
    {sipName_NdefReadTargetAccess, static_cast<int>( ::QNearFieldManager::NdefReadTargetAccess), 17},
    {sipName_NdefWriteTargetAccess, static_cast<int>( ::QNearFieldManager::NdefWriteTargetAccess), 17},
    {sipName_NoTargetAccess, static_cast<int>( ::QNearFieldManager::NoTargetAccess), 17},
    {sipName_Offline, static_cast<int>(::QNearFieldManager::AdapterState::Offline), 16},
    {sipName_Online, static_cast<int>(::QNearFieldManager::AdapterState::Online), 16},
    {sipName_TagTypeSpecificTargetAccess, static_cast<int>( ::QNearFieldManager::TagTypeSpecificTargetAccess), 17},
    {sipName_TurningOff, static_cast<int>(::QNearFieldManager::AdapterState::TurningOff), 16},
    {sipName_TurningOn, static_cast<int>(::QNearFieldManager::AdapterState::TurningOn), 16},
};

PyDoc_STRVAR(doc_QNearFieldManager, "\1QNearFieldManager(parent: QObject = None)");


/* Define this type's signals. */
static const pyqt5QtSignal signals_QNearFieldManager[] = {
    {"adapterStateChanged(AdapterState)|(QNearFieldManager::AdapterState)", "\1adapterStateChanged(self, QNearFieldManager.AdapterState)", SIP_NULLPTR, SIP_NULLPTR},
    {"targetLost(QNearFieldTarget*)", "\1targetLost(self, QNearFieldTarget)", SIP_NULLPTR, SIP_NULLPTR},
    {"targetDetected(QNearFieldTarget*)", "\1targetDetected(self, QNearFieldTarget)", SIP_NULLPTR, SIP_NULLPTR},
    {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR}
};


static pyqt5ClassPluginDef plugin_QNearFieldManager = {
    & ::QNearFieldManager::staticMetaObject,
    0,
    signals_QNearFieldManager,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_QtNfc_QNearFieldManager = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QNearFieldManager,
        SIP_NULLPTR,
        &plugin_QNearFieldManager
    },
    {
        sipNameNr_QNearFieldManager,
        {0, 0, 1},
        8, methods_QNearFieldManager,
        8, enummembers_QNearFieldManager,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QNearFieldManager,
    -1,
    -1,
    supers_QNearFieldManager,
    SIP_NULLPTR,
    init_type_QNearFieldManager,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QNearFieldManager,
    SIP_NULLPTR,
    array_QNearFieldManager,
    SIP_NULLPTR,
    release_QNearFieldManager,
    cast_QNearFieldManager,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_QNearFieldManager,
    sizeof ( ::QNearFieldManager),
};
