imagingandcamerafws/camerafw/Include/mcameradirectviewfinder.h
changeset 0 40261b775718
equal deleted inserted replaced
-1:000000000000 0:40261b775718
       
     1 // Copyright (c) 2006-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  @publishedPartner
       
    19  @released
       
    20 */
       
    21 
       
    22 #ifndef  MCAMERADIRECTVIEWFINDER_H
       
    23 #define  MCAMERADIRECTVIEWFINDER_H
       
    24 
       
    25 #include <ecam/ecamdirectviewfinder.h>
       
    26 #include <ecam/cameradirectviewfinderuidif.hrh>
       
    27 
       
    28 /** This is the UID which is used to obtain the interface MCameraDirectViewFinder, via the 
       
    29 CCamera::CustomInterface() call. */   
       
    30 static const TUid KECamMCameraDirectViewFinderUid 			=  {KECamMCameraDirectViewFinderUidValue};
       
    31 
       
    32 /** Mixin class for implementation of camera direct viewfinder control.
       
    33 */	
       
    34 class MCameraDirectViewFinder
       
    35 	{
       
    36 
       
    37 public:
       
    38 	
       
    39 	/** 
       
    40 	Releases the interface. 
       
    41 	*/
       
    42 	virtual void Release()=0;
       
    43 
       
    44 	/** 
       
    45 	Pauses the direct view finder   
       
    46 	
       
    47 	@leave KErrNoMemory: Out of memory or any other leave code 
       
    48 	
       
    49 	@note   This will pause the direct viewfinder which is started using the CCamera method.
       
    50 	
       
    51 	@see	CCamera::StartViewFinderDirectL(RWsSession& aWs,CWsScreenDevice& aScreenDevice,RWindowBase& aWindow,TRect& aScreenRect)
       
    52 	@see	CCamera::StartViewFinderDirectL(RWsSession& aWs,CWsScreenDevice& aScreenDevice,RWindowBase& aWindow,TRect& aScreenRect,TRect& aClipRect)
       
    53 	*/
       
    54 	virtual void PauseViewFinderDirectL()=0;
       
    55 	
       
    56 	/** 
       
    57 	Resumes the direct view finder  
       
    58 	 
       
    59 	@leave KErrNoMemory: Out of memory or any other leave code
       
    60 	
       
    61 	@note   This will resume the direct viewfinder which is started using the CCamera method.
       
    62 	
       
    63 	@see	CCamera::StartViewFinderDirectL(RWsSession& aWs,CWsScreenDevice& aScreenDevice,RWindowBase& aWindow,TRect& aScreenRect)
       
    64 	@see	CCamera::StartViewFinderDirectL(RWsSession& aWs,CWsScreenDevice& aScreenDevice,RWindowBase& aWindow,TRect& aScreenRect,TRect& aClipRect)
       
    65 	*/
       
    66 	virtual void ResumeViewFinderDirectL()=0;
       
    67 	
       
    68 	/** 
       
    69 	Gets the current view finder state.
       
    70 	
       
    71 	@return  Retrieves the current direct view finder state.
       
    72 	
       
    73 	@note   This will retrieve the state of the direct viewfinder which is started using the CCamera method.
       
    74 	
       
    75 	@see	CCamera::StartViewFinderDirectL(RWsSession& aWs,CWsScreenDevice& aScreenDevice,RWindowBase& aWindow,TRect& aScreenRect)
       
    76 	@see	CCamera::StartViewFinderDirectL(RWsSession& aWs,CWsScreenDevice& aScreenDevice,RWindowBase& aWindow,TRect& aScreenRect,TRect& aClipRect)
       
    77 	*/
       
    78 	virtual CCamera::CCameraDirectViewFinder::TViewFinderState ViewFinderState() const =0;
       
    79   	};
       
    80 
       
    81 #endif // MCAMERADIRECTVIEWFINDER_H