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

#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 33 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineDesktopMediaRequest.cpp"
#line 304 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 36 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineDesktopMediaRequest.cpp"


PyDoc_STRVAR(doc_QWebEngineDesktopMediaRequest_screensModel, "screensModel(self) -> QAbstractListModel|None");

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

    {
        const ::QWebEngineDesktopMediaRequest *sipCpp;

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

            sipRes = sipCpp->screensModel();

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

    sipNoMethod(sipParseErr, sipName_QWebEngineDesktopMediaRequest, sipName_screensModel, doc_QWebEngineDesktopMediaRequest_screensModel);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineDesktopMediaRequest_windowsModel, "windowsModel(self) -> QAbstractListModel|None");

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

    {
        const ::QWebEngineDesktopMediaRequest *sipCpp;

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

            sipRes = sipCpp->windowsModel();

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

    sipNoMethod(sipParseErr, sipName_QWebEngineDesktopMediaRequest, sipName_windowsModel, doc_QWebEngineDesktopMediaRequest_windowsModel);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineDesktopMediaRequest_selectScreen, "selectScreen(self, index: QModelIndex)");

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

    {
        const ::QModelIndex* a0;
        const ::QWebEngineDesktopMediaRequest *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QWebEngineDesktopMediaRequest, &sipCpp, sipType_QModelIndex, &a0))
        {
            sipCpp->selectScreen(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineDesktopMediaRequest, sipName_selectScreen, doc_QWebEngineDesktopMediaRequest_selectScreen);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineDesktopMediaRequest_selectWindow, "selectWindow(self, index: QModelIndex)");

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

    {
        const ::QModelIndex* a0;
        const ::QWebEngineDesktopMediaRequest *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QWebEngineDesktopMediaRequest, &sipCpp, sipType_QModelIndex, &a0))
        {
            sipCpp->selectWindow(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineDesktopMediaRequest, sipName_selectWindow, doc_QWebEngineDesktopMediaRequest_selectWindow);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineDesktopMediaRequest_cancel, "cancel(self)");

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

    {
        const ::QWebEngineDesktopMediaRequest *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineDesktopMediaRequest, sipName_cancel, doc_QWebEngineDesktopMediaRequest_cancel);

    return SIP_NULLPTR;
}


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


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


static PyMethodDef methods_QWebEngineDesktopMediaRequest[] = {
    {sipName_cancel, meth_QWebEngineDesktopMediaRequest_cancel, METH_VARARGS, doc_QWebEngineDesktopMediaRequest_cancel},
    {sipName_screensModel, meth_QWebEngineDesktopMediaRequest_screensModel, METH_VARARGS, doc_QWebEngineDesktopMediaRequest_screensModel},
    {sipName_selectScreen, meth_QWebEngineDesktopMediaRequest_selectScreen, METH_VARARGS, doc_QWebEngineDesktopMediaRequest_selectScreen},
    {sipName_selectWindow, meth_QWebEngineDesktopMediaRequest_selectWindow, METH_VARARGS, doc_QWebEngineDesktopMediaRequest_selectWindow},
    {sipName_windowsModel, meth_QWebEngineDesktopMediaRequest_windowsModel, METH_VARARGS, doc_QWebEngineDesktopMediaRequest_windowsModel}
};


sipClassTypeDef sipTypeDef_QtWebEngineCore_QWebEngineDesktopMediaRequest = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QWebEngineDesktopMediaRequest,
        SIP_NULLPTR,
        SIP_NULLPTR,
    },
    {
        sipNameNr_QWebEngineDesktopMediaRequest,
        {0, 0, 1},
        5, methods_QWebEngineDesktopMediaRequest,
        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_QWebEngineDesktopMediaRequest,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    release_QWebEngineDesktopMediaRequest,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    0,
};
