/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.15.3
 *
 * Copyright (c) 2026 Riverbank Computing Limited <info@riverbankcomputing.com>
 * 
 * This file is part of PyQt6-NetworkAuth.
 * 
 * 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 "sipAPIQtNetworkAuth.h"

#line 28 "/build/pyqt6-networkauth/src/pyqt6_networkauth-6.11.0/sip/QtNetworkAuth/qoauth2deviceauthorizationflow.sip"
#include <qoauth2deviceauthorizationflow.h>
#line 29 "/build/pyqt6-networkauth/src/pyqt6_networkauth-6.11.0/build/QtNetworkAuth/sipQtNetworkAuthQOAuth2DeviceAuthorizationFlow.cpp"

#line 28 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qobject.sip"
#include <qobject.h>
#line 33 "/build/pyqt6-networkauth/src/pyqt6_networkauth-6.11.0/build/QtNetworkAuth/sipQtNetworkAuthQOAuth2DeviceAuthorizationFlow.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtNetwork/qnetworkaccessmanager.sip"
#include <qnetworkaccessmanager.h>
#line 36 "/build/pyqt6-networkauth/src/pyqt6_networkauth-6.11.0/build/QtNetworkAuth/sipQtNetworkAuthQOAuth2DeviceAuthorizationFlow.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 39 "/build/pyqt6-networkauth/src/pyqt6_networkauth-6.11.0/build/QtNetworkAuth/sipQtNetworkAuthQOAuth2DeviceAuthorizationFlow.cpp"
#line 262 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 42 "/build/pyqt6-networkauth/src/pyqt6_networkauth-6.11.0/build/QtNetworkAuth/sipQtNetworkAuthQOAuth2DeviceAuthorizationFlow.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qurl.sip"
#include <qurl.h>
#line 45 "/build/pyqt6-networkauth/src/pyqt6_networkauth-6.11.0/build/QtNetworkAuth/sipQtNetworkAuthQOAuth2DeviceAuthorizationFlow.cpp"
#line 24 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qstring.sip"
#include <qstring.h>
#line 48 "/build/pyqt6-networkauth/src/pyqt6_networkauth-6.11.0/build/QtNetworkAuth/sipQtNetworkAuthQOAuth2DeviceAuthorizationFlow.cpp"
#line 26 "/build/pyqt6-networkauth/src/pyqt6_networkauth-6.11.0/sip/QtNetworkAuth/qabstractoauth2.sip"
#include <qabstractoauth2.h>
#line 51 "/build/pyqt6-networkauth/src/pyqt6_networkauth-6.11.0/build/QtNetworkAuth/sipQtNetworkAuthQOAuth2DeviceAuthorizationFlow.cpp"
#line 57 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qpycore_std_chrono_duration.sip"
#include <chrono>
#line 54 "/build/pyqt6-networkauth/src/pyqt6_networkauth-6.11.0/build/QtNetworkAuth/sipQtNetworkAuthQOAuth2DeviceAuthorizationFlow.cpp"
#line 28 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qpycore_qset.sip"
#include <qset.h>
#line 57 "/build/pyqt6-networkauth/src/pyqt6_networkauth-6.11.0/build/QtNetworkAuth/sipQtNetworkAuthQOAuth2DeviceAuthorizationFlow.cpp"
#line 30 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 60 "/build/pyqt6-networkauth/src/pyqt6_networkauth-6.11.0/build/QtNetworkAuth/sipQtNetworkAuthQOAuth2DeviceAuthorizationFlow.cpp"
#line 28 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtNetwork/qsslconfiguration.sip"
#include <qsslconfiguration.h>
#line 63 "/build/pyqt6-networkauth/src/pyqt6_networkauth-6.11.0/build/QtNetworkAuth/sipQtNetworkAuthQOAuth2DeviceAuthorizationFlow.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtNetwork/qnetworkrequest.sip"
#include <qnetworkrequest.h>
#line 66 "/build/pyqt6-networkauth/src/pyqt6_networkauth-6.11.0/build/QtNetworkAuth/sipQtNetworkAuthQOAuth2DeviceAuthorizationFlow.cpp"
#line 27 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qpycore_qmap.sip"
#include <qmap.h>
#line 69 "/build/pyqt6-networkauth/src/pyqt6_networkauth-6.11.0/build/QtNetworkAuth/sipQtNetworkAuthQOAuth2DeviceAuthorizationFlow.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qvariant.sip"
#include <qvariant.h>
#line 72 "/build/pyqt6-networkauth/src/pyqt6_networkauth-6.11.0/build/QtNetworkAuth/sipQtNetworkAuthQOAuth2DeviceAuthorizationFlow.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtNetwork/qnetworkreply.sip"
#include <qnetworkreply.h>
#line 75 "/build/pyqt6-networkauth/src/pyqt6_networkauth-6.11.0/build/QtNetworkAuth/sipQtNetworkAuthQOAuth2DeviceAuthorizationFlow.cpp"
#line 45 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtNetwork/qhttpmultipart.sip"
#include <qhttpmultipart.h>
#line 78 "/build/pyqt6-networkauth/src/pyqt6_networkauth-6.11.0/build/QtNetworkAuth/sipQtNetworkAuthQOAuth2DeviceAuthorizationFlow.cpp"
#line 259 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qpycore_qmap.sip"
#include <qmap.h>
#line 81 "/build/pyqt6-networkauth/src/pyqt6_networkauth-6.11.0/build/QtNetworkAuth/sipQtNetworkAuthQOAuth2DeviceAuthorizationFlow.cpp"
#line 26 "/build/pyqt6-networkauth/src/pyqt6_networkauth-6.11.0/sip/QtNetworkAuth/qabstractoauth.sip"
#include <qabstractoauth.h>
#line 84 "/build/pyqt6-networkauth/src/pyqt6_networkauth-6.11.0/build/QtNetworkAuth/sipQtNetworkAuthQOAuth2DeviceAuthorizationFlow.cpp"
#line 26 "/build/pyqt6-networkauth/src/pyqt6_networkauth-6.11.0/sip/QtNetworkAuth/qabstractoauthreplyhandler.sip"
#include <qabstractoauthreplyhandler.h>
#line 87 "/build/pyqt6-networkauth/src/pyqt6_networkauth-6.11.0/build/QtNetworkAuth/sipQtNetworkAuthQOAuth2DeviceAuthorizationFlow.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 154 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 92 "/build/pyqt6-networkauth/src/pyqt6_networkauth-6.11.0/build/QtNetworkAuth/sipQtNetworkAuthQOAuth2DeviceAuthorizationFlow.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 95 "/build/pyqt6-networkauth/src/pyqt6_networkauth-6.11.0/build/QtNetworkAuth/sipQtNetworkAuthQOAuth2DeviceAuthorizationFlow.cpp"
#line 277 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 98 "/build/pyqt6-networkauth/src/pyqt6_networkauth-6.11.0/build/QtNetworkAuth/sipQtNetworkAuthQOAuth2DeviceAuthorizationFlow.cpp"
#line 254 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 101 "/build/pyqt6-networkauth/src/pyqt6_networkauth-6.11.0/build/QtNetworkAuth/sipQtNetworkAuthQOAuth2DeviceAuthorizationFlow.cpp"
#line 28 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 104 "/build/pyqt6-networkauth/src/pyqt6_networkauth-6.11.0/build/QtNetworkAuth/sipQtNetworkAuthQOAuth2DeviceAuthorizationFlow.cpp"
#line 135 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 107 "/build/pyqt6-networkauth/src/pyqt6_networkauth-6.11.0/build/QtNetworkAuth/sipQtNetworkAuthQOAuth2DeviceAuthorizationFlow.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 154 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 112 "/build/pyqt6-networkauth/src/pyqt6_networkauth-6.11.0/build/QtNetworkAuth/sipQtNetworkAuthQOAuth2DeviceAuthorizationFlow.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qthread.sip"
#include <qthread.h>
#line 115 "/build/pyqt6-networkauth/src/pyqt6_networkauth-6.11.0/build/QtNetworkAuth/sipQtNetworkAuthQOAuth2DeviceAuthorizationFlow.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qanystringview.sip"
#include <qanystringview.h>
#line 118 "/build/pyqt6-networkauth/src/pyqt6_networkauth-6.11.0/build/QtNetworkAuth/sipQtNetworkAuthQOAuth2DeviceAuthorizationFlow.cpp"
#line 25 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qflags.sip"
#include <qglobal.h>
#line 121 "/build/pyqt6-networkauth/src/pyqt6_networkauth-6.11.0/build/QtNetworkAuth/sipQtNetworkAuthQOAuth2DeviceAuthorizationFlow.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 124 "/build/pyqt6-networkauth/src/pyqt6_networkauth-6.11.0/build/QtNetworkAuth/sipQtNetworkAuthQOAuth2DeviceAuthorizationFlow.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 127 "/build/pyqt6-networkauth/src/pyqt6_networkauth-6.11.0/build/QtNetworkAuth/sipQtNetworkAuthQOAuth2DeviceAuthorizationFlow.cpp"


class sipQOAuth2DeviceAuthorizationFlow : public ::QOAuth2DeviceAuthorizationFlow
{
public:
    sipQOAuth2DeviceAuthorizationFlow();
    sipQOAuth2DeviceAuthorizationFlow(::QObject*);
    sipQOAuth2DeviceAuthorizationFlow(::QNetworkAccessManager*, ::QObject*);
    virtual ~sipQOAuth2DeviceAuthorizationFlow();

    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:
    void resourceOwnerAuthorization(const ::QUrl&, const QMultiMap< ::QString, ::QVariant>&) SIP_OVERRIDE;
    void grant() SIP_OVERRIDE;
    void prepareRequest(::QNetworkRequest*, const ::QByteArray&, const ::QByteArray&) SIP_OVERRIDE;
    ::QNetworkReply* deleteResource(const ::QUrl&, const ::QVariantMap&) SIP_OVERRIDE;
    ::QNetworkReply* put(const ::QUrl&, const ::QVariantMap&) SIP_OVERRIDE;
    ::QNetworkReply* post(const ::QUrl&, const ::QVariantMap&) SIP_OVERRIDE;
    ::QNetworkReply* get(const ::QUrl&, const ::QVariantMap&) SIP_OVERRIDE;
    ::QNetworkReply* head(const ::QUrl&, const ::QVariantMap&) SIP_OVERRIDE;
    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;
    ::QUrl createAuthenticatedUrl(const ::QUrl&, const ::QVariantMap&) SIP_OVERRIDE;
    ::QNetworkReply* post(const ::QUrl&, const ::QByteArray&) SIP_OVERRIDE;
    ::QNetworkReply* post(const ::QUrl&, ::QHttpMultiPart*) SIP_OVERRIDE;
    ::QNetworkReply* put(const ::QUrl&, const ::QByteArray&) SIP_OVERRIDE;
    ::QNetworkReply* put(const ::QUrl&, ::QHttpMultiPart*) SIP_OVERRIDE;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQOAuth2DeviceAuthorizationFlow(const sipQOAuth2DeviceAuthorizationFlow &);
    sipQOAuth2DeviceAuthorizationFlow &operator = (const sipQOAuth2DeviceAuthorizationFlow &);

    char sipPyMethods[20];
};

sipQOAuth2DeviceAuthorizationFlow::sipQOAuth2DeviceAuthorizationFlow(): ::QOAuth2DeviceAuthorizationFlow(), sipPySelf(SIP_NULLPTR)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

sipQOAuth2DeviceAuthorizationFlow::sipQOAuth2DeviceAuthorizationFlow(::QNetworkAccessManager*a0, ::QObject*a1): ::QOAuth2DeviceAuthorizationFlow(a0, a1), sipPySelf(SIP_NULLPTR)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipQOAuth2DeviceAuthorizationFlow::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtNetworkAuth_qt_metaobject(sipPySelf, sipType_QOAuth2DeviceAuthorizationFlow);

    return ::QOAuth2DeviceAuthorizationFlow::metaObject();
}

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

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

    return _id;
}

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

    return (sip_QtNetworkAuth_qt_metacast(sipPySelf, sipType_QOAuth2DeviceAuthorizationFlow, _clname, &sipCpp) ? sipCpp : ::QOAuth2DeviceAuthorizationFlow::qt_metacast(_clname));
}

void sipQOAuth2DeviceAuthorizationFlow::resourceOwnerAuthorization(const ::QUrl& a0, const QMultiMap< ::QString, ::QVariant>& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        ::QOAuth2DeviceAuthorizationFlow::resourceOwnerAuthorization(a0, a1);
        return;
    }

    extern void sipVH_QtNetworkAuth_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const ::QUrl&, const QMultiMap< ::QString, ::QVariant>&);

    sipVH_QtNetworkAuth_9(sipGILState, sipImportedVirtErrorHandlers_QtNetworkAuth_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

void sipQOAuth2DeviceAuthorizationFlow::grant()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        ::QOAuth2DeviceAuthorizationFlow::grant();
        return;
    }

    extern void sipVH_QtNetworkAuth_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    sipVH_QtNetworkAuth_8(sipGILState, sipImportedVirtErrorHandlers_QtNetworkAuth_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

void sipQOAuth2DeviceAuthorizationFlow::prepareRequest(::QNetworkRequest*a0, const ::QByteArray& a1, const ::QByteArray& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        ::QOAuth2DeviceAuthorizationFlow::prepareRequest(a0, a1, a2);
        return;
    }

    extern void sipVH_QtNetworkAuth_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::QNetworkRequest*, const ::QByteArray&, const ::QByteArray&);

    sipVH_QtNetworkAuth_7(sipGILState, sipImportedVirtErrorHandlers_QtNetworkAuth_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1, a2);
}

::QNetworkReply* sipQOAuth2DeviceAuthorizationFlow::deleteResource(const ::QUrl& a0, const ::QVariantMap& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return ::QOAuth2DeviceAuthorizationFlow::deleteResource(a0, a1);

    extern ::QNetworkReply* sipVH_QtNetworkAuth_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const ::QUrl&, const ::QVariantMap&);

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

::QNetworkReply* sipQOAuth2DeviceAuthorizationFlow::put(const ::QUrl& a0, const ::QVariantMap& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return ::QOAuth2DeviceAuthorizationFlow::put(a0, a1);

    extern ::QNetworkReply* sipVH_QtNetworkAuth_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const ::QUrl&, const ::QVariantMap&);

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

::QNetworkReply* sipQOAuth2DeviceAuthorizationFlow::post(const ::QUrl& a0, const ::QVariantMap& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return ::QOAuth2DeviceAuthorizationFlow::post(a0, a1);

    extern ::QNetworkReply* sipVH_QtNetworkAuth_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const ::QUrl&, const ::QVariantMap&);

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

::QNetworkReply* sipQOAuth2DeviceAuthorizationFlow::get(const ::QUrl& a0, const ::QVariantMap& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return ::QOAuth2DeviceAuthorizationFlow::get(a0, a1);

    extern ::QNetworkReply* sipVH_QtNetworkAuth_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const ::QUrl&, const ::QVariantMap&);

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

::QNetworkReply* sipQOAuth2DeviceAuthorizationFlow::head(const ::QUrl& a0, const ::QVariantMap& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[7], &sipPySelf, SIP_NULLPTR, sipName_head);

    if (!sipMeth)
        return ::QOAuth2DeviceAuthorizationFlow::head(a0, a1);

    extern ::QNetworkReply* sipVH_QtNetworkAuth_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const ::QUrl&, const ::QVariantMap&);

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

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

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

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

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

    return sipVH_QtNetworkAuth_5(sipGILState, sipImportedVirtErrorHandlers_QtNetworkAuth_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

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

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

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

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

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

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

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

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

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

    sipVH_QtNetworkAuth_3(sipGILState, sipImportedVirtErrorHandlers_QtNetworkAuth_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

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

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

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

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

    sipVH_QtNetworkAuth_2(sipGILState, sipImportedVirtErrorHandlers_QtNetworkAuth_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

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

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

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

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

    sipVH_QtNetworkAuth_1(sipGILState, sipImportedVirtErrorHandlers_QtNetworkAuth_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

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

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

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

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

    sipVH_QtNetworkAuth_0(sipGILState, sipImportedVirtErrorHandlers_QtNetworkAuth_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

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

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

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

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

    sipVH_QtNetworkAuth_0(sipGILState, sipImportedVirtErrorHandlers_QtNetworkAuth_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

::QUrl sipQOAuth2DeviceAuthorizationFlow::createAuthenticatedUrl(const ::QUrl& a0, const ::QVariantMap& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[15], &sipPySelf, SIP_NULLPTR, sipName_createAuthenticatedUrl);

    if (!sipMeth)
        return ::QOAuth2DeviceAuthorizationFlow::createAuthenticatedUrl(a0, a1);

    extern ::QUrl sipVH_QtNetworkAuth_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const ::QUrl&, const ::QVariantMap&);

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

::QNetworkReply* sipQOAuth2DeviceAuthorizationFlow::post(const ::QUrl& a0, const ::QByteArray& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[16], &sipPySelf, SIP_NULLPTR, sipName_post);

    if (!sipMeth)
        return ::QOAuth2DeviceAuthorizationFlow::post(a0, a1);

    extern ::QNetworkReply* sipVH_QtNetworkAuth_11(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const ::QUrl&, const ::QByteArray&);

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

::QNetworkReply* sipQOAuth2DeviceAuthorizationFlow::post(const ::QUrl& a0, ::QHttpMultiPart*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[17], &sipPySelf, SIP_NULLPTR, sipName_post);

    if (!sipMeth)
        return ::QOAuth2DeviceAuthorizationFlow::post(a0, a1);

    extern ::QNetworkReply* sipVH_QtNetworkAuth_12(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const ::QUrl&, ::QHttpMultiPart*);

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

::QNetworkReply* sipQOAuth2DeviceAuthorizationFlow::put(const ::QUrl& a0, const ::QByteArray& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[18], &sipPySelf, SIP_NULLPTR, sipName_put);

    if (!sipMeth)
        return ::QOAuth2DeviceAuthorizationFlow::put(a0, a1);

    extern ::QNetworkReply* sipVH_QtNetworkAuth_11(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const ::QUrl&, const ::QByteArray&);

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

::QNetworkReply* sipQOAuth2DeviceAuthorizationFlow::put(const ::QUrl& a0, ::QHttpMultiPart*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[19], &sipPySelf, SIP_NULLPTR, sipName_put);

    if (!sipMeth)
        return ::QOAuth2DeviceAuthorizationFlow::put(a0, a1);

    extern ::QNetworkReply* sipVH_QtNetworkAuth_12(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const ::QUrl&, ::QHttpMultiPart*);

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


PyDoc_STRVAR(doc_QOAuth2DeviceAuthorizationFlow_userCode, "userCode(self) -> str");

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

    {
        const ::QOAuth2DeviceAuthorizationFlow *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QOAuth2DeviceAuthorizationFlow, sipName_userCode, doc_QOAuth2DeviceAuthorizationFlow_userCode);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QOAuth2DeviceAuthorizationFlow_verificationUrl, "verificationUrl(self) -> QUrl");

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

    {
        const ::QOAuth2DeviceAuthorizationFlow *sipCpp;

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

            sipRes = new ::QUrl(sipCpp->verificationUrl());

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

    sipNoMethod(sipParseErr, sipName_QOAuth2DeviceAuthorizationFlow, sipName_verificationUrl, doc_QOAuth2DeviceAuthorizationFlow_verificationUrl);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QOAuth2DeviceAuthorizationFlow_completeVerificationUrl, "completeVerificationUrl(self) -> QUrl");

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

    {
        const ::QOAuth2DeviceAuthorizationFlow *sipCpp;

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

            sipRes = new ::QUrl(sipCpp->completeVerificationUrl());

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

    sipNoMethod(sipParseErr, sipName_QOAuth2DeviceAuthorizationFlow, sipName_completeVerificationUrl, doc_QOAuth2DeviceAuthorizationFlow_completeVerificationUrl);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QOAuth2DeviceAuthorizationFlow_isPolling, "isPolling(self) -> bool");

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

    {
        const ::QOAuth2DeviceAuthorizationFlow *sipCpp;

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

            sipRes = sipCpp->isPolling();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QOAuth2DeviceAuthorizationFlow, sipName_isPolling, doc_QOAuth2DeviceAuthorizationFlow_isPolling);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QOAuth2DeviceAuthorizationFlow_userCodeExpirationAt, "userCodeExpirationAt(self) -> QDateTime");

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

    {
        const ::QOAuth2DeviceAuthorizationFlow *sipCpp;

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

            sipRes = new ::QDateTime(sipCpp->userCodeExpirationAt());

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

    sipNoMethod(sipParseErr, sipName_QOAuth2DeviceAuthorizationFlow, sipName_userCodeExpirationAt, doc_QOAuth2DeviceAuthorizationFlow_userCodeExpirationAt);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QOAuth2DeviceAuthorizationFlow_grant, "grant(self)");

extern "C" {static PyObject *meth_QOAuth2DeviceAuthorizationFlow_grant(PyObject *, PyObject *);}
static PyObject *meth_QOAuth2DeviceAuthorizationFlow_grant(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QOAuth2DeviceAuthorizationFlow)) || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        ::QOAuth2DeviceAuthorizationFlow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOAuth2DeviceAuthorizationFlow, &sipCpp))
        {
            (sipSelfWasArg ? sipCpp->::QOAuth2DeviceAuthorizationFlow::grant() : sipCpp->grant());

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QOAuth2DeviceAuthorizationFlow, sipName_grant, doc_QOAuth2DeviceAuthorizationFlow_grant);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QOAuth2DeviceAuthorizationFlow_startTokenPolling, "startTokenPolling(self) -> bool");

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

    {
        ::QOAuth2DeviceAuthorizationFlow *sipCpp;

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

            sipRes = sipCpp->startTokenPolling();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QOAuth2DeviceAuthorizationFlow, sipName_startTokenPolling, doc_QOAuth2DeviceAuthorizationFlow_startTokenPolling);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QOAuth2DeviceAuthorizationFlow_stopTokenPolling, "stopTokenPolling(self)");

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

    {
        ::QOAuth2DeviceAuthorizationFlow *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QOAuth2DeviceAuthorizationFlow, sipName_stopTokenPolling, doc_QOAuth2DeviceAuthorizationFlow_stopTokenPolling);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QOAuth2DeviceAuthorizationFlow_event, "event(self, event: QEvent|None) -> bool");

extern "C" {static PyObject *meth_QOAuth2DeviceAuthorizationFlow_event(PyObject *, PyObject *);}
static PyObject *meth_QOAuth2DeviceAuthorizationFlow_event(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QOAuth2DeviceAuthorizationFlow)) || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        ::QEvent* a0;
        ::QOAuth2DeviceAuthorizationFlow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8", &sipSelf, sipType_QOAuth2DeviceAuthorizationFlow, &sipCpp, sipType_QEvent, &a0))
        {
            bool sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->::QOAuth2DeviceAuthorizationFlow::event(a0) : sipCpp->event(a0));

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QOAuth2DeviceAuthorizationFlow, sipName_event, doc_QOAuth2DeviceAuthorizationFlow_event);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QOAuth2DeviceAuthorizationFlow_refreshTokensImplementation, "refreshTokensImplementation(self)");

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

    {
        ::QOAuth2DeviceAuthorizationFlow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "p", &sipSelf, sipType_QOAuth2DeviceAuthorizationFlow, &sipCpp))
        {
            sipCpp->refreshTokensImplementation();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QOAuth2DeviceAuthorizationFlow, sipName_refreshTokensImplementation, doc_QOAuth2DeviceAuthorizationFlow_refreshTokensImplementation);

    return SIP_NULLPTR;
}


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

    if (targetType == sipType_QOAuth2DeviceAuthorizationFlow)
        return sipCppV;

    sipCppV = ((const sipClassTypeDef *)sipType_QAbstractOAuth2)->ctd_cast(static_cast< ::QAbstractOAuth2 *>(sipCpp), targetType);
    if (sipCppV)
        return sipCppV;

    return SIP_NULLPTR;
}


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

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


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


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


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

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


extern "C" {static void *init_type_QOAuth2DeviceAuthorizationFlow(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QOAuth2DeviceAuthorizationFlow(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQOAuth2DeviceAuthorizationFlow *sipCpp = SIP_NULLPTR;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        ::QObject* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "JH", sipType_QObject, &a0, sipOwner))
        {
            sipCpp = new sipQOAuth2DeviceAuthorizationFlow(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        ::QNetworkAccessManager* a0;
        PyObject *a0Keep;
        ::QObject* a1 = 0;

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "@J8|JH", &a0Keep, sipType_QNetworkAccessManager, &a0, sipType_QObject, &a1, sipOwner))
        {
            sipCpp = new sipQOAuth2DeviceAuthorizationFlow(a0, a1);

            sipKeepReference((PyObject *)sipSelf, -10, a0Keep);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


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


static PyMethodDef methods_QOAuth2DeviceAuthorizationFlow[] = {
    {sipName_completeVerificationUrl, meth_QOAuth2DeviceAuthorizationFlow_completeVerificationUrl, METH_VARARGS, doc_QOAuth2DeviceAuthorizationFlow_completeVerificationUrl},
    {sipName_event, meth_QOAuth2DeviceAuthorizationFlow_event, METH_VARARGS, doc_QOAuth2DeviceAuthorizationFlow_event},
    {sipName_grant, meth_QOAuth2DeviceAuthorizationFlow_grant, METH_VARARGS, doc_QOAuth2DeviceAuthorizationFlow_grant},
    {sipName_isPolling, meth_QOAuth2DeviceAuthorizationFlow_isPolling, METH_VARARGS, doc_QOAuth2DeviceAuthorizationFlow_isPolling},
    {sipName_refreshTokensImplementation, meth_QOAuth2DeviceAuthorizationFlow_refreshTokensImplementation, METH_VARARGS, doc_QOAuth2DeviceAuthorizationFlow_refreshTokensImplementation},
    {sipName_startTokenPolling, meth_QOAuth2DeviceAuthorizationFlow_startTokenPolling, METH_VARARGS, doc_QOAuth2DeviceAuthorizationFlow_startTokenPolling},
    {sipName_stopTokenPolling, meth_QOAuth2DeviceAuthorizationFlow_stopTokenPolling, METH_VARARGS, doc_QOAuth2DeviceAuthorizationFlow_stopTokenPolling},
    {sipName_userCode, meth_QOAuth2DeviceAuthorizationFlow_userCode, METH_VARARGS, doc_QOAuth2DeviceAuthorizationFlow_userCode},
    {sipName_userCodeExpirationAt, meth_QOAuth2DeviceAuthorizationFlow_userCodeExpirationAt, METH_VARARGS, doc_QOAuth2DeviceAuthorizationFlow_userCodeExpirationAt},
    {sipName_verificationUrl, meth_QOAuth2DeviceAuthorizationFlow_verificationUrl, METH_VARARGS, doc_QOAuth2DeviceAuthorizationFlow_verificationUrl}
};

PyDoc_STRVAR(doc_QOAuth2DeviceAuthorizationFlow, "\1QOAuth2DeviceAuthorizationFlow()\n"
"QOAuth2DeviceAuthorizationFlow(parent: QObject|None)\n"
"QOAuth2DeviceAuthorizationFlow(manager: QNetworkAccessManager|None, parent: QObject|None = None)");


/* Define this type's signals. */
static const pyqt6QtSignal signals_QOAuth2DeviceAuthorizationFlow[] = {
    {"userCodeExpirationAtChanged(QDateTime)", "\1userCodeExpirationAtChanged(self, expiration: QDateTime|datetime.datetime)", SIP_NULLPTR, SIP_NULLPTR},
    {"pollingChanged(bool)", "\1pollingChanged(self, polling: bool)", SIP_NULLPTR, SIP_NULLPTR},
    {"completeVerificationUrlChanged(QUrl)", "\1completeVerificationUrlChanged(self, completeVerificationUrl: QUrl)", SIP_NULLPTR, SIP_NULLPTR},
    {"verificationUrlChanged(QUrl)", "\1verificationUrlChanged(self, verificationUrl: QUrl)", SIP_NULLPTR, SIP_NULLPTR},
    {"userCodeChanged(QString)", "\1userCodeChanged(self, userCode: str|None)", SIP_NULLPTR, SIP_NULLPTR},
    {"authorizeWithUserCode(QUrl,QString,QUrl)", "\1authorizeWithUserCode(self, verificationUrl: QUrl, userCode: str|None, completeVerificationUrl: QUrl)", SIP_NULLPTR, SIP_NULLPTR},
    {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR}
};


static pyqt6ClassPluginDef plugin_QOAuth2DeviceAuthorizationFlow = {
    &::QOAuth2DeviceAuthorizationFlow::staticMetaObject,
    signals_QOAuth2DeviceAuthorizationFlow,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_QtNetworkAuth_QOAuth2DeviceAuthorizationFlow = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QOAuth2DeviceAuthorizationFlow,
        SIP_NULLPTR,
        &plugin_QOAuth2DeviceAuthorizationFlow,
    },
    {
        sipNameNr_QOAuth2DeviceAuthorizationFlow,
        {0, 0, 1},
        10, methods_QOAuth2DeviceAuthorizationFlow,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QOAuth2DeviceAuthorizationFlow,
    -1,
    -1,
    supers_QOAuth2DeviceAuthorizationFlow,
    SIP_NULLPTR,
    init_type_QOAuth2DeviceAuthorizationFlow,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QOAuth2DeviceAuthorizationFlow,
    SIP_NULLPTR,
    array_QOAuth2DeviceAuthorizationFlow,
    SIP_NULLPTR,
    release_QOAuth2DeviceAuthorizationFlow,
    cast_QOAuth2DeviceAuthorizationFlow,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_QOAuth2DeviceAuthorizationFlow,
    sizeof (::QOAuth2DeviceAuthorizationFlow),
};
