1 // Copyright (c) 2008-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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
22 #ifndef __IMAGE_PROCESSOR_OBSERVER_H__
23 #define __IMAGE_PROCESSOR_OBSERVER_H__
27 namespace ImageProcessor
33 Plugin API for the observer of CImgProcessor.
34 When the CImgProcessor is set to EOptionNone, which means effects, geometric operations and rendering
35 are applied asynchronously. After certain operations such as initialization or rendering finished, or after each iteration
36 of operation, the certain function will be called, so that user can perform corresponding response.
42 class MImgProcessorObserver
46 The derived class must provide an implementation to perform actions after ImageProcessor complete its initialization
48 @param aImageProcessor
49 The CImgProcessor which has finished the initialization
51 any error happened in the CImgProcessor initialize process
53 virtual void ImageProcessorInitializingComplete(CImgProcessor& aImageProcessor, TInt aError) = 0;
56 The derived class must provide an implementation to perform actions after the preview of ImageProcessor complete its initialization
58 @param aImageProcessor
59 The CImgProcessor which has finished the initialization of its prview
61 the id of the preview which has finished the initialization
63 any error happened in the CImgProcessor preview initialize process
65 virtual void ImageProcessorPreviewInitializingComplete(CImgProcessor& aImageProcessor, TInt aPreviewId, TInt aError) = 0;
68 The derived class must provide an implementation to perform actions after ImageProcessor complete its action of image processing
70 @param aImageProcessor
71 The CImgProcessor which has finished the rendering
73 any error happened in the CImgProcessor rendering process
75 virtual void ImageProcessingComplete(CImgProcessor& aImageProcessor, TInt aError) = 0;
78 The derived class must provide an implementation to perform actions after the preview of ImageProcessor complete its rendering process
80 @param aImageProcessor
81 The CImgProcessor which has finished the rendering of its prview
83 the id of the preview which has finished the rendering
85 any error happened in the CImgProcessor preview rendering process
87 virtual void ImageProcessorPreviewRenderingComplete(CImgProcessor& aImageProcessor, TInt aPreviewId, TInt aError) = 0;
90 During image processing, after each iteration, this function will be notified and
91 the derived class must provide an implementation to perform actions (optional) such as showing messages to response.
93 @param aImageProcessor
94 The current CImgProcessor
96 the event id of the current iteration, which is defined in imageprocessor.h as TEvent enumeration,
97 could be EEventInitializing, EEventProcessing, EEventRendering, EEventPreviewInitializing or EEventPreviewRendering,
99 The value depends on aEventId, and reserved for future purpose
101 The value depends on aEventId, for example, if aEventId is EEventPreviewRendering, aId will be the id of the preview.
103 virtual void ImageProcessorEvent(CImgProcessor& aImageProcessor, TInt aEventId, TUid aUid, TInt aId) = 0;
106 } //namespace ImageProcessor
108 #endif //__IMAGE_PROCESSOR_OBSERVER_H__