00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __CCAMERAENGINEOBSERVER_H__
00018 #define __CCAMERAENGINEOBSERVER_H__
00019
00020
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& ) {}
00090 };
00091
00092 #endif // __CCAMERAENGINEOBSERVER_H__
00093
00094