sl@0: // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: #include "directviewfinder.h" sl@0: sl@0: /** sl@0: * For Direct View Finder Pause/Resume functionality sl@0: */ sl@0: CCamDirectViewFinder* CCamDirectViewFinder::NewL(CCamUnitTestPlugin& aOwner) sl@0: { sl@0: return new (ELeave) CCamDirectViewFinder(aOwner); sl@0: } sl@0: sl@0: CCamDirectViewFinder::~CCamDirectViewFinder() sl@0: { sl@0: } sl@0: sl@0: CCamDirectViewFinder::CCamDirectViewFinder(CCamUnitTestPlugin& aOwner):iOwner(aOwner), sl@0: iVFState(CCamera::CCameraDirectViewFinder::EViewFinderInActive) sl@0: { sl@0: } sl@0: sl@0: void CCamDirectViewFinder::PauseViewFinderDirectL() sl@0: { sl@0: // dummy implementation sl@0: // Pause view finder sl@0: // Boundary checking of CCamera::ViewFinderActive() = ETrue should be there in real implementation sl@0: // otherwise Leave with KErrECamSettingDisabled sl@0: sl@0: iVFState = CCamera::CCameraDirectViewFinder::EViewFinderPause; sl@0: } sl@0: sl@0: void CCamDirectViewFinder::ResumeViewFinderDirectL() sl@0: { sl@0: // dummy implementation sl@0: // Resume view finder sl@0: // Boundary checking of CCamera::ViewFinderActive() = ETrue should be there in real implementation sl@0: // otherwise Leave with KErrECamSettingDisabled sl@0: sl@0: iVFState = CCamera::CCameraDirectViewFinder::EViewFinderActive; sl@0: } sl@0: sl@0: CCamera::CCameraDirectViewFinder::TViewFinderState CCamDirectViewFinder::ViewFinderState() const sl@0: { sl@0: return iVFState; sl@0: } sl@0: sl@0: void CCamDirectViewFinder::Release() sl@0: { sl@0: delete this; sl@0: }