os/mm/mmplugins/cameraplugins/source/mmcameraclientplugin/mmcameraclientsession/src/mmdirectviewfinder.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 /**
    17  @file
    18  @internalTechnology
    19 */
    20 
    21 #ifndef MMDIRECTVIEWFINDER_H
    22 #define MMDIRECTVIEWFINDER_H
    23 
    24 #include "mmcameraclientsession.h"
    25 
    26 #include <ecam/ecamviewfinderintf.h>
    27 
    28 class CMMDirectViewFinder : public CBase, public MCameraV2DirectViewFinder, public MCameraViewFinder
    29 	{
    30 friend class CMMCameraClientSession;
    31 
    32 public:
    33 	static CMMDirectViewFinder* NewL(CMMCameraClientSession& aOwner);
    34 	~CMMDirectViewFinder();
    35 
    36 	// From MCameraV2DirectViewFinder
    37 	void Release(CCamera::CCameraV2DirectViewFinder* aDirectViewFinderHandle);
    38 
    39 	void CreateHistogramImplFactoryL(MImplementationFactory*& aImplFactoryPtr) const;
    40 	void GetImageProcessingImplFactoryL(MImplementationFactory*& aImplFactoryPtr) const;
    41 	TAny* GetDirectSnapshotImpl(TUid aInterface) const;
    42 
    43 	void SetDirectViewFinderObserver(MDirectViewFinderObserver& aDirectViewFinderObserver);
    44 	void SetDirectViewFinderHandle(CCamera::CCameraV2DirectViewFinder* aDirectViewFinderHandle);
    45 
    46 	void StartViewFinderDirectL(RWsSession& aWs, CWsScreenDevice& aScreenDevice, RWindowBase& aWindow, TRect& aScreenRect);
    47 	void StartViewFinderDirectL(RWsSession& aWs, CWsScreenDevice& aScreenDevice,
    48 											RWindowBase& aWindow, TRect& aScreenRect, TRect& aClipRect);
    49 
    50 	void GetDirectViewFinderPropertiesL(TInt& aScreenNumber, TRect& aScreenRect, TRect& aClipRect) const;
    51 	void PauseViewFinderDirect();
    52 	void ResumeViewFinderDirect();
    53 	void GetViewFinderStateL(CCamera::CCameraV2DirectViewFinder::TViewFinderState& aViewFinderState) const;
    54 	void StopDirectViewFinder();
    55 
    56 	// From MCameraViewFinder
    57 	void Release();
    58 
    59 	void GetViewFinderFadingCapabilitiesL(CCameraViewFinder::TViewFinderFadingCapabilities& aVFFadingCapabilities) const;
    60 	void GetViewFinderFadingEffectL(CCameraViewFinder::TViewFinderFadingEffect& aCurrentVFFadingEffect) const;
    61 	void SetViewFinderFadingEffect(const CCameraViewFinder::TViewFinderFadingEffect& aVFFadingEffect);
    62 	void GetViewFinderHandleL(TInt& aVFHandle) const;
    63 
    64 private:
    65 	CMMDirectViewFinder(CMMCameraClientSession& aOwner);
    66 	void ConstructL();
    67 
    68 private:
    69 	CMMCameraClientSession& iOwner;
    70 	CCamera::CCameraV2DirectViewFinder* iDirectViewFinderHandle;
    71 
    72 	MDirectViewFinderObserver* iDirectViewFinderObserver;
    73 
    74 	TBool iPrepareCompleted;
    75 	TInt iReferenceCount;
    76 	};
    77 
    78 #endif // MMDIRECTVIEWFINDER_H
    79