/*
 * 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/qwebengineprofilebuilder.sip"
#include <qwebengineprofilebuilder.h>
#line 29 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineProfileBuilder.cpp"

#line 28 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 33 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineProfileBuilder.cpp"
#line 28 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtNetwork/qsslcertificate.sip"
#include <qsslcertificate.h>
#line 36 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineProfileBuilder.cpp"
#line 26 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/sip/QtWebEngineCore/qwebengineprofile.sip"
#include <qwebengineprofile.h>
#line 39 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineProfileBuilder.cpp"
#line 24 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qstring.sip"
#include <qstring.h>
#line 42 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineProfileBuilder.cpp"
#line 28 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qobject.sip"
#include <qobject.h>
#line 45 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineProfileBuilder.cpp"


PyDoc_STRVAR(doc_QWebEngineProfileBuilder_createProfile, "createProfile(self, storageName: str|None, parent: QObject|None = None) -> QWebEngineProfile|None");

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

    {
        const ::QString* a0;
        int a0State = 0;
        ::QObject* a1 = 0;
        sipWrapper *sipOwner = SIP_NULLPTR;
        const ::QWebEngineProfileBuilder *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1|JH", &sipSelf, sipType_QWebEngineProfileBuilder, &sipCpp, sipType_QString, &a0, &a0State, sipType_QObject, &a1, &sipOwner))
        {
            ::QWebEngineProfile*sipRes;

            sipRes = sipCpp->createProfile(*a0, a1);
            sipReleaseType(const_cast< ::QString *>(a0), sipType_QString, a0State);

            return sipConvertFromType(sipRes, sipType_QWebEngineProfile, Py_None);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineProfileBuilder, sipName_createProfile, doc_QWebEngineProfileBuilder_createProfile);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineProfileBuilder_createOffTheRecordProfile, "createOffTheRecordProfile(parent: QObject|None = None) -> QWebEngineProfile|None");

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

    {
        ::QObject* a0 = 0;
        sipWrapper *sipOwner = SIP_NULLPTR;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "C|JH", &sipSelf, sipType_QObject, &a0, &sipOwner))
        {
            ::QWebEngineProfile*sipRes;

            sipRes = ::QWebEngineProfileBuilder::createOffTheRecordProfile(a0);

            return sipConvertFromType(sipRes, sipType_QWebEngineProfile, Py_None);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineProfileBuilder, sipName_createOffTheRecordProfile, doc_QWebEngineProfileBuilder_createOffTheRecordProfile);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineProfileBuilder_setPersistentStoragePath, "setPersistentStoragePath(self, path: str|None) -> QWebEngineProfileBuilder");

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QWebEngineProfileBuilder, &sipCpp, sipType_QString, &a0, &a0State))
        {
            ::QWebEngineProfileBuilder*sipRes;

            sipRes = &sipCpp->setPersistentStoragePath(*a0);
            sipReleaseType(const_cast< ::QString *>(a0), sipType_QString, a0State);

            return sipConvertFromType(sipRes, sipType_QWebEngineProfileBuilder, SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineProfileBuilder, sipName_setPersistentStoragePath, doc_QWebEngineProfileBuilder_setPersistentStoragePath);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineProfileBuilder_setCachePath, "setCachePath(self, path: str|None) -> QWebEngineProfileBuilder");

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QWebEngineProfileBuilder, &sipCpp, sipType_QString, &a0, &a0State))
        {
            ::QWebEngineProfileBuilder*sipRes;

            sipRes = &sipCpp->setCachePath(*a0);
            sipReleaseType(const_cast< ::QString *>(a0), sipType_QString, a0State);

            return sipConvertFromType(sipRes, sipType_QWebEngineProfileBuilder, SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineProfileBuilder, sipName_setCachePath, doc_QWebEngineProfileBuilder_setCachePath);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineProfileBuilder_setHttpCacheType, "setHttpCacheType(self, httpCacheType: QWebEngineProfile.HttpCacheType) -> QWebEngineProfileBuilder");

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

    {
        ::QWebEngineProfile::HttpCacheType a0;
        ::QWebEngineProfileBuilder *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QWebEngineProfileBuilder, &sipCpp, sipType_QWebEngineProfile_HttpCacheType, &a0))
        {
            ::QWebEngineProfileBuilder*sipRes;

            sipRes = &sipCpp->setHttpCacheType(a0);

            return sipConvertFromType(sipRes, sipType_QWebEngineProfileBuilder, SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineProfileBuilder, sipName_setHttpCacheType, doc_QWebEngineProfileBuilder_setHttpCacheType);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineProfileBuilder_setPersistentCookiesPolicy, "setPersistentCookiesPolicy(self, persistentCookiesPolicy: QWebEngineProfile.PersistentCookiesPolicy) -> QWebEngineProfileBuilder");

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

    {
        ::QWebEngineProfile::PersistentCookiesPolicy a0;
        ::QWebEngineProfileBuilder *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QWebEngineProfileBuilder, &sipCpp, sipType_QWebEngineProfile_PersistentCookiesPolicy, &a0))
        {
            ::QWebEngineProfileBuilder*sipRes;

            sipRes = &sipCpp->setPersistentCookiesPolicy(a0);

            return sipConvertFromType(sipRes, sipType_QWebEngineProfileBuilder, SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineProfileBuilder, sipName_setPersistentCookiesPolicy, doc_QWebEngineProfileBuilder_setPersistentCookiesPolicy);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineProfileBuilder_setHttpCacheMaximumSize, "setHttpCacheMaximumSize(self, maxSizeInBytes: int) -> QWebEngineProfileBuilder");

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

    {
        int a0;
        ::QWebEngineProfileBuilder *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QWebEngineProfileBuilder, &sipCpp, &a0))
        {
            ::QWebEngineProfileBuilder*sipRes;

            sipRes = &sipCpp->setHttpCacheMaximumSize(a0);

            return sipConvertFromType(sipRes, sipType_QWebEngineProfileBuilder, SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineProfileBuilder, sipName_setHttpCacheMaximumSize, doc_QWebEngineProfileBuilder_setHttpCacheMaximumSize);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineProfileBuilder_setPersistentPermissionsPolicy, "setPersistentPermissionsPolicy(self, persistentPermissionPolicy: QWebEngineProfile.PersistentPermissionsPolicy) -> QWebEngineProfileBuilder");

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

    {
        int a0;
        ::QWebEngineProfileBuilder *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QWebEngineProfileBuilder, &sipCpp, sipType_QWebEngineProfile_PersistentPermissionsPolicy, &a0))
        {
            ::QWebEngineProfileBuilder*sipRes;

            sipRes = &sipCpp->setPersistentPermissionsPolicy(static_cast< ::QWebEngineProfile::PersistentPermissionsPolicy>(a0));

            return sipConvertFromType(sipRes, sipType_QWebEngineProfileBuilder, SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineProfileBuilder, sipName_setPersistentPermissionsPolicy, doc_QWebEngineProfileBuilder_setPersistentPermissionsPolicy);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineProfileBuilder_setAdditionalTrustedCertificates, "setAdditionalTrustedCertificates(self, additionalTrustedCertificates: Iterable[QSslCertificate]) -> QWebEngineProfileBuilder");

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

    {
        const QList< ::QSslCertificate>* a0;
        int a0State = 0;
        ::QWebEngineProfileBuilder *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QWebEngineProfileBuilder, &sipCpp, sipType_QList_0100QSslCertificate, &a0, &a0State))
        {
            ::QWebEngineProfileBuilder*sipRes;

            sipRes = &sipCpp->setAdditionalTrustedCertificates(*a0);
            sipReleaseType(const_cast<QList< ::QSslCertificate> *>(a0), sipType_QList_0100QSslCertificate, a0State);

            return sipConvertFromType(sipRes, sipType_QWebEngineProfileBuilder, SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineProfileBuilder, sipName_setAdditionalTrustedCertificates, doc_QWebEngineProfileBuilder_setAdditionalTrustedCertificates);

    return SIP_NULLPTR;
}


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


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


static PyMethodDef methods_QWebEngineProfileBuilder[] = {
    {sipName_createOffTheRecordProfile, SIP_MLMETH_CAST(meth_QWebEngineProfileBuilder_createOffTheRecordProfile), METH_VARARGS|METH_KEYWORDS, doc_QWebEngineProfileBuilder_createOffTheRecordProfile},
    {sipName_createProfile, SIP_MLMETH_CAST(meth_QWebEngineProfileBuilder_createProfile), METH_VARARGS|METH_KEYWORDS, doc_QWebEngineProfileBuilder_createProfile},
    {sipName_setAdditionalTrustedCertificates, meth_QWebEngineProfileBuilder_setAdditionalTrustedCertificates, METH_VARARGS, doc_QWebEngineProfileBuilder_setAdditionalTrustedCertificates},
    {sipName_setCachePath, meth_QWebEngineProfileBuilder_setCachePath, METH_VARARGS, doc_QWebEngineProfileBuilder_setCachePath},
    {sipName_setHttpCacheMaximumSize, meth_QWebEngineProfileBuilder_setHttpCacheMaximumSize, METH_VARARGS, doc_QWebEngineProfileBuilder_setHttpCacheMaximumSize},
    {sipName_setHttpCacheType, meth_QWebEngineProfileBuilder_setHttpCacheType, METH_VARARGS, doc_QWebEngineProfileBuilder_setHttpCacheType},
    {sipName_setPersistentCookiesPolicy, meth_QWebEngineProfileBuilder_setPersistentCookiesPolicy, METH_VARARGS, doc_QWebEngineProfileBuilder_setPersistentCookiesPolicy},
    {sipName_setPersistentPermissionsPolicy, meth_QWebEngineProfileBuilder_setPersistentPermissionsPolicy, METH_VARARGS, doc_QWebEngineProfileBuilder_setPersistentPermissionsPolicy},
    {sipName_setPersistentStoragePath, meth_QWebEngineProfileBuilder_setPersistentStoragePath, METH_VARARGS, doc_QWebEngineProfileBuilder_setPersistentStoragePath}
};


sipClassTypeDef sipTypeDef_QtWebEngineCore_QWebEngineProfileBuilder = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QWebEngineProfileBuilder,
        SIP_NULLPTR,
        SIP_NULLPTR,
    },
    {
        sipNameNr_QWebEngineProfileBuilder,
        {0, 0, 1},
        9, methods_QWebEngineProfileBuilder,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    SIP_NULLPTR,
    -1,
    sipNameNr_PyQt6_sip_simplewrapper,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QWebEngineProfileBuilder,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    release_QWebEngineProfileBuilder,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    0,
};
