/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.15.3
 *
 * Copyright (c) 2026 Riverbank Computing Limited <info@riverbankcomputing.com>
 * 
 * This file is part of PyQt6.
 * 
 * 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/pyqt6/src/pyqt6-6.11.0/sip/QtBluetooth/qbluetoothaddress.sip"
#include <qbluetoothaddress.h>
#line 29 "/build/pyqt6/src/pyqt6-6.11.0/build/QtBluetooth/sipQtBluetoothQBluetoothAddress.cpp"

#line 24 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 33 "/build/pyqt6/src/pyqt6-6.11.0/build/QtBluetooth/sipQtBluetoothQBluetoothAddress.cpp"


PyDoc_STRVAR(doc_QBluetoothAddress_isNull, "isNull(self) -> bool");

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

    {
        const ::QBluetoothAddress *sipCpp;

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

            sipRes = sipCpp->isNull();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QBluetoothAddress, sipName_isNull, doc_QBluetoothAddress_isNull);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBluetoothAddress_clear, "clear(self)");

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

    {
        ::QBluetoothAddress *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QBluetoothAddress, sipName_clear, doc_QBluetoothAddress_clear);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBluetoothAddress_toUInt64, "toUInt64(self) -> int");

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

    {
        const ::QBluetoothAddress *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QBluetoothAddress, &sipCpp))
        {
            ::quint64 sipRes;

            sipRes = sipCpp->toUInt64();

            return PyLong_FromUnsignedLongLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QBluetoothAddress, sipName_toUInt64, doc_QBluetoothAddress_toUInt64);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBluetoothAddress_toString, "toString(self) -> str");

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

    {
        const ::QBluetoothAddress *sipCpp;

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

            sipRes = new ::QString(sipCpp->toString());

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

    sipNoMethod(sipParseErr, sipName_QBluetoothAddress, sipName_toString, doc_QBluetoothAddress_toString);

    return SIP_NULLPTR;
}


extern "C" {static PyObject *slot_QBluetoothAddress___ge__(PyObject *, PyObject *);}
static PyObject *slot_QBluetoothAddress___ge__(PyObject *sipSelf, PyObject *sipArg)
{
    ::QBluetoothAddress *sipCpp = reinterpret_cast< ::QBluetoothAddress *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf, sipType_QBluetoothAddress));

    if (!sipCpp)
        return SIP_NULLPTR;

    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const ::QBluetoothAddress* a0;

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

            sipRes = !operator<((*sipCpp), *a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    return sipPySlotExtend(&sipModuleAPI_QtBluetooth, ge_slot, sipType_QBluetoothAddress, sipSelf, sipArg);
}


extern "C" {static PyObject *slot_QBluetoothAddress___lt__(PyObject *, PyObject *);}
static PyObject *slot_QBluetoothAddress___lt__(PyObject *sipSelf, PyObject *sipArg)
{
    ::QBluetoothAddress *sipCpp = reinterpret_cast< ::QBluetoothAddress *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf, sipType_QBluetoothAddress));

    if (!sipCpp)
        return SIP_NULLPTR;

    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const ::QBluetoothAddress* a0;

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

            sipRes = operator<((*sipCpp), *a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    return sipPySlotExtend(&sipModuleAPI_QtBluetooth, lt_slot, sipType_QBluetoothAddress, sipSelf, sipArg);
}


extern "C" {static PyObject *slot_QBluetoothAddress___eq__(PyObject *, PyObject *);}
static PyObject *slot_QBluetoothAddress___eq__(PyObject *sipSelf, PyObject *sipArg)
{
    ::QBluetoothAddress *sipCpp = reinterpret_cast< ::QBluetoothAddress *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf, sipType_QBluetoothAddress));

    if (!sipCpp)
        return SIP_NULLPTR;

    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const ::QBluetoothAddress* a0;

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

            sipRes = operator==((*sipCpp), *a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

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


extern "C" {static PyObject *slot_QBluetoothAddress___ne__(PyObject *, PyObject *);}
static PyObject *slot_QBluetoothAddress___ne__(PyObject *sipSelf, PyObject *sipArg)
{
    ::QBluetoothAddress *sipCpp = reinterpret_cast< ::QBluetoothAddress *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf, sipType_QBluetoothAddress));

    if (!sipCpp)
        return SIP_NULLPTR;

    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const ::QBluetoothAddress* a0;

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

            sipRes = operator!=((*sipCpp), *a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

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


extern "C" {static Py_hash_t slot_QBluetoothAddress___hash__(PyObject *);}
static Py_hash_t slot_QBluetoothAddress___hash__(PyObject *sipSelf)
{
    ::QBluetoothAddress *sipCpp = reinterpret_cast< ::QBluetoothAddress *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf, sipType_QBluetoothAddress));

    if (!sipCpp)
        return 0;


    {
        {
            Py_hash_t sipRes = 0;

#line 44 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtBluetooth/qbluetoothaddress.sip"
        sipRes = qHash(*sipCpp);
#line 270 "/build/pyqt6/src/pyqt6-6.11.0/build/QtBluetooth/sipQtBluetoothQBluetoothAddress.cpp"

            return sipRes;
        }
    }

    return 0;
}


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


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


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


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


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


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


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

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, ""))
        {
            sipCpp = new ::QBluetoothAddress();

            return sipCpp;
        }
    }

    {
        ::quint64 a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "o", &a0))
        {
            sipCpp = new ::QBluetoothAddress(a0);

            return sipCpp;
        }
    }

    {
        const ::QString* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "J1", sipType_QString, &a0, &a0State))
        {
            sipCpp = new ::QBluetoothAddress(*a0);
            sipReleaseType(const_cast< ::QString *>(a0), sipType_QString, a0State);

            return sipCpp;
        }
    }

    {
        const ::QBluetoothAddress* a0;

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

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QBluetoothAddress[] = {
    {(void *)slot_QBluetoothAddress___ge__, ge_slot},
    {(void *)slot_QBluetoothAddress___lt__, lt_slot},
    {(void *)slot_QBluetoothAddress___eq__, eq_slot},
    {(void *)slot_QBluetoothAddress___ne__, ne_slot},
    {(void *)slot_QBluetoothAddress___hash__, hash_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QBluetoothAddress[] = {
    {sipName_clear, meth_QBluetoothAddress_clear, METH_VARARGS, doc_QBluetoothAddress_clear},
    {sipName_isNull, meth_QBluetoothAddress_isNull, METH_VARARGS, doc_QBluetoothAddress_isNull},
    {sipName_toString, meth_QBluetoothAddress_toString, METH_VARARGS, doc_QBluetoothAddress_toString},
    {sipName_toUInt64, meth_QBluetoothAddress_toUInt64, METH_VARARGS, doc_QBluetoothAddress_toUInt64}
};

PyDoc_STRVAR(doc_QBluetoothAddress, "\1QBluetoothAddress()\n"
"QBluetoothAddress(address: int)\n"
"QBluetoothAddress(address: str|None)\n"
"QBluetoothAddress(other: QBluetoothAddress)");


sipClassTypeDef sipTypeDef_QtBluetooth_QBluetoothAddress = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QBluetoothAddress,
        SIP_NULLPTR,
        SIP_NULLPTR,
    },
    {
        sipNameNr_QBluetoothAddress,
        {0, 0, 1},
        4, methods_QBluetoothAddress,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QBluetoothAddress,
    -1,
    sipNameNr_PyQt6_sip_simplewrapper,
    SIP_NULLPTR,
    slots_QBluetoothAddress,
    init_type_QBluetoothAddress,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QBluetoothAddress,
    assign_QBluetoothAddress,
    array_QBluetoothAddress,
    copy_QBluetoothAddress,
    release_QBluetoothAddress,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_QBluetoothAddress,
    sizeof (::QBluetoothAddress),
};
