|
1 /* |
|
2 * Copyright (c) 2008-2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Observer interface for the image converter |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef M_MIRIMAGECONVERTEROBSERVER_H |
|
20 #define M_MIRIMAGECONVERTEROBSERVER_H |
|
21 |
|
22 #include <e32def.h> |
|
23 |
|
24 /** |
|
25 * Observer interface for the image converter. |
|
26 */ |
|
27 class MIRImageConverterObserver |
|
28 { |
|
29 |
|
30 public: |
|
31 |
|
32 /** |
|
33 * Supported image conversion events. |
|
34 */ |
|
35 enum TIRImageConversionEvent |
|
36 { |
|
37 |
|
38 /** |
|
39 * Frame has been converted successfully; this means that the converter will continue |
|
40 * processing the data and sending out call backs as more frames are completed. |
|
41 */ |
|
42 EIRFrameConversionCompleted, |
|
43 |
|
44 /** |
|
45 * Image has been completely converter; no further call backs will occur. |
|
46 */ |
|
47 EIRImageConversionCompleted |
|
48 |
|
49 }; |
|
50 |
|
51 public: |
|
52 |
|
53 /** |
|
54 * Call back method that is called when an image converion event occurs. |
|
55 * |
|
56 * @param aEvent The event that occurred. |
|
57 * @param aId Identifier for the conversion. |
|
58 * @param aError One of the standard system error codes. |
|
59 */ |
|
60 virtual void HandleImageConversionEventL( MIRImageConverterObserver:: |
|
61 TIRImageConversionEvent aEvent, |
|
62 TInt aId, TInt aError ) = 0; |
|
63 |
|
64 }; |
|
65 |
|
66 #endif // M_MIRIMAGECONVERTEROBSERVER_H |