/*
 * 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 "sipAPIQtBluetooth.h"

#line 28 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtBluetooth/qbluetoothtransferrequest.sip"
#include <qbluetoothtransferrequest.h>
#line 29 "/build/pyqt5/src/PyQt5-5.15.7/build/QtBluetooth/sipQtBluetoothQBluetoothTransferRequest.cpp"

#line 28 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtBluetooth/qbluetoothaddress.sip"
#include <qbluetoothaddress.h>
#line 33 "/build/pyqt5/src/PyQt5-5.15.7/build/QtBluetooth/sipQtBluetoothQBluetoothTransferRequest.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 36 "/build/pyqt5/src/PyQt5-5.15.7/build/QtBluetooth/sipQtBluetoothQBluetoothTransferRequest.cpp"


PyDoc_STRVAR(doc_QBluetoothTransferRequest_attribute, "attribute(self, QBluetoothTransferRequest.Attribute, defaultValue: Any = None) -> Any");

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

    {
         ::QBluetoothTransferRequest::Attribute a0;
        const  ::QVariant& a1def = QVariant();
        const  ::QVariant* a1 = &a1def;
        int a1State = 0;
        const  ::QBluetoothTransferRequest *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BE|J1", &sipSelf, sipType_QBluetoothTransferRequest, &sipCpp, sipType_QBluetoothTransferRequest_Attribute, &a0, sipType_QVariant, &a1, &a1State))
        {
             ::QVariant*sipRes;

            sipRes = new  ::QVariant(sipCpp->attribute(a0,*a1));
            sipReleaseType(const_cast< ::QVariant *>(a1), sipType_QVariant, a1State);

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

    sipNoMethod(sipParseErr, sipName_QBluetoothTransferRequest, sipName_attribute, doc_QBluetoothTransferRequest_attribute);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBluetoothTransferRequest_setAttribute, "setAttribute(self, QBluetoothTransferRequest.Attribute, Any)");

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

    {
         ::QBluetoothTransferRequest::Attribute a0;
        const  ::QVariant* a1;
        int a1State = 0;
         ::QBluetoothTransferRequest *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEJ1", &sipSelf, sipType_QBluetoothTransferRequest, &sipCpp, sipType_QBluetoothTransferRequest_Attribute, &a0, sipType_QVariant, &a1, &a1State))
        {
            sipCpp->setAttribute(a0,*a1);
            sipReleaseType(const_cast< ::QVariant *>(a1), sipType_QVariant, a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QBluetoothTransferRequest, sipName_setAttribute, doc_QBluetoothTransferRequest_setAttribute);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBluetoothTransferRequest_address, "address(self) -> QBluetoothAddress");

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

    {
        const  ::QBluetoothTransferRequest *sipCpp;

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

            sipRes = new  ::QBluetoothAddress(sipCpp->address());

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

    sipNoMethod(sipParseErr, sipName_QBluetoothTransferRequest, sipName_address, doc_QBluetoothTransferRequest_address);

    return SIP_NULLPTR;
}


extern "C" {static PyObject *slot_QBluetoothTransferRequest___eq__(PyObject *,PyObject *);}
static PyObject *slot_QBluetoothTransferRequest___eq__(PyObject *sipSelf,PyObject *sipArg)
{
     ::QBluetoothTransferRequest *sipCpp = reinterpret_cast< ::QBluetoothTransferRequest *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QBluetoothTransferRequest));

    if (!sipCpp)
        return SIP_NULLPTR;

    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QBluetoothTransferRequest* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QBluetoothTransferRequest, &a0))
        {
            bool sipRes;

            sipRes = sipCpp-> ::QBluetoothTransferRequest::operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return SIP_NULLPTR;

    return sipPySlotExtend(&sipModuleAPI_QtBluetooth, eq_slot, sipType_QBluetoothTransferRequest, sipSelf, sipArg);
}


extern "C" {static PyObject *slot_QBluetoothTransferRequest___ne__(PyObject *,PyObject *);}
static PyObject *slot_QBluetoothTransferRequest___ne__(PyObject *sipSelf,PyObject *sipArg)
{
     ::QBluetoothTransferRequest *sipCpp = reinterpret_cast< ::QBluetoothTransferRequest *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QBluetoothTransferRequest));

    if (!sipCpp)
        return SIP_NULLPTR;

    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QBluetoothTransferRequest* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QBluetoothTransferRequest, &a0))
        {
            bool sipRes;

            sipRes = sipCpp-> ::QBluetoothTransferRequest::operator!=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return SIP_NULLPTR;

    return sipPySlotExtend(&sipModuleAPI_QtBluetooth, ne_slot, sipType_QBluetoothTransferRequest, sipSelf, sipArg);
}


/* Call the instance's destructor. */
extern "C" {static void release_QBluetoothTransferRequest(void *, int);}
static void release_QBluetoothTransferRequest(void *sipCppV, int)
{
    delete reinterpret_cast< ::QBluetoothTransferRequest *>(sipCppV);
}


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


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


extern "C" {static void assign_QBluetoothTransferRequest(void *, Py_ssize_t, void *);}
static void assign_QBluetoothTransferRequest(void *sipDst, Py_ssize_t sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::QBluetoothTransferRequest *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::QBluetoothTransferRequest *>(sipSrc);
}


extern "C" {static void *copy_QBluetoothTransferRequest(const void *, Py_ssize_t);}
static void *copy_QBluetoothTransferRequest(const void *sipSrc, Py_ssize_t sipSrcIdx)
{
    return new  ::QBluetoothTransferRequest(reinterpret_cast<const  ::QBluetoothTransferRequest *>(sipSrc)[sipSrcIdx]);
}


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


extern "C" {static void *init_type_QBluetoothTransferRequest(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QBluetoothTransferRequest(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
     ::QBluetoothTransferRequest *sipCpp = SIP_NULLPTR;

    {
        const  ::QBluetoothAddress& a0def = QBluetoothAddress();
        const  ::QBluetoothAddress* a0 = &a0def;

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|J9", sipType_QBluetoothAddress, &a0))
        {
            sipCpp = new  ::QBluetoothTransferRequest(*a0);

            return sipCpp;
        }
    }

    {
        const  ::QBluetoothTransferRequest* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "J9", sipType_QBluetoothTransferRequest, &a0))
        {
            sipCpp = new  ::QBluetoothTransferRequest(*a0);

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


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


static PyMethodDef methods_QBluetoothTransferRequest[] = {
    {sipName_address, meth_QBluetoothTransferRequest_address, METH_VARARGS, doc_QBluetoothTransferRequest_address},
    {sipName_attribute, SIP_MLMETH_CAST(meth_QBluetoothTransferRequest_attribute), METH_VARARGS|METH_KEYWORDS, doc_QBluetoothTransferRequest_attribute},
    {sipName_setAttribute, meth_QBluetoothTransferRequest_setAttribute, METH_VARARGS, doc_QBluetoothTransferRequest_setAttribute}
};

static sipEnumMemberDef enummembers_QBluetoothTransferRequest[] = {
    {sipName_DescriptionAttribute, static_cast<int>( ::QBluetoothTransferRequest::DescriptionAttribute), 51},
    {sipName_LengthAttribute, static_cast<int>( ::QBluetoothTransferRequest::LengthAttribute), 51},
    {sipName_NameAttribute, static_cast<int>( ::QBluetoothTransferRequest::NameAttribute), 51},
    {sipName_TimeAttribute, static_cast<int>( ::QBluetoothTransferRequest::TimeAttribute), 51},
    {sipName_TypeAttribute, static_cast<int>( ::QBluetoothTransferRequest::TypeAttribute), 51},
};

PyDoc_STRVAR(doc_QBluetoothTransferRequest, "\1QBluetoothTransferRequest(address: QBluetoothAddress = QBluetoothAddress())\n"
"QBluetoothTransferRequest(QBluetoothTransferRequest)");


static pyqt5ClassPluginDef plugin_QBluetoothTransferRequest = {
    SIP_NULLPTR,
    0,
    SIP_NULLPTR,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_QtBluetooth_QBluetoothTransferRequest = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QBluetoothTransferRequest,
        SIP_NULLPTR,
        &plugin_QBluetoothTransferRequest
    },
    {
        sipNameNr_QBluetoothTransferRequest,
        {0, 0, 1},
        3, methods_QBluetoothTransferRequest,
        5, enummembers_QBluetoothTransferRequest,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QBluetoothTransferRequest,
    -1,
    -1,
    SIP_NULLPTR,
    slots_QBluetoothTransferRequest,
    init_type_QBluetoothTransferRequest,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QBluetoothTransferRequest,
    assign_QBluetoothTransferRequest,
    array_QBluetoothTransferRequest,
    copy_QBluetoothTransferRequest,
    release_QBluetoothTransferRequest,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_QBluetoothTransferRequest,
    sizeof ( ::QBluetoothTransferRequest),
};
