summaryrefslogtreecommitdiffstats
path: root/src/multimedia
diff options
context:
space:
mode:
authorDmytro Poplavskiy <dmytro.poplavskiy@nokia.com>2012-04-30 15:48:04 +1000
committerQt by Nokia <qt-info@nokia.com>2012-05-01 02:29:34 +0200
commitaf932e8653b024c93ed49ba30d6f06839ecfced6 (patch)
treeffc3500bcdd15ca2d2d7210f5cd4e5e61a7cd5d7 /src/multimedia
parent4be845d092a25d4d1d6509bf0b53c527a86163bb (diff)
Added QCamera::UnloadingStatus and StoppingStatus values.
These statuses are useful when the camera is stopped and/or unloaded asynchronously. Previously the status was changed to LoadedStatus or UnloadedStatus immediately, even while camera was still active. Change-Id: Id11021a150b0d34791ea631d7a62086cc0727220 Reviewed-by: Mithra Pattison <mithra.pattison@nokia.com> Reviewed-by: Ling Hu <ling.hu@nokia.com>
Diffstat (limited to 'src/multimedia')
-rw-r--r--src/multimedia/camera/qcamera.cpp8
-rw-r--r--src/multimedia/camera/qcamera.h2
2 files changed, 10 insertions, 0 deletions
diff --git a/src/multimedia/camera/qcamera.cpp b/src/multimedia/camera/qcamera.cpp
index baecb1a06..4eeb9a805 100644
--- a/src/multimedia/camera/qcamera.cpp
+++ b/src/multimedia/camera/qcamera.cpp
@@ -837,6 +837,10 @@ void QCamera::unlock()
The camera is starting in result of state transition to QCamera::ActiveState.
The camera service is not ready to capture yet.
+ \value StoppingStatus
+ The camera is stopping in result of state transition from QCamera::ActiveState
+ to QCamera::LoadedState or QCamera::UnloadedState.
+
\value StandbyStatus
The camera is in the power saving standby mode.
The camera may come to the standby mode after some time of inactivity
@@ -852,6 +856,10 @@ void QCamera::unlock()
The camera device loading in result of state transition from
QCamera::UnloadedState to QCamera::LoadedState or QCamera::ActiveState.
+ \value LoadingStatus
+ The camera device is unloading in result of state transition from
+ QCamera::LoadedState or QCamera::ActiveState to QCamera::UnloadedState.
+
\value UnloadedStatus
The initial camera status, with camera not loaded.
The camera capabilities including supported capture settings may be unknown.
diff --git a/src/multimedia/camera/qcamera.h b/src/multimedia/camera/qcamera.h
index a48bbc9b5..851521d4e 100644
--- a/src/multimedia/camera/qcamera.h
+++ b/src/multimedia/camera/qcamera.h
@@ -90,9 +90,11 @@ public:
UnavailableStatus,
UnloadedStatus,
LoadingStatus,
+ UnloadingStatus,
LoadedStatus,
StandbyStatus,
StartingStatus,
+ StoppingStatus,
ActiveStatus
};