uvccameraviewfindersettingscontrol.cpp 753 Bytes
Newer Older
Thiago Santini's avatar
Thiago Santini committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
#include "uvccameraviewfindersettingscontrol.h"
#include "uvccamerasession.h"

QT_BEGIN_NAMESPACE

UVCCameraViewfinderSettingsControl::UVCCameraViewfinderSettingsControl(UVCCameraSession *session)
    : QCameraViewfinderSettingsControl2(session)
    , m_session(session)
{
}

QList<QCameraViewfinderSettings> UVCCameraViewfinderSettingsControl::supportedViewfinderSettings() const
{
    return m_session->supportedViewfinderSettings();
}

QCameraViewfinderSettings UVCCameraViewfinderSettingsControl::viewfinderSettings() const
{
    return m_session->viewfinderSettings();
}

void UVCCameraViewfinderSettingsControl::setViewfinderSettings(const QCameraViewfinderSettings &settings)
{
    m_session->setViewfinderSettings(settings);
}

QT_END_NAMESPACE