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

#line 28 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/sip/QtWebEngineCore/qwebengineglobalsettings.sip"
#include <qwebengineglobalsettings.h>
#line 41 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/sip/QtWebEngineCore/qwebengineglobalsettings.sip"
#include <qwebengineglobalsettings.h>
#line 31 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineGlobalSettingsDnsMode.cpp"

#line 28 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/sip/QtWebEngineCore/qwebengineglobalsettings.sip"
#include <qwebengineglobalsettings.h>
#line 35 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineGlobalSettingsDnsMode.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 38 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineGlobalSettingsDnsMode.cpp"


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


extern "C" {static void *array_QWebEngineGlobalSettings_DnsMode(Py_ssize_t);}
static void *array_QWebEngineGlobalSettings_DnsMode(Py_ssize_t sipNrElem)
{
    return new ::QWebEngineGlobalSettings::DnsMode[sipNrElem];
}


extern "C" {static void array_delete_QWebEngineGlobalSettings_DnsMode(void *);}
static void array_delete_QWebEngineGlobalSettings_DnsMode(void *sipCpp)
{
    delete[] reinterpret_cast< ::QWebEngineGlobalSettings::DnsMode *>(sipCpp);
}


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const ::QWebEngineGlobalSettings::DnsMode* a0;

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

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


extern "C" {static PyObject *varget_QWebEngineGlobalSettings_DnsMode_secureMode(void *, PyObject *, PyObject *);}
static PyObject *varget_QWebEngineGlobalSettings_DnsMode_secureMode(void *sipSelf, PyObject *, PyObject *)
{
    ::QWebEngineGlobalSettings::SecureDnsMode sipVal;
    ::QWebEngineGlobalSettings::DnsMode *sipCpp = reinterpret_cast< ::QWebEngineGlobalSettings::DnsMode *>(sipSelf);

    sipVal = sipCpp->secureMode;

    return sipConvertFromEnum(static_cast<int>(sipVal), sipType_QWebEngineGlobalSettings_SecureDnsMode);
}


extern "C" {static int varset_QWebEngineGlobalSettings_DnsMode_secureMode(void *, PyObject *, PyObject *);}
static int varset_QWebEngineGlobalSettings_DnsMode_secureMode(void *sipSelf, PyObject *sipPy, PyObject *)
{
    ::QWebEngineGlobalSettings::SecureDnsMode sipVal;
    ::QWebEngineGlobalSettings::DnsMode *sipCpp = reinterpret_cast< ::QWebEngineGlobalSettings::DnsMode *>(sipSelf);

    sipVal = (::QWebEngineGlobalSettings::SecureDnsMode)sipConvertToEnum(sipPy, sipType_QWebEngineGlobalSettings_SecureDnsMode);

    if (PyErr_Occurred() != SIP_NULLPTR)
        return -1;

    sipCpp->secureMode = sipVal;

    return 0;
}


extern "C" {static PyObject *varget_QWebEngineGlobalSettings_DnsMode_serverTemplates(void *, PyObject *, PyObject *);}
static PyObject *varget_QWebEngineGlobalSettings_DnsMode_serverTemplates(void *sipSelf, PyObject *, PyObject *)
{
    ::QStringList*sipVal;
    ::QWebEngineGlobalSettings::DnsMode *sipCpp = reinterpret_cast< ::QWebEngineGlobalSettings::DnsMode *>(sipSelf);

    sipVal = &sipCpp->serverTemplates;

    return sipConvertFromType(sipVal, sipType_QStringList, SIP_NULLPTR);
}


extern "C" {static int varset_QWebEngineGlobalSettings_DnsMode_serverTemplates(void *, PyObject *, PyObject *);}
static int varset_QWebEngineGlobalSettings_DnsMode_serverTemplates(void *sipSelf, PyObject *sipPy, PyObject *)
{
    ::QStringList*sipVal;
    ::QWebEngineGlobalSettings::DnsMode *sipCpp = reinterpret_cast< ::QWebEngineGlobalSettings::DnsMode *>(sipSelf);

    int sipIsErr = 0;
    int sipValState;
    sipVal = reinterpret_cast< ::QStringList *>(sipForceConvertToType(sipPy, sipType_QStringList, SIP_NULLPTR, SIP_NOT_NONE, &sipValState, &sipIsErr));

    if (sipIsErr)
        return -1;

    sipCpp->serverTemplates = *sipVal;

    sipReleaseType(sipVal, sipType_QStringList, sipValState);

    return 0;
}

sipVariableDef variables_QWebEngineGlobalSettings_DnsMode[] = {
    {InstanceVariable, sipName_secureMode, (PyMethodDef *)varget_QWebEngineGlobalSettings_DnsMode_secureMode, (PyMethodDef *)varset_QWebEngineGlobalSettings_DnsMode_secureMode, SIP_NULLPTR, SIP_NULLPTR},
    {InstanceVariable, sipName_serverTemplates, (PyMethodDef *)varget_QWebEngineGlobalSettings_DnsMode_serverTemplates, (PyMethodDef *)varset_QWebEngineGlobalSettings_DnsMode_serverTemplates, SIP_NULLPTR, SIP_NULLPTR},
};

PyDoc_STRVAR(doc_QWebEngineGlobalSettings_DnsMode, "\1QWebEngineGlobalSettings.DnsMode()\n"
"QWebEngineGlobalSettings.DnsMode(a0: QWebEngineGlobalSettings.DnsMode)");


sipClassTypeDef sipTypeDef_QtWebEngineCore_QWebEngineGlobalSettings_DnsMode = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QWebEngineGlobalSettings__DnsMode,
        SIP_NULLPTR,
        SIP_NULLPTR,
    },
    {
        sipNameNr_DnsMode,
        {38, 255, 0},
        0, SIP_NULLPTR,
        2, variables_QWebEngineGlobalSettings_DnsMode,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QWebEngineGlobalSettings_DnsMode,
    -1,
    sipNameNr_PyQt6_sip_simplewrapper,
    SIP_NULLPTR,
    SIP_NULLPTR,
    init_type_QWebEngineGlobalSettings_DnsMode,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QWebEngineGlobalSettings_DnsMode,
    assign_QWebEngineGlobalSettings_DnsMode,
    array_QWebEngineGlobalSettings_DnsMode,
    copy_QWebEngineGlobalSettings_DnsMode,
    release_QWebEngineGlobalSettings_DnsMode,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_QWebEngineGlobalSettings_DnsMode,
    sizeof (::QWebEngineGlobalSettings::DnsMode),
};
