sl@0: // Copyright (c) 2008-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: /** sl@0: @file sl@0: @internalTechnology sl@0: */ sl@0: sl@0: #ifndef MMDIRECTVIEWFINDER_H sl@0: #define MMDIRECTVIEWFINDER_H sl@0: sl@0: #include "mmcameraclientsession.h" sl@0: sl@0: #include sl@0: sl@0: class CMMDirectViewFinder : public CBase, public MCameraV2DirectViewFinder, public MCameraViewFinder sl@0: { sl@0: friend class CMMCameraClientSession; sl@0: sl@0: public: sl@0: static CMMDirectViewFinder* NewL(CMMCameraClientSession& aOwner); sl@0: ~CMMDirectViewFinder(); sl@0: sl@0: // From MCameraV2DirectViewFinder sl@0: void Release(CCamera::CCameraV2DirectViewFinder* aDirectViewFinderHandle); sl@0: sl@0: void CreateHistogramImplFactoryL(MImplementationFactory*& aImplFactoryPtr) const; sl@0: void GetImageProcessingImplFactoryL(MImplementationFactory*& aImplFactoryPtr) const; sl@0: TAny* GetDirectSnapshotImpl(TUid aInterface) const; sl@0: sl@0: void SetDirectViewFinderObserver(MDirectViewFinderObserver& aDirectViewFinderObserver); sl@0: void SetDirectViewFinderHandle(CCamera::CCameraV2DirectViewFinder* aDirectViewFinderHandle); sl@0: sl@0: void StartViewFinderDirectL(RWsSession& aWs, CWsScreenDevice& aScreenDevice, RWindowBase& aWindow, TRect& aScreenRect); sl@0: void StartViewFinderDirectL(RWsSession& aWs, CWsScreenDevice& aScreenDevice, sl@0: RWindowBase& aWindow, TRect& aScreenRect, TRect& aClipRect); sl@0: sl@0: void GetDirectViewFinderPropertiesL(TInt& aScreenNumber, TRect& aScreenRect, TRect& aClipRect) const; sl@0: void PauseViewFinderDirect(); sl@0: void ResumeViewFinderDirect(); sl@0: void GetViewFinderStateL(CCamera::CCameraV2DirectViewFinder::TViewFinderState& aViewFinderState) const; sl@0: void StopDirectViewFinder(); sl@0: sl@0: // From MCameraViewFinder sl@0: void Release(); sl@0: sl@0: void GetViewFinderFadingCapabilitiesL(CCameraViewFinder::TViewFinderFadingCapabilities& aVFFadingCapabilities) const; sl@0: void GetViewFinderFadingEffectL(CCameraViewFinder::TViewFinderFadingEffect& aCurrentVFFadingEffect) const; sl@0: void SetViewFinderFadingEffect(const CCameraViewFinder::TViewFinderFadingEffect& aVFFadingEffect); sl@0: void GetViewFinderHandleL(TInt& aVFHandle) const; sl@0: sl@0: private: sl@0: CMMDirectViewFinder(CMMCameraClientSession& aOwner); sl@0: void ConstructL(); sl@0: sl@0: private: sl@0: CMMCameraClientSession& iOwner; sl@0: CCamera::CCameraV2DirectViewFinder* iDirectViewFinderHandle; sl@0: sl@0: MDirectViewFinderObserver* iDirectViewFinderObserver; sl@0: sl@0: TBool iPrepareCompleted; sl@0: TInt iReferenceCount; sl@0: }; sl@0: sl@0: #endif // MMDIRECTVIEWFINDER_H sl@0: