summaryrefslogtreecommitdiffstats
path: root/src/multimedia/platform/qnx/camera/bbcameraexposurecontrol.cpp
diff options
context:
space:
mode:
authorDoris Verria <doris.verria@qt.io>2021-02-24 18:29:56 +0100
committerLars Knoll <lars.knoll@qt.io>2021-03-05 12:34:22 +0000
commit967570004e2a0dde043970021c5c32312feee4ed (patch)
treef0a1fb6aa47eb9f21937a4334b2d441d80e58a4b /src/multimedia/platform/qnx/camera/bbcameraexposurecontrol.cpp
parent55928daa35a34dcd9b2e281bd449744e6bc6bad3 (diff)
Rename backend classes as a next step in consistent class naming
Remove the Control* naming convention of the backend classes and rename to QPlatformFoo. Make headers private. Change-Id: Ic7310c7a22cfcf247d823eb984c09e8a9378c9a9 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/multimedia/platform/qnx/camera/bbcameraexposurecontrol.cpp')
-rw-r--r--src/multimedia/platform/qnx/camera/bbcameraexposurecontrol.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/multimedia/platform/qnx/camera/bbcameraexposurecontrol.cpp b/src/multimedia/platform/qnx/camera/bbcameraexposurecontrol.cpp
index 6dbde9556..e1ba7c6e3 100644
--- a/src/multimedia/platform/qnx/camera/bbcameraexposurecontrol.cpp
+++ b/src/multimedia/platform/qnx/camera/bbcameraexposurecontrol.cpp
@@ -45,7 +45,7 @@
QT_BEGIN_NAMESPACE
BbCameraExposureControl::BbCameraExposureControl(BbCameraSession *session, QObject *parent)
- : QCameraExposureControl(parent)
+ : QPlatformCameraExposure(parent)
, m_session(session)
, m_requestedExposureMode(QCameraExposure::ExposureAuto)
{
@@ -55,23 +55,23 @@ BbCameraExposureControl::BbCameraExposureControl(BbCameraSession *session, QObje
bool BbCameraExposureControl::isParameterSupported(ExposureParameter parameter) const
{
switch (parameter) {
- case QCameraExposureControl::ISO:
+ case QPlatformCameraExposure::ISO:
return false;
- case QCameraExposureControl::Aperture:
+ case QPlatformCameraExposure::Aperture:
return false;
- case QCameraExposureControl::ShutterSpeed:
+ case QPlatformCameraExposure::ShutterSpeed:
return false;
- case QCameraExposureControl::ExposureCompensation:
+ case QPlatformCameraExposure::ExposureCompensation:
return false;
- case QCameraExposureControl::FlashPower:
+ case QPlatformCameraExposure::FlashPower:
return false;
- case QCameraExposureControl::FlashCompensation:
+ case QPlatformCameraExposure::FlashCompensation:
return false;
- case QCameraExposureControl::TorchPower:
+ case QPlatformCameraExposure::TorchPower:
return false;
- case QCameraExposureControl::ExposureMode:
+ case QPlatformCameraExposure::ExposureMode:
return true;
- case QCameraExposureControl::MeteringMode:
+ case QPlatformCameraExposure::MeteringMode:
return false;
default:
return false;
@@ -80,7 +80,7 @@ bool BbCameraExposureControl::isParameterSupported(ExposureParameter parameter)
QVariantList BbCameraExposureControl::supportedParameterRange(ExposureParameter parameter, bool *continuous) const
{
- if (parameter != QCameraExposureControl::ExposureMode) // no other parameter supported by BB10 API at the moment
+ if (parameter != QPlatformCameraExposure::ExposureMode) // no other parameter supported by BB10 API at the moment
return QVariantList();
if (m_session->status() != QCamera::ActiveStatus) // we can query supported exposure modes only with active viewfinder
@@ -127,7 +127,7 @@ QVariantList BbCameraExposureControl::supportedParameterRange(ExposureParameter
QVariant BbCameraExposureControl::requestedValue(ExposureParameter parameter) const
{
- if (parameter != QCameraExposureControl::ExposureMode) // no other parameter supported by BB10 API at the moment
+ if (parameter != QPlatformCameraExposure::ExposureMode) // no other parameter supported by BB10 API at the moment
return QVariant();
return QVariant::fromValue(m_requestedExposureMode);
@@ -135,7 +135,7 @@ QVariant BbCameraExposureControl::requestedValue(ExposureParameter parameter) co
QVariant BbCameraExposureControl::actualValue(ExposureParameter parameter) const
{
- if (parameter != QCameraExposureControl::ExposureMode) // no other parameter supported by BB10 API at the moment
+ if (parameter != QPlatformCameraExposure::ExposureMode) // no other parameter supported by BB10 API at the moment
return QVariantList();
if (m_session->status() != QCamera::ActiveStatus) // we can query actual scene modes only with active viewfinder
@@ -172,7 +172,7 @@ QVariant BbCameraExposureControl::actualValue(ExposureParameter parameter) const
bool BbCameraExposureControl::setValue(ExposureParameter parameter, const QVariant& value)
{
- if (parameter != QCameraExposureControl::ExposureMode) // no other parameter supported by BB10 API at the moment
+ if (parameter != QPlatformCameraExposure::ExposureMode) // no other parameter supported by BB10 API at the moment
return false;
if (m_session->status() != QCamera::ActiveStatus) // we can set actual scene modes only with active viewfinder
@@ -182,7 +182,7 @@ bool BbCameraExposureControl::setValue(ExposureParameter parameter, const QVaria
if (value.isValid()) {
m_requestedExposureMode = value.value<QCameraExposure::ExposureMode>();
- emit requestedValueChanged(QCameraExposureControl::ExposureMode);
+ emit requestedValueChanged(QPlatformCameraExposure::ExposureMode);
switch (m_requestedExposureMode) {
case QCameraExposure::ExposureAuto:
@@ -216,7 +216,7 @@ bool BbCameraExposureControl::setValue(ExposureParameter parameter, const QVaria
return false;
}
- emit actualValueChanged(QCameraExposureControl::ExposureMode);
+ emit actualValueChanged(QPlatformCameraExposure::ExposureMode);
return true;
}
@@ -224,7 +224,7 @@ bool BbCameraExposureControl::setValue(ExposureParameter parameter, const QVaria
void BbCameraExposureControl::statusChanged(QCamera::Status status)
{
if (status == QCamera::ActiveStatus || status == QCamera::LoadedStatus)
- emit parameterRangeChanged(QCameraExposureControl::ExposureMode);
+ emit parameterRangeChanged(QPlatformCameraExposure::ExposureMode);
}
QCameraExposure::FlashModes BbCameraExposureControl::flashMode() const