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

#line 25 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qflags.sip"
#include <qglobal.h>
#line 33 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineFileSystemAccessRequest.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qurl.sip"
#include <qurl.h>
#line 36 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineFileSystemAccessRequest.cpp"


PyDoc_STRVAR(doc_QWebEngineFileSystemAccessRequest_swap, "swap(self, other: QWebEngineFileSystemAccessRequest)");

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

    {
        ::QWebEngineFileSystemAccessRequest* a0;
        ::QWebEngineFileSystemAccessRequest *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QWebEngineFileSystemAccessRequest, &sipCpp, sipType_QWebEngineFileSystemAccessRequest, &a0))
        {
            sipCpp->swap(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineFileSystemAccessRequest, sipName_swap, doc_QWebEngineFileSystemAccessRequest_swap);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineFileSystemAccessRequest_accept, "accept(self)");

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

    {
        ::QWebEngineFileSystemAccessRequest *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineFileSystemAccessRequest, sipName_accept, doc_QWebEngineFileSystemAccessRequest_accept);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineFileSystemAccessRequest_reject, "reject(self)");

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

    {
        ::QWebEngineFileSystemAccessRequest *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineFileSystemAccessRequest, sipName_reject, doc_QWebEngineFileSystemAccessRequest_reject);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineFileSystemAccessRequest_origin, "origin(self) -> QUrl");

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

    {
        const ::QWebEngineFileSystemAccessRequest *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QWebEngineFileSystemAccessRequest, sipName_origin, doc_QWebEngineFileSystemAccessRequest_origin);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineFileSystemAccessRequest_filePath, "filePath(self) -> QUrl");

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

    {
        const ::QWebEngineFileSystemAccessRequest *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QWebEngineFileSystemAccessRequest, sipName_filePath, doc_QWebEngineFileSystemAccessRequest_filePath);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineFileSystemAccessRequest_handleType, "handleType(self) -> QWebEngineFileSystemAccessRequest.HandleType");

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

    {
        const ::QWebEngineFileSystemAccessRequest *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWebEngineFileSystemAccessRequest, &sipCpp))
        {
            ::QWebEngineFileSystemAccessRequest::HandleType sipRes;

            sipRes = sipCpp->handleType();

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

    sipNoMethod(sipParseErr, sipName_QWebEngineFileSystemAccessRequest, sipName_handleType, doc_QWebEngineFileSystemAccessRequest_handleType);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineFileSystemAccessRequest_accessFlags, "accessFlags(self) -> QWebEngineFileSystemAccessRequest.AccessFlag");

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

    {
        const ::QWebEngineFileSystemAccessRequest *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWebEngineFileSystemAccessRequest, &sipCpp))
        {
            ::QWebEngineFileSystemAccessRequest::AccessFlags*sipRes;

            sipRes = new ::QWebEngineFileSystemAccessRequest::AccessFlags(sipCpp->accessFlags());

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

    sipNoMethod(sipParseErr, sipName_QWebEngineFileSystemAccessRequest, sipName_accessFlags, doc_QWebEngineFileSystemAccessRequest_accessFlags);

    return SIP_NULLPTR;
}


extern "C" {static PyObject *slot_QWebEngineFileSystemAccessRequest___eq__(PyObject *, PyObject *);}
static PyObject *slot_QWebEngineFileSystemAccessRequest___eq__(PyObject *sipSelf, PyObject *sipArg)
{
    ::QWebEngineFileSystemAccessRequest *sipCpp = reinterpret_cast< ::QWebEngineFileSystemAccessRequest *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf, sipType_QWebEngineFileSystemAccessRequest));

    if (!sipCpp)
        return SIP_NULLPTR;

    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const ::QWebEngineFileSystemAccessRequest* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    return sipPySlotExtend(&sipModuleAPI_QtWebEngineCore, eq_slot, sipType_QWebEngineFileSystemAccessRequest, sipSelf, sipArg);
}


extern "C" {static PyObject *slot_QWebEngineFileSystemAccessRequest___ne__(PyObject *, PyObject *);}
static PyObject *slot_QWebEngineFileSystemAccessRequest___ne__(PyObject *sipSelf, PyObject *sipArg)
{
    ::QWebEngineFileSystemAccessRequest *sipCpp = reinterpret_cast< ::QWebEngineFileSystemAccessRequest *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf, sipType_QWebEngineFileSystemAccessRequest));

    if (!sipCpp)
        return SIP_NULLPTR;

    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const ::QWebEngineFileSystemAccessRequest* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    return sipPySlotExtend(&sipModuleAPI_QtWebEngineCore, ne_slot, sipType_QWebEngineFileSystemAccessRequest, sipSelf, sipArg);
}


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


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


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const ::QWebEngineFileSystemAccessRequest* a0;

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

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QWebEngineFileSystemAccessRequest[] = {
    {(void *)slot_QWebEngineFileSystemAccessRequest___eq__, eq_slot},
    {(void *)slot_QWebEngineFileSystemAccessRequest___ne__, ne_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QWebEngineFileSystemAccessRequest[] = {
    {sipName_accept, meth_QWebEngineFileSystemAccessRequest_accept, METH_VARARGS, doc_QWebEngineFileSystemAccessRequest_accept},
    {sipName_accessFlags, meth_QWebEngineFileSystemAccessRequest_accessFlags, METH_VARARGS, doc_QWebEngineFileSystemAccessRequest_accessFlags},
    {sipName_filePath, meth_QWebEngineFileSystemAccessRequest_filePath, METH_VARARGS, doc_QWebEngineFileSystemAccessRequest_filePath},
    {sipName_handleType, meth_QWebEngineFileSystemAccessRequest_handleType, METH_VARARGS, doc_QWebEngineFileSystemAccessRequest_handleType},
    {sipName_origin, meth_QWebEngineFileSystemAccessRequest_origin, METH_VARARGS, doc_QWebEngineFileSystemAccessRequest_origin},
    {sipName_reject, meth_QWebEngineFileSystemAccessRequest_reject, METH_VARARGS, doc_QWebEngineFileSystemAccessRequest_reject},
    {sipName_swap, meth_QWebEngineFileSystemAccessRequest_swap, METH_VARARGS, doc_QWebEngineFileSystemAccessRequest_swap}
};


/* Define the enum members and ints to be added to this type. */
static sipIntInstanceDef intInstances_QWebEngineFileSystemAccessRequest[] = {
    {sipName_Read, static_cast<int>(::QWebEngineFileSystemAccessRequest::Read)},
    {sipName_Write, static_cast<int>(::QWebEngineFileSystemAccessRequest::Write)},
    {sipName_File, static_cast<int>(::QWebEngineFileSystemAccessRequest::File)},
    {sipName_Directory, static_cast<int>(::QWebEngineFileSystemAccessRequest::Directory)},
    {0, 0}
};

PyDoc_STRVAR(doc_QWebEngineFileSystemAccessRequest, "\1QWebEngineFileSystemAccessRequest()\n"
"QWebEngineFileSystemAccessRequest(other: QWebEngineFileSystemAccessRequest)");


sipClassTypeDef sipTypeDef_QtWebEngineCore_QWebEngineFileSystemAccessRequest = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QWebEngineFileSystemAccessRequest,
        SIP_NULLPTR,
        SIP_NULLPTR,
    },
    {
        sipNameNr_QWebEngineFileSystemAccessRequest,
        {0, 0, 1},
        7, methods_QWebEngineFileSystemAccessRequest,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, intInstances_QWebEngineFileSystemAccessRequest, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QWebEngineFileSystemAccessRequest,
    -1,
    sipNameNr_PyQt6_sip_simplewrapper,
    SIP_NULLPTR,
    slots_QWebEngineFileSystemAccessRequest,
    init_type_QWebEngineFileSystemAccessRequest,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QWebEngineFileSystemAccessRequest,
    assign_QWebEngineFileSystemAccessRequest,
    array_QWebEngineFileSystemAccessRequest,
    copy_QWebEngineFileSystemAccessRequest,
    release_QWebEngineFileSystemAccessRequest,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_QWebEngineFileSystemAccessRequest,
    sizeof (::QWebEngineFileSystemAccessRequest),
};
