/*
 * 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/qnearfieldsharetarget.sip"
#include <qnearfieldsharetarget.h>
#line 29 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldShareTarget.cpp"

#line 28 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtNfc/qnearfieldsharemanager.sip"
#include <qnearfieldsharemanager.h>
#line 33 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldShareTarget.cpp"
#line 28 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtNfc/qndefmessage.sip"
#include <qndefmessage.h>
#line 36 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldShareTarget.cpp"
#line 38 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 39 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldShareTarget.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 42 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldShareTarget.cpp"
#line 28 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtNfc/qnearfieldsharemanager.sip"
#include <qnearfieldsharemanager.h>
#line 45 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldShareTarget.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 50 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldShareTarget.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 53 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldShareTarget.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 56 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldShareTarget.cpp"
#line 247 "/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/sipQtNfcQNearFieldShareTarget.cpp"
#line 235 "/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/sipQtNfcQNearFieldShareTarget.cpp"
#line 28 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 65 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldShareTarget.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/sipQtNfcQNearFieldShareTarget.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/sipQtNfcQNearFieldShareTarget.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/sipQtNfcQNearFieldShareTarget.cpp"
#line 30 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 77 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldShareTarget.cpp"
#line 149 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 80 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldShareTarget.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 83 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldShareTarget.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 86 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldShareTarget.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 89 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldShareTarget.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 92 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldShareTarget.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 95 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldShareTarget.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 98 "/build/pyqt5/src/PyQt5-5.15.7/build/QtNfc/sipQtNfcQNearFieldShareTarget.cpp"


PyDoc_STRVAR(doc_QNearFieldShareTarget_shareModes, "shareModes(self) -> QNearFieldShareManager.ShareModes");

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

    {
        const  ::QNearFieldShareTarget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNearFieldShareTarget, &sipCpp))
        {
             ::QNearFieldShareManager::ShareModes*sipRes;

            sipRes = new  ::QNearFieldShareManager::ShareModes(sipCpp->shareModes());

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

    sipNoMethod(sipParseErr, sipName_QNearFieldShareTarget, sipName_shareModes, doc_QNearFieldShareTarget_shareModes);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QNearFieldShareTarget_share, "share(self, QNdefMessage) -> bool\n"
"share(self, Iterable[QFileInfo]) -> bool");

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

    {
        const  ::QNdefMessage* a0;
         ::QNearFieldShareTarget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QNearFieldShareTarget, &sipCpp, sipType_QNdefMessage, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->share(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QList< ::QFileInfo>* a0;
        int a0State = 0;
         ::QNearFieldShareTarget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QNearFieldShareTarget, &sipCpp, sipType_QList_0100QFileInfo, &a0, &a0State))
        {
            bool sipRes;

            sipRes = sipCpp->share(*a0);
            sipReleaseType(const_cast<QList< ::QFileInfo> *>(a0), sipType_QList_0100QFileInfo, a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QNearFieldShareTarget, sipName_share, doc_QNearFieldShareTarget_share);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QNearFieldShareTarget_cancel, "cancel(self)");

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

    {
         ::QNearFieldShareTarget *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QNearFieldShareTarget, sipName_cancel, doc_QNearFieldShareTarget_cancel);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QNearFieldShareTarget_isShareInProgress, "isShareInProgress(self) -> bool");

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

    {
        const  ::QNearFieldShareTarget *sipCpp;

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

            sipRes = sipCpp->isShareInProgress();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QNearFieldShareTarget, sipName_isShareInProgress, doc_QNearFieldShareTarget_isShareInProgress);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QNearFieldShareTarget_shareError, "shareError(self) -> QNearFieldShareManager.ShareError");

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

    {
        const  ::QNearFieldShareTarget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNearFieldShareTarget, &sipCpp))
        {
             ::QNearFieldShareManager::ShareError sipRes;

            sipRes = sipCpp->shareError();

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

    sipNoMethod(sipParseErr, sipName_QNearFieldShareTarget, sipName_shareError, doc_QNearFieldShareTarget_shareError);

    return SIP_NULLPTR;
}


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

    if (targetType == sipType_QNearFieldShareTarget)
        return sipCppV;

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

    return SIP_NULLPTR;
}


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

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


extern "C" {static void dealloc_QNearFieldShareTarget(sipSimpleWrapper *);}
static void dealloc_QNearFieldShareTarget(sipSimpleWrapper *sipSelf)
{
    if (sipIsOwnedByPython(sipSelf))
    {
        release_QNearFieldShareTarget(sipGetAddress(sipSelf), 0);
    }
}


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


static PyMethodDef methods_QNearFieldShareTarget[] = {
    {sipName_cancel, meth_QNearFieldShareTarget_cancel, METH_VARARGS, doc_QNearFieldShareTarget_cancel},
    {sipName_isShareInProgress, meth_QNearFieldShareTarget_isShareInProgress, METH_VARARGS, doc_QNearFieldShareTarget_isShareInProgress},
    {sipName_share, meth_QNearFieldShareTarget_share, METH_VARARGS, doc_QNearFieldShareTarget_share},
    {sipName_shareError, meth_QNearFieldShareTarget_shareError, METH_VARARGS, doc_QNearFieldShareTarget_shareError},
    {sipName_shareModes, meth_QNearFieldShareTarget_shareModes, METH_VARARGS, doc_QNearFieldShareTarget_shareModes}
};


/* Define this type's signals. */
static const pyqt5QtSignal signals_QNearFieldShareTarget[] = {
    {"shareFinished()", "\1shareFinished(self)", SIP_NULLPTR, SIP_NULLPTR},
    {"error(QNearFieldShareManager::ShareError)", "\1error(self, QNearFieldShareManager.ShareError)", SIP_NULLPTR, SIP_NULLPTR},
    {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR}
};


static pyqt5ClassPluginDef plugin_QNearFieldShareTarget = {
    & ::QNearFieldShareTarget::staticMetaObject,
    0,
    signals_QNearFieldShareTarget,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_QtNfc_QNearFieldShareTarget = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QNearFieldShareTarget,
        SIP_NULLPTR,
        &plugin_QNearFieldShareTarget
    },
    {
        sipNameNr_QNearFieldShareTarget,
        {0, 0, 1},
        5, methods_QNearFieldShareTarget,
        0, SIP_NULLPTR,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    SIP_NULLPTR,
    -1,
    -1,
    supers_QNearFieldShareTarget,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QNearFieldShareTarget,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    release_QNearFieldShareTarget,
    cast_QNearFieldShareTarget,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    0,
};
