00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef __CCAMERAENGINEOBSERVER_H__
00016 #define __CCAMERAENGINEOBSERVER_H__
00017
00018
00019 class CFbsBitmap;
00020 class TECAMEvent;
00021
00022 enum TCameraEngineError
00023 {
00024 EErrReserve,
00025 EErrPowerOn,
00026 EErrViewFinderReady,
00027 EErrImageReady,
00028 EErrAutoFocusInit,
00029 EErrAutoFocusMode,
00030 EErrAutoFocusArea,
00031 EErrAutoFocusRange,
00032 EErrAutoFocusType,
00033 EErrOptimisedFocusComplete,
00034 };
00035
00036
00037 class MCameraEngineObserver
00038 {
00039 public:
00040
00044 virtual void MceoCameraReady() = 0;
00045
00049 virtual void MceoFocusComplete() = 0;
00050
00056 virtual void MceoCapturedDataReady( TDesC8* aData ) = 0;
00057
00064 virtual void MceoCapturedBitmapReady( CFbsBitmap* aBitmap ) = 0;
00065
00073 virtual void MceoViewFinderFrameReady( CFbsBitmap& aFrame ) = 0;
00074
00080 virtual void MceoHandleError( TCameraEngineError aErrorType, TInt aError ) = 0;
00081
00087 virtual void MceoHandleOtherEvent( const TECAMEvent& ) {}
00088 };
00089
00090 #endif // __CCAMERAENGINEOBSERVER_H__
00091
00092