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

#line 28 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtMultimedia/qmediacapturesession.sip"
#include <qmediacapturesession.h>
#line 29 "/build/pyqt6/src/PyQt6-6.4.0/build/QtMultimedia/sipQtMultimediaQMediaCaptureSession.cpp"

#line 28 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 33 "/build/pyqt6/src/PyQt6-6.4.0/build/QtMultimedia/sipQtMultimediaQMediaCaptureSession.cpp"
#line 28 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtMultimedia/qaudiooutput.sip"
#include <qaudiooutput.h>
#line 36 "/build/pyqt6/src/PyQt6-6.4.0/build/QtMultimedia/sipQtMultimediaQMediaCaptureSession.cpp"
#line 28 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtMultimedia/qvideosink.sip"
#include <qvideosink.h>
#line 39 "/build/pyqt6/src/PyQt6-6.4.0/build/QtMultimedia/sipQtMultimediaQMediaCaptureSession.cpp"
#line 28 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtMultimedia/qmediarecorder.sip"
#include <qmediarecorder.h>
#line 42 "/build/pyqt6/src/PyQt6-6.4.0/build/QtMultimedia/sipQtMultimediaQMediaCaptureSession.cpp"
#line 28 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtMultimedia/qimagecapture.sip"
#include <qimagecapture.h>
#line 45 "/build/pyqt6/src/PyQt6-6.4.0/build/QtMultimedia/sipQtMultimediaQMediaCaptureSession.cpp"
#line 28 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtMultimedia/qcamera.sip"
#include <qcamera.h>
#line 48 "/build/pyqt6/src/PyQt6-6.4.0/build/QtMultimedia/sipQtMultimediaQMediaCaptureSession.cpp"
#line 28 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtMultimedia/qaudioinput.sip"
#include <qaudioinput.h>
#line 51 "/build/pyqt6/src/PyQt6-6.4.0/build/QtMultimedia/sipQtMultimediaQMediaCaptureSession.cpp"
#line 26 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 151 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 56 "/build/pyqt6/src/PyQt6-6.4.0/build/QtMultimedia/sipQtMultimediaQMediaCaptureSession.cpp"
#line 26 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 59 "/build/pyqt6/src/PyQt6-6.4.0/build/QtMultimedia/sipQtMultimediaQMediaCaptureSession.cpp"
#line 26 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 62 "/build/pyqt6/src/PyQt6-6.4.0/build/QtMultimedia/sipQtMultimediaQMediaCaptureSession.cpp"
#line 245 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 65 "/build/pyqt6/src/PyQt6-6.4.0/build/QtMultimedia/sipQtMultimediaQMediaCaptureSession.cpp"
#line 232 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 68 "/build/pyqt6/src/PyQt6-6.4.0/build/QtMultimedia/sipQtMultimediaQMediaCaptureSession.cpp"
#line 24 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 71 "/build/pyqt6/src/PyQt6-6.4.0/build/QtMultimedia/sipQtMultimediaQMediaCaptureSession.cpp"
#line 26 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 74 "/build/pyqt6/src/PyQt6-6.4.0/build/QtMultimedia/sipQtMultimediaQMediaCaptureSession.cpp"
#line 28 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 77 "/build/pyqt6/src/PyQt6-6.4.0/build/QtMultimedia/sipQtMultimediaQMediaCaptureSession.cpp"
#line 30 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 80 "/build/pyqt6/src/PyQt6-6.4.0/build/QtMultimedia/sipQtMultimediaQMediaCaptureSession.cpp"
#line 135 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 83 "/build/pyqt6/src/PyQt6-6.4.0/build/QtMultimedia/sipQtMultimediaQMediaCaptureSession.cpp"
#line 26 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 150 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 88 "/build/pyqt6/src/PyQt6-6.4.0/build/QtMultimedia/sipQtMultimediaQMediaCaptureSession.cpp"
#line 26 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 91 "/build/pyqt6/src/PyQt6-6.4.0/build/QtMultimedia/sipQtMultimediaQMediaCaptureSession.cpp"
#line 26 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtCore/qanystringview.sip"
#include <qanystringview.h>
#line 94 "/build/pyqt6/src/PyQt6-6.4.0/build/QtMultimedia/sipQtMultimediaQMediaCaptureSession.cpp"
#line 25 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtCore/qflags.sip"
#include <qglobal.h>
#line 97 "/build/pyqt6/src/PyQt6-6.4.0/build/QtMultimedia/sipQtMultimediaQMediaCaptureSession.cpp"
#line 26 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 100 "/build/pyqt6/src/PyQt6-6.4.0/build/QtMultimedia/sipQtMultimediaQMediaCaptureSession.cpp"
#line 26 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 103 "/build/pyqt6/src/PyQt6-6.4.0/build/QtMultimedia/sipQtMultimediaQMediaCaptureSession.cpp"


class sipQMediaCaptureSession : public  ::QMediaCaptureSession
{
public:
    sipQMediaCaptureSession( ::QObject*);
    virtual ~sipQMediaCaptureSession();

    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:
    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;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[7];
};

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

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

const QMetaObject *sipQMediaCaptureSession::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtMultimedia_qt_metaobject(sipPySelf,sipType_QMediaCaptureSession);

    return  ::QMediaCaptureSession::metaObject();
}

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

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

    return _id;
}

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

    return (sip_QtMultimedia_qt_metacast(sipPySelf, sipType_QMediaCaptureSession, _clname, &sipCpp) ? sipCpp :  ::QMediaCaptureSession::qt_metacast(_clname));
}

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

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

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

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

    return sipVH_QtMultimedia_5(sipGILState, sipImportedVirtErrorHandlers_QtMultimedia_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

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

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

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

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

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

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

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

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

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

    sipVH_QtMultimedia_3(sipGILState, sipImportedVirtErrorHandlers_QtMultimedia_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

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

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

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

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

    sipVH_QtMultimedia_2(sipGILState, sipImportedVirtErrorHandlers_QtMultimedia_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

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

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

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

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

    sipVH_QtMultimedia_1(sipGILState, sipImportedVirtErrorHandlers_QtMultimedia_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

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

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

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

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

    sipVH_QtMultimedia_0(sipGILState, sipImportedVirtErrorHandlers_QtMultimedia_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

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

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

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

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

    sipVH_QtMultimedia_0(sipGILState, sipImportedVirtErrorHandlers_QtMultimedia_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}


PyDoc_STRVAR(doc_QMediaCaptureSession_audioInput, "audioInput(self) -> QAudioInput");

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

    {
        const  ::QMediaCaptureSession *sipCpp;

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

            sipRes = sipCpp->audioInput();

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

    sipNoMethod(sipParseErr, sipName_QMediaCaptureSession, sipName_audioInput, doc_QMediaCaptureSession_audioInput);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QMediaCaptureSession_setAudioInput, "setAudioInput(self, QAudioInput)");

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

    {
         ::QAudioInput* a0;
         ::QMediaCaptureSession *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QMediaCaptureSession, &sipCpp, sipType_QAudioInput, &a0))
        {
            sipCpp->setAudioInput(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QMediaCaptureSession, sipName_setAudioInput, doc_QMediaCaptureSession_setAudioInput);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QMediaCaptureSession_camera, "camera(self) -> QCamera");

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

    {
        const  ::QMediaCaptureSession *sipCpp;

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

            sipRes = sipCpp->camera();

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

    sipNoMethod(sipParseErr, sipName_QMediaCaptureSession, sipName_camera, doc_QMediaCaptureSession_camera);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QMediaCaptureSession_setCamera, "setCamera(self, QCamera)");

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

    {
         ::QCamera* a0;
         ::QMediaCaptureSession *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QMediaCaptureSession, &sipCpp, sipType_QCamera, &a0))
        {
            sipCpp->setCamera(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QMediaCaptureSession, sipName_setCamera, doc_QMediaCaptureSession_setCamera);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QMediaCaptureSession_imageCapture, "imageCapture(self) -> QImageCapture");

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

    {
         ::QMediaCaptureSession *sipCpp;

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

            sipRes = sipCpp->imageCapture();

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

    sipNoMethod(sipParseErr, sipName_QMediaCaptureSession, sipName_imageCapture, doc_QMediaCaptureSession_imageCapture);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QMediaCaptureSession_setImageCapture, "setImageCapture(self, QImageCapture)");

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

    {
         ::QImageCapture* a0;
         ::QMediaCaptureSession *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QMediaCaptureSession, &sipCpp, sipType_QImageCapture, &a0))
        {
            sipCpp->setImageCapture(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QMediaCaptureSession, sipName_setImageCapture, doc_QMediaCaptureSession_setImageCapture);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QMediaCaptureSession_recorder, "recorder(self) -> QMediaRecorder");

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

    {
         ::QMediaCaptureSession *sipCpp;

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

            sipRes = sipCpp->recorder();

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

    sipNoMethod(sipParseErr, sipName_QMediaCaptureSession, sipName_recorder, doc_QMediaCaptureSession_recorder);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QMediaCaptureSession_setRecorder, "setRecorder(self, QMediaRecorder)");

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

    {
         ::QMediaRecorder* a0;
         ::QMediaCaptureSession *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QMediaCaptureSession, &sipCpp, sipType_QMediaRecorder, &a0))
        {
            sipCpp->setRecorder(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QMediaCaptureSession, sipName_setRecorder, doc_QMediaCaptureSession_setRecorder);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QMediaCaptureSession_setVideoOutput, "setVideoOutput(self, QObject)");

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

    {
         ::QObject* a0;
         ::QMediaCaptureSession *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QMediaCaptureSession, &sipCpp, sipType_QObject, &a0))
        {
            sipCpp->setVideoOutput(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QMediaCaptureSession, sipName_setVideoOutput, doc_QMediaCaptureSession_setVideoOutput);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QMediaCaptureSession_videoOutput, "videoOutput(self) -> QObject");

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

    {
        const  ::QMediaCaptureSession *sipCpp;

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

            sipRes = sipCpp->videoOutput();

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

    sipNoMethod(sipParseErr, sipName_QMediaCaptureSession, sipName_videoOutput, doc_QMediaCaptureSession_videoOutput);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QMediaCaptureSession_setVideoSink, "setVideoSink(self, QVideoSink)");

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

    {
         ::QVideoSink* a0;
         ::QMediaCaptureSession *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QMediaCaptureSession, &sipCpp, sipType_QVideoSink, &a0))
        {
            sipCpp->setVideoSink(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QMediaCaptureSession, sipName_setVideoSink, doc_QMediaCaptureSession_setVideoSink);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QMediaCaptureSession_videoSink, "videoSink(self) -> QVideoSink");

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

    {
        const  ::QMediaCaptureSession *sipCpp;

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

            sipRes = sipCpp->videoSink();

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

    sipNoMethod(sipParseErr, sipName_QMediaCaptureSession, sipName_videoSink, doc_QMediaCaptureSession_videoSink);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QMediaCaptureSession_setAudioOutput, "setAudioOutput(self, QAudioOutput)");

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

    {
         ::QAudioOutput* a0;
         ::QMediaCaptureSession *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QMediaCaptureSession, &sipCpp, sipType_QAudioOutput, &a0))
        {
            sipCpp->setAudioOutput(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QMediaCaptureSession, sipName_setAudioOutput, doc_QMediaCaptureSession_setAudioOutput);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QMediaCaptureSession_audioOutput, "audioOutput(self) -> QAudioOutput");

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

    {
        const  ::QMediaCaptureSession *sipCpp;

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

            sipRes = sipCpp->audioOutput();

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

    sipNoMethod(sipParseErr, sipName_QMediaCaptureSession, sipName_audioOutput, doc_QMediaCaptureSession_audioOutput);

    return SIP_NULLPTR;
}


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

    if (targetType == sipType_QMediaCaptureSession)
        return sipCppV;

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return SIP_NULLPTR;
}


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

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


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


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


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

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


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

    {
         ::QObject* a0 = 0;

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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


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


static PyMethodDef methods_QMediaCaptureSession[] = {
    {sipName_audioInput, meth_QMediaCaptureSession_audioInput, METH_VARARGS, doc_QMediaCaptureSession_audioInput},
    {sipName_audioOutput, meth_QMediaCaptureSession_audioOutput, METH_VARARGS, doc_QMediaCaptureSession_audioOutput},
    {sipName_camera, meth_QMediaCaptureSession_camera, METH_VARARGS, doc_QMediaCaptureSession_camera},
    {sipName_imageCapture, meth_QMediaCaptureSession_imageCapture, METH_VARARGS, doc_QMediaCaptureSession_imageCapture},
    {sipName_recorder, meth_QMediaCaptureSession_recorder, METH_VARARGS, doc_QMediaCaptureSession_recorder},
    {sipName_setAudioInput, meth_QMediaCaptureSession_setAudioInput, METH_VARARGS, doc_QMediaCaptureSession_setAudioInput},
    {sipName_setAudioOutput, meth_QMediaCaptureSession_setAudioOutput, METH_VARARGS, doc_QMediaCaptureSession_setAudioOutput},
    {sipName_setCamera, meth_QMediaCaptureSession_setCamera, METH_VARARGS, doc_QMediaCaptureSession_setCamera},
    {sipName_setImageCapture, meth_QMediaCaptureSession_setImageCapture, METH_VARARGS, doc_QMediaCaptureSession_setImageCapture},
    {sipName_setRecorder, meth_QMediaCaptureSession_setRecorder, METH_VARARGS, doc_QMediaCaptureSession_setRecorder},
    {sipName_setVideoOutput, meth_QMediaCaptureSession_setVideoOutput, METH_VARARGS, doc_QMediaCaptureSession_setVideoOutput},
    {sipName_setVideoSink, meth_QMediaCaptureSession_setVideoSink, METH_VARARGS, doc_QMediaCaptureSession_setVideoSink},
    {sipName_videoOutput, meth_QMediaCaptureSession_videoOutput, METH_VARARGS, doc_QMediaCaptureSession_videoOutput},
    {sipName_videoSink, meth_QMediaCaptureSession_videoSink, METH_VARARGS, doc_QMediaCaptureSession_videoSink}
};

PyDoc_STRVAR(doc_QMediaCaptureSession, "\1QMediaCaptureSession(parent: QObject = None)");


/* Define this type's signals. */
static const pyqt6QtSignal signals_QMediaCaptureSession[] = {
    {"audioOutputChanged()", "\1audioOutputChanged(self)", SIP_NULLPTR, SIP_NULLPTR},
    {"videoOutputChanged()", "\1videoOutputChanged(self)", SIP_NULLPTR, SIP_NULLPTR},
    {"recorderChanged()", "\1recorderChanged(self)", SIP_NULLPTR, SIP_NULLPTR},
    {"imageCaptureChanged()", "\1imageCaptureChanged(self)", SIP_NULLPTR, SIP_NULLPTR},
    {"cameraChanged()", "\1cameraChanged(self)", SIP_NULLPTR, SIP_NULLPTR},
    {"audioInputChanged()", "\1audioInputChanged(self)", SIP_NULLPTR, SIP_NULLPTR},
    {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR}
};


static pyqt6ClassPluginDef plugin_QMediaCaptureSession = {
    & ::QMediaCaptureSession::staticMetaObject,
    signals_QMediaCaptureSession,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_QtMultimedia_QMediaCaptureSession = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QMediaCaptureSession,
        SIP_NULLPTR,
        &plugin_QMediaCaptureSession
    },
    {
        sipNameNr_QMediaCaptureSession,
        {0, 0, 1},
        14, methods_QMediaCaptureSession,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QMediaCaptureSession,
    -1,
    -1,
    supers_QMediaCaptureSession,
    SIP_NULLPTR,
    init_type_QMediaCaptureSession,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QMediaCaptureSession,
    SIP_NULLPTR,
    array_QMediaCaptureSession,
    SIP_NULLPTR,
    release_QMediaCaptureSession,
    cast_QMediaCaptureSession,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_QMediaCaptureSession,
    sizeof ( ::QMediaCaptureSession),
};
