os/mm/mmplugins/cameraplugins/source/mmcameraclientplugin/mmcameraclientsession/src/mmdirectviewfinder.h
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/mm/mmplugins/cameraplugins/source/mmcameraclientplugin/mmcameraclientsession/src/mmdirectviewfinder.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,79 @@
1.4 +// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +/**
1.20 + @file
1.21 + @internalTechnology
1.22 +*/
1.23 +
1.24 +#ifndef MMDIRECTVIEWFINDER_H
1.25 +#define MMDIRECTVIEWFINDER_H
1.26 +
1.27 +#include "mmcameraclientsession.h"
1.28 +
1.29 +#include <ecam/ecamviewfinderintf.h>
1.30 +
1.31 +class CMMDirectViewFinder : public CBase, public MCameraV2DirectViewFinder, public MCameraViewFinder
1.32 + {
1.33 +friend class CMMCameraClientSession;
1.34 +
1.35 +public:
1.36 + static CMMDirectViewFinder* NewL(CMMCameraClientSession& aOwner);
1.37 + ~CMMDirectViewFinder();
1.38 +
1.39 + // From MCameraV2DirectViewFinder
1.40 + void Release(CCamera::CCameraV2DirectViewFinder* aDirectViewFinderHandle);
1.41 +
1.42 + void CreateHistogramImplFactoryL(MImplementationFactory*& aImplFactoryPtr) const;
1.43 + void GetImageProcessingImplFactoryL(MImplementationFactory*& aImplFactoryPtr) const;
1.44 + TAny* GetDirectSnapshotImpl(TUid aInterface) const;
1.45 +
1.46 + void SetDirectViewFinderObserver(MDirectViewFinderObserver& aDirectViewFinderObserver);
1.47 + void SetDirectViewFinderHandle(CCamera::CCameraV2DirectViewFinder* aDirectViewFinderHandle);
1.48 +
1.49 + void StartViewFinderDirectL(RWsSession& aWs, CWsScreenDevice& aScreenDevice, RWindowBase& aWindow, TRect& aScreenRect);
1.50 + void StartViewFinderDirectL(RWsSession& aWs, CWsScreenDevice& aScreenDevice,
1.51 + RWindowBase& aWindow, TRect& aScreenRect, TRect& aClipRect);
1.52 +
1.53 + void GetDirectViewFinderPropertiesL(TInt& aScreenNumber, TRect& aScreenRect, TRect& aClipRect) const;
1.54 + void PauseViewFinderDirect();
1.55 + void ResumeViewFinderDirect();
1.56 + void GetViewFinderStateL(CCamera::CCameraV2DirectViewFinder::TViewFinderState& aViewFinderState) const;
1.57 + void StopDirectViewFinder();
1.58 +
1.59 + // From MCameraViewFinder
1.60 + void Release();
1.61 +
1.62 + void GetViewFinderFadingCapabilitiesL(CCameraViewFinder::TViewFinderFadingCapabilities& aVFFadingCapabilities) const;
1.63 + void GetViewFinderFadingEffectL(CCameraViewFinder::TViewFinderFadingEffect& aCurrentVFFadingEffect) const;
1.64 + void SetViewFinderFadingEffect(const CCameraViewFinder::TViewFinderFadingEffect& aVFFadingEffect);
1.65 + void GetViewFinderHandleL(TInt& aVFHandle) const;
1.66 +
1.67 +private:
1.68 + CMMDirectViewFinder(CMMCameraClientSession& aOwner);
1.69 + void ConstructL();
1.70 +
1.71 +private:
1.72 + CMMCameraClientSession& iOwner;
1.73 + CCamera::CCameraV2DirectViewFinder* iDirectViewFinderHandle;
1.74 +
1.75 + MDirectViewFinderObserver* iDirectViewFinderObserver;
1.76 +
1.77 + TBool iPrepareCompleted;
1.78 + TInt iReferenceCount;
1.79 + };
1.80 +
1.81 +#endif // MMDIRECTVIEWFINDER_H
1.82 +