/*
 * 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/qbluetoothdevicediscoveryagent.sip"
#include <qbluetoothdevicediscoveryagent.h>
#line 29 "/build/pyqt6/src/pyqt6-6.11.0/build/QtBluetooth/sipQtBluetoothQBluetoothDeviceDiscoveryAgent.cpp"

#line 28 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 33 "/build/pyqt6/src/pyqt6-6.11.0/build/QtBluetooth/sipQtBluetoothQBluetoothDeviceDiscoveryAgent.cpp"
#line 28 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtBluetooth/qbluetoothaddress.sip"
#include <qbluetoothaddress.h>
#line 36 "/build/pyqt6/src/pyqt6-6.11.0/build/QtBluetooth/sipQtBluetoothQBluetoothDeviceDiscoveryAgent.cpp"
#line 25 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qflags.sip"
#include <qglobal.h>
#line 39 "/build/pyqt6/src/pyqt6-6.11.0/build/QtBluetooth/sipQtBluetoothQBluetoothDeviceDiscoveryAgent.cpp"
#line 28 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtBluetooth/qbluetoothdeviceinfo.sip"
#include <qbluetoothdeviceinfo.h>
#line 42 "/build/pyqt6/src/pyqt6-6.11.0/build/QtBluetooth/sipQtBluetoothQBluetoothDeviceDiscoveryAgent.cpp"
#line 25 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qflags.sip"
#include <qglobal.h>
#line 45 "/build/pyqt6/src/pyqt6-6.11.0/build/QtBluetooth/sipQtBluetoothQBluetoothDeviceDiscoveryAgent.cpp"
#line 28 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 48 "/build/pyqt6/src/pyqt6-6.11.0/build/QtBluetooth/sipQtBluetoothQBluetoothDeviceDiscoveryAgent.cpp"
#line 24 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 51 "/build/pyqt6/src/pyqt6-6.11.0/build/QtBluetooth/sipQtBluetoothQBluetoothDeviceDiscoveryAgent.cpp"
#line 26 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 154 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 56 "/build/pyqt6/src/pyqt6-6.11.0/build/QtBluetooth/sipQtBluetoothQBluetoothDeviceDiscoveryAgent.cpp"
#line 26 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 59 "/build/pyqt6/src/pyqt6-6.11.0/build/QtBluetooth/sipQtBluetoothQBluetoothDeviceDiscoveryAgent.cpp"
#line 26 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 62 "/build/pyqt6/src/pyqt6-6.11.0/build/QtBluetooth/sipQtBluetoothQBluetoothDeviceDiscoveryAgent.cpp"
#line 277 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 65 "/build/pyqt6/src/pyqt6-6.11.0/build/QtBluetooth/sipQtBluetoothQBluetoothDeviceDiscoveryAgent.cpp"
#line 254 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 68 "/build/pyqt6/src/pyqt6-6.11.0/build/QtBluetooth/sipQtBluetoothQBluetoothDeviceDiscoveryAgent.cpp"
#line 26 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 71 "/build/pyqt6/src/pyqt6-6.11.0/build/QtBluetooth/sipQtBluetoothQBluetoothDeviceDiscoveryAgent.cpp"
#line 28 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 74 "/build/pyqt6/src/pyqt6-6.11.0/build/QtBluetooth/sipQtBluetoothQBluetoothDeviceDiscoveryAgent.cpp"
#line 30 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 77 "/build/pyqt6/src/pyqt6-6.11.0/build/QtBluetooth/sipQtBluetoothQBluetoothDeviceDiscoveryAgent.cpp"
#line 135 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 80 "/build/pyqt6/src/pyqt6-6.11.0/build/QtBluetooth/sipQtBluetoothQBluetoothDeviceDiscoveryAgent.cpp"
#line 26 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 154 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 85 "/build/pyqt6/src/pyqt6-6.11.0/build/QtBluetooth/sipQtBluetoothQBluetoothDeviceDiscoveryAgent.cpp"
#line 26 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 88 "/build/pyqt6/src/pyqt6-6.11.0/build/QtBluetooth/sipQtBluetoothQBluetoothDeviceDiscoveryAgent.cpp"
#line 26 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qanystringview.sip"
#include <qanystringview.h>
#line 91 "/build/pyqt6/src/pyqt6-6.11.0/build/QtBluetooth/sipQtBluetoothQBluetoothDeviceDiscoveryAgent.cpp"
#line 25 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qflags.sip"
#include <qglobal.h>
#line 94 "/build/pyqt6/src/pyqt6-6.11.0/build/QtBluetooth/sipQtBluetoothQBluetoothDeviceDiscoveryAgent.cpp"
#line 26 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 97 "/build/pyqt6/src/pyqt6-6.11.0/build/QtBluetooth/sipQtBluetoothQBluetoothDeviceDiscoveryAgent.cpp"
#line 26 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 100 "/build/pyqt6/src/pyqt6-6.11.0/build/QtBluetooth/sipQtBluetoothQBluetoothDeviceDiscoveryAgent.cpp"


class sipQBluetoothDeviceDiscoveryAgent : public ::QBluetoothDeviceDiscoveryAgent
{
public:
    sipQBluetoothDeviceDiscoveryAgent(::QObject*);
    sipQBluetoothDeviceDiscoveryAgent(const ::QBluetoothAddress&, ::QObject*);
    virtual ~sipQBluetoothDeviceDiscoveryAgent();

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

    char sipPyMethods[7];
};

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

sipQBluetoothDeviceDiscoveryAgent::sipQBluetoothDeviceDiscoveryAgent(const ::QBluetoothAddress& a0, ::QObject*a1): ::QBluetoothDeviceDiscoveryAgent(a0, a1), sipPySelf(SIP_NULLPTR)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipQBluetoothDeviceDiscoveryAgent::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtBluetooth_qt_metaobject(sipPySelf, sipType_QBluetoothDeviceDiscoveryAgent);

    return ::QBluetoothDeviceDiscoveryAgent::metaObject();
}

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

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

    return _id;
}

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

    return (sip_QtBluetooth_qt_metacast(sipPySelf, sipType_QBluetoothDeviceDiscoveryAgent, _clname, &sipCpp) ? sipCpp : ::QBluetoothDeviceDiscoveryAgent::qt_metacast(_clname));
}

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

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

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

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

    return sipVH_QtBluetooth_5(sipGILState, sipImportedVirtErrorHandlers_QtBluetooth_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

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

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

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

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

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

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

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

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

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

    sipVH_QtBluetooth_3(sipGILState, sipImportedVirtErrorHandlers_QtBluetooth_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

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

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

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

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

    sipVH_QtBluetooth_2(sipGILState, sipImportedVirtErrorHandlers_QtBluetooth_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

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

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

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

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

    sipVH_QtBluetooth_1(sipGILState, sipImportedVirtErrorHandlers_QtBluetooth_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

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

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

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

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

    sipVH_QtBluetooth_0(sipGILState, sipImportedVirtErrorHandlers_QtBluetooth_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

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

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

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

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

    sipVH_QtBluetooth_0(sipGILState, sipImportedVirtErrorHandlers_QtBluetooth_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}


PyDoc_STRVAR(doc_QBluetoothDeviceDiscoveryAgent_isActive, "isActive(self) -> bool");

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

    {
        const ::QBluetoothDeviceDiscoveryAgent *sipCpp;

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

            sipRes = sipCpp->isActive();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QBluetoothDeviceDiscoveryAgent, sipName_isActive, doc_QBluetoothDeviceDiscoveryAgent_isActive);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBluetoothDeviceDiscoveryAgent_error, "error(self) -> QBluetoothDeviceDiscoveryAgent.Error");

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

    {
        const ::QBluetoothDeviceDiscoveryAgent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QBluetoothDeviceDiscoveryAgent, &sipCpp))
        {
            ::QBluetoothDeviceDiscoveryAgent::Error sipRes;

            sipRes = sipCpp->error();

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

    sipNoMethod(sipParseErr, sipName_QBluetoothDeviceDiscoveryAgent, sipName_error, doc_QBluetoothDeviceDiscoveryAgent_error);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBluetoothDeviceDiscoveryAgent_errorString, "errorString(self) -> str");

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

    {
        const ::QBluetoothDeviceDiscoveryAgent *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QBluetoothDeviceDiscoveryAgent, sipName_errorString, doc_QBluetoothDeviceDiscoveryAgent_errorString);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBluetoothDeviceDiscoveryAgent_discoveredDevices, "discoveredDevices(self) -> list[QBluetoothDeviceInfo]");

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

    {
        const ::QBluetoothDeviceDiscoveryAgent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QBluetoothDeviceDiscoveryAgent, &sipCpp))
        {
            QList< ::QBluetoothDeviceInfo>*sipRes;

            sipRes = new QList< ::QBluetoothDeviceInfo>(sipCpp->discoveredDevices());

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

    sipNoMethod(sipParseErr, sipName_QBluetoothDeviceDiscoveryAgent, sipName_discoveredDevices, doc_QBluetoothDeviceDiscoveryAgent_discoveredDevices);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBluetoothDeviceDiscoveryAgent_start, "start(self)\n"
"start(self, method: QBluetoothDeviceDiscoveryAgent.DiscoveryMethod)");

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

    {
        ::QBluetoothDeviceDiscoveryAgent *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        ::QBluetoothDeviceDiscoveryAgent::DiscoveryMethods* a0;
        int a0State = 0;
        ::QBluetoothDeviceDiscoveryAgent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QBluetoothDeviceDiscoveryAgent, &sipCpp, sipType_QFlags_0100QBluetoothDeviceDiscoveryAgent_DiscoveryMethod, &a0, &a0State))
        {
            sipCpp->start(*a0);
            sipReleaseType(a0, sipType_QFlags_0100QBluetoothDeviceDiscoveryAgent_DiscoveryMethod, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QBluetoothDeviceDiscoveryAgent, sipName_start, doc_QBluetoothDeviceDiscoveryAgent_start);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBluetoothDeviceDiscoveryAgent_stop, "stop(self)");

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

    {
        ::QBluetoothDeviceDiscoveryAgent *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QBluetoothDeviceDiscoveryAgent, sipName_stop, doc_QBluetoothDeviceDiscoveryAgent_stop);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBluetoothDeviceDiscoveryAgent_setLowEnergyDiscoveryTimeout, "setLowEnergyDiscoveryTimeout(self, msTimeout: int)");

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

    {
        int a0;
        ::QBluetoothDeviceDiscoveryAgent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QBluetoothDeviceDiscoveryAgent, &sipCpp, &a0))
        {
            sipCpp->setLowEnergyDiscoveryTimeout(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QBluetoothDeviceDiscoveryAgent, sipName_setLowEnergyDiscoveryTimeout, doc_QBluetoothDeviceDiscoveryAgent_setLowEnergyDiscoveryTimeout);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBluetoothDeviceDiscoveryAgent_lowEnergyDiscoveryTimeout, "lowEnergyDiscoveryTimeout(self) -> int");

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

    {
        const ::QBluetoothDeviceDiscoveryAgent *sipCpp;

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

            sipRes = sipCpp->lowEnergyDiscoveryTimeout();

            return PyLong_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QBluetoothDeviceDiscoveryAgent, sipName_lowEnergyDiscoveryTimeout, doc_QBluetoothDeviceDiscoveryAgent_lowEnergyDiscoveryTimeout);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBluetoothDeviceDiscoveryAgent_supportedDiscoveryMethods, "supportedDiscoveryMethods() -> QBluetoothDeviceDiscoveryAgent.DiscoveryMethod");

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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, "C", &sipSelf))
        {
            ::QBluetoothDeviceDiscoveryAgent::DiscoveryMethods*sipRes;

            sipRes = new ::QBluetoothDeviceDiscoveryAgent::DiscoveryMethods(::QBluetoothDeviceDiscoveryAgent::supportedDiscoveryMethods());

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

    sipNoMethod(sipParseErr, sipName_QBluetoothDeviceDiscoveryAgent, sipName_supportedDiscoveryMethods, doc_QBluetoothDeviceDiscoveryAgent_supportedDiscoveryMethods);

    return SIP_NULLPTR;
}


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

    if (targetType == sipType_QBluetoothDeviceDiscoveryAgent)
        return sipCppV;

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

    return SIP_NULLPTR;
}


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

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


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


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


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

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


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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const ::QBluetoothAddress* a0;
        ::QObject* a1 = 0;

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J9|JH", sipType_QBluetoothAddress, &a0, sipType_QObject, &a1, sipOwner))
        {
            sipCpp = new sipQBluetoothDeviceDiscoveryAgent(*a0, a1);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


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


static PyMethodDef methods_QBluetoothDeviceDiscoveryAgent[] = {
    {sipName_discoveredDevices, meth_QBluetoothDeviceDiscoveryAgent_discoveredDevices, METH_VARARGS, doc_QBluetoothDeviceDiscoveryAgent_discoveredDevices},
    {sipName_error, meth_QBluetoothDeviceDiscoveryAgent_error, METH_VARARGS, doc_QBluetoothDeviceDiscoveryAgent_error},
    {sipName_errorString, meth_QBluetoothDeviceDiscoveryAgent_errorString, METH_VARARGS, doc_QBluetoothDeviceDiscoveryAgent_errorString},
    {sipName_isActive, meth_QBluetoothDeviceDiscoveryAgent_isActive, METH_VARARGS, doc_QBluetoothDeviceDiscoveryAgent_isActive},
    {sipName_lowEnergyDiscoveryTimeout, meth_QBluetoothDeviceDiscoveryAgent_lowEnergyDiscoveryTimeout, METH_VARARGS, doc_QBluetoothDeviceDiscoveryAgent_lowEnergyDiscoveryTimeout},
    {sipName_setLowEnergyDiscoveryTimeout, meth_QBluetoothDeviceDiscoveryAgent_setLowEnergyDiscoveryTimeout, METH_VARARGS, doc_QBluetoothDeviceDiscoveryAgent_setLowEnergyDiscoveryTimeout},
    {sipName_start, meth_QBluetoothDeviceDiscoveryAgent_start, METH_VARARGS, doc_QBluetoothDeviceDiscoveryAgent_start},
    {sipName_stop, meth_QBluetoothDeviceDiscoveryAgent_stop, METH_VARARGS, doc_QBluetoothDeviceDiscoveryAgent_stop},
    {sipName_supportedDiscoveryMethods, meth_QBluetoothDeviceDiscoveryAgent_supportedDiscoveryMethods, METH_VARARGS, doc_QBluetoothDeviceDiscoveryAgent_supportedDiscoveryMethods}
};


/* Define the enum members and ints to be added to this type. */
static sipIntInstanceDef intInstances_QBluetoothDeviceDiscoveryAgent[] = {
    {sipName_NoMethod, static_cast<int>(::QBluetoothDeviceDiscoveryAgent::NoMethod)},
    {sipName_ClassicMethod, static_cast<int>(::QBluetoothDeviceDiscoveryAgent::ClassicMethod)},
    {sipName_LowEnergyMethod, static_cast<int>(::QBluetoothDeviceDiscoveryAgent::LowEnergyMethod)},
    {sipName_NoError, static_cast<int>(::QBluetoothDeviceDiscoveryAgent::NoError)},
    {sipName_InputOutputError, static_cast<int>(::QBluetoothDeviceDiscoveryAgent::InputOutputError)},
    {sipName_PoweredOffError, static_cast<int>(::QBluetoothDeviceDiscoveryAgent::PoweredOffError)},
    {sipName_InvalidBluetoothAdapterError, static_cast<int>(::QBluetoothDeviceDiscoveryAgent::InvalidBluetoothAdapterError)},
    {sipName_UnsupportedPlatformError, static_cast<int>(::QBluetoothDeviceDiscoveryAgent::UnsupportedPlatformError)},
    {sipName_UnsupportedDiscoveryMethod, static_cast<int>(::QBluetoothDeviceDiscoveryAgent::UnsupportedDiscoveryMethod)},
    {sipName_LocationServiceTurnedOffError, static_cast<int>(::QBluetoothDeviceDiscoveryAgent::LocationServiceTurnedOffError)},
    {sipName_MissingPermissionsError, static_cast<int>(::QBluetoothDeviceDiscoveryAgent::MissingPermissionsError)},
    {sipName_UnknownError, static_cast<int>(::QBluetoothDeviceDiscoveryAgent::UnknownError)},
    {0, 0}
};

PyDoc_STRVAR(doc_QBluetoothDeviceDiscoveryAgent, "\1QBluetoothDeviceDiscoveryAgent(parent: QObject|None = None)\n"
"QBluetoothDeviceDiscoveryAgent(deviceAdapter: QBluetoothAddress, parent: QObject|None = None)");


/* Define this type's signals. */
static const pyqt6QtSignal signals_QBluetoothDeviceDiscoveryAgent[] = {
    {"deviceUpdated(QBluetoothDeviceInfo,QBluetoothDeviceInfo::Fields)", "\1deviceUpdated(self, info: QBluetoothDeviceInfo, updatedFields: QBluetoothDeviceInfo.Field)", SIP_NULLPTR, SIP_NULLPTR},
    {"canceled()", "\1canceled(self)", SIP_NULLPTR, SIP_NULLPTR},
    {"errorOccurred(QBluetoothDeviceDiscoveryAgent::Error)", "\1errorOccurred(self, error: QBluetoothDeviceDiscoveryAgent.Error)", SIP_NULLPTR, SIP_NULLPTR},
    {"finished()", "\1finished(self)", SIP_NULLPTR, SIP_NULLPTR},
    {"deviceDiscovered(QBluetoothDeviceInfo)", "\1deviceDiscovered(self, info: QBluetoothDeviceInfo)", SIP_NULLPTR, SIP_NULLPTR},
    {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR}
};


static pyqt6ClassPluginDef plugin_QBluetoothDeviceDiscoveryAgent = {
    &::QBluetoothDeviceDiscoveryAgent::staticMetaObject,
    signals_QBluetoothDeviceDiscoveryAgent,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_QtBluetooth_QBluetoothDeviceDiscoveryAgent = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QBluetoothDeviceDiscoveryAgent,
        SIP_NULLPTR,
        &plugin_QBluetoothDeviceDiscoveryAgent,
    },
    {
        sipNameNr_QBluetoothDeviceDiscoveryAgent,
        {0, 0, 1},
        9, methods_QBluetoothDeviceDiscoveryAgent,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, intInstances_QBluetoothDeviceDiscoveryAgent, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QBluetoothDeviceDiscoveryAgent,
    -1,
    -1,
    supers_QBluetoothDeviceDiscoveryAgent,
    SIP_NULLPTR,
    init_type_QBluetoothDeviceDiscoveryAgent,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QBluetoothDeviceDiscoveryAgent,
    SIP_NULLPTR,
    array_QBluetoothDeviceDiscoveryAgent,
    SIP_NULLPTR,
    release_QBluetoothDeviceDiscoveryAgent,
    cast_QBluetoothDeviceDiscoveryAgent,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_QBluetoothDeviceDiscoveryAgent,
    sizeof (::QBluetoothDeviceDiscoveryAgent),
};
