os/mm/imagingandcamerafws/camerafw/Include/ecamdirectviewfinder.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/mm/imagingandcamerafws/camerafw/Include/ecamdirectviewfinder.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,89 @@
     1.4 +// Copyright (c) 2006-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 + @publishedAll
    1.22 + @released
    1.23 +*/
    1.24 +#ifndef  ECAMDIRECTVIEWFINDER_H
    1.25 +#define  ECAMDIRECTVIEWFINDER_H
    1.26 +
    1.27 +#include <e32base.h>
    1.28 +#include <ecam.h>
    1.29 +#include <ecam/ecamdirectviewfinderuids.hrh>
    1.30 +
    1.31 +class MCameraDirectViewFinder;
    1.32 +
    1.33 +/** 
    1.34 +UID used to identify the CCameraDirectViewFinder API.
    1.35 +
    1.36 +@see CCamera::CCameraDirectViewFinder
    1.37 +*/
    1.38 +static const TUid KECamDirectViewFinderUid 	= {KECamDirectViewFinderUidValue};
    1.39 +
    1.40 +/** 
    1.41 +CCamera direct view finder class is used to provide support for Direct View Finder functionalities like pause/resume.
    1.42 +
    1.43 +@note This class is not intended for sub-classing and used to standardise existing
    1.44 +       varieties of implementations.
    1.45 +
    1.46 +@note   This class features are supposed to be meant for the direct viewfinder started using CCamera methods.
    1.47 +
    1.48 +@note   If the class methods leave, the output type parameter value is not guaranteed to be valid.
    1.49 +
    1.50 +@publishedAll
    1.51 +@released
    1.52 +*/
    1.53 +class CCamera::CCameraDirectViewFinder : public CBase
    1.54 +	{
    1.55 +	/* so can use internal factory functions etc. */
    1.56 +	friend class CCamera;
    1.57 +
    1.58 +public:
    1.59 +   
    1.60 +	/** Specifies direct viewfinder state. */ 
    1.61 +	enum TViewFinderState
    1.62 +		{
    1.63 +		/** View Finder is activated */  
    1.64 +		EViewFinderActive, 	 
    1.65 +		/** View Finder has been paused */
    1.66 +		EViewFinderPause,	 
    1.67 +		/** View Finder has been stopped or hasn't yet started. Default state. */
    1.68 +		EViewFinderInActive
    1.69 +		};
    1.70 +	
    1.71 +public:
    1.72 +
    1.73 +	IMPORT_C static CCameraDirectViewFinder* NewL(CCamera& aOwner);
    1.74 +
    1.75 +    IMPORT_C void PauseViewFinderDirectL();
    1.76 +	IMPORT_C void ResumeViewFinderDirectL();
    1.77 +	IMPORT_C TViewFinderState ViewFinderState() const;
    1.78 +	
    1.79 +	IMPORT_C ~CCameraDirectViewFinder();
    1.80 +    
    1.81 +private:
    1.82 +	CCameraDirectViewFinder(CCamera& aOwner);
    1.83 +	void ConstructL();
    1.84 +	
    1.85 +	void SetImplHandle();
    1.86 +	
    1.87 +private:	
    1.88 +	CCamera&                	iOwner;
    1.89 +	MCameraDirectViewFinder* 	iImpl;  // not owned
    1.90 +   };		
    1.91 +    
    1.92 +#endif // ECAMDIRECTVIEWFINDER_H