Gst capture service: capture mode fixes

Fixed reporting the current capture mode
Set the correct default capture mode
Allow viewfinder only and Video+Image capture modes

Change-Id: Ib12504304bca22fe664631ff5ffbc0a392ba34a8
Reviewed-by: Ling Hu <ling.hu@nokia.com>
Reviewed-by: Lev Zelenskiy <lev.zelenskiy@nokia.com>
This commit is contained in:
Dmytro Poplavskiy
2012-06-29 13:35:41 +10:00
committed by Qt by Nokia
parent 799a33e34d
commit b3e8783334
3 changed files with 22 additions and 6 deletions

View File

@@ -66,10 +66,7 @@ public:
QCamera::CaptureModes captureMode() const { return m_captureMode; }
void setCaptureMode(QCamera::CaptureModes mode);
bool isCaptureModeSupported(QCamera::CaptureModes mode) const
{
return mode == QCamera::CaptureStillImage || mode == QCamera::CaptureVideo;
}
bool isCaptureModeSupported(QCamera::CaptureModes mode) const;
QCamera::LockTypes supportedLocks() const
{