examples/ForumNokia/CameraExample/camerawrapper/epoc32/include/cameraengineobserver.h

00001 /*
00002 * ============================================================================
00003 *  Name        : cameraengineobserver.h
00004 *  Part of     : CameraWrapper
00005 *  Description : Observer interface for camera engine (wrapper DLL)
00006 *  Version     : %version: bh1sosd4#2 %
00007 *
00008 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
00009 * All rights reserved.
00010 * This component and the accompanying materials are made available
00011 * under the terms of "Eclipse Public License v1.0"
00012 * which accompanies this distribution, and is available
00013 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
00014 * ==============================================================================
00015 */
00016 
00017 #ifndef __CCAMERAENGINEOBSERVER_H__
00018 #define __CCAMERAENGINEOBSERVER_H__
00019 
00020 // FORWARD DECLARATIONS
00021 class CFbsBitmap;
00022 class TECAMEvent;
00023 
00024 enum TCameraEngineError
00025   {
00026   EErrReserve,
00027   EErrPowerOn,
00028   EErrViewFinderReady,
00029   EErrImageReady,
00030   EErrAutoFocusInit,
00031   EErrAutoFocusMode,
00032   EErrAutoFocusArea,
00033   EErrAutoFocusRange,
00034   EErrAutoFocusType,
00035   EErrOptimisedFocusComplete,  
00036   };
00037   
00038 
00039 class MCameraEngineObserver
00040   {
00041 public:
00042 
00046   virtual void MceoCameraReady() = 0;
00047   
00051   virtual void MceoFocusComplete() = 0;
00052   
00058   virtual void MceoCapturedDataReady( TDesC8* aData ) = 0;
00059   
00066   virtual void MceoCapturedBitmapReady( CFbsBitmap* aBitmap ) = 0;
00067   
00075   virtual void MceoViewFinderFrameReady( CFbsBitmap& aFrame ) = 0;
00076   
00082   virtual void MceoHandleError( TCameraEngineError aErrorType, TInt aError ) = 0;
00083 
00089   virtual void MceoHandleOtherEvent( const TECAMEvent& /*aEvent*/ ) {}
00090   };
00091 
00092 #endif // __CCAMERAENGINEOBSERVER_H__
00093 
00094 // eof

Generated by  doxygen 1.6.2