|
1 /* |
|
2 * Copyright (c) 2002 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: |
|
15 * |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef AKN_ICON_FORMAT_HANDLER_H |
|
22 #define AKN_ICON_FORMAT_HANDLER_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32std.h> |
|
26 #include <gdi.h> |
|
27 #include "AknIconUtils.h" |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CFbsBitmap; |
|
31 class MAknIconChangeObserver; |
|
32 |
|
33 // CONSTANTS |
|
34 |
|
35 // CLASS DECLARATION |
|
36 |
|
37 /** |
|
38 * MAknIconFormatHandler |
|
39 */ |
|
40 class MAknIconFormatHandler |
|
41 { |
|
42 public: // Constructors and destructor |
|
43 |
|
44 virtual inline ~MAknIconFormatHandler() {} |
|
45 |
|
46 public: // New functions |
|
47 |
|
48 virtual void SetScaleMode( TScaleMode aMode ) = 0; |
|
49 |
|
50 virtual void SetRotation( TInt aAngle ) = 0; |
|
51 |
|
52 virtual void GetContentDimensionsL( TAknContentDimensions& aContentDimensions ) = 0; |
|
53 |
|
54 virtual void SetObserver( MAknIconChangeObserver* aObserver ) = 0; |
|
55 |
|
56 virtual void SupportedDisplayMode( |
|
57 TDisplayMode& aMode, TDisplayMode aPreferredMode ) = 0; |
|
58 |
|
59 virtual void PrepareIconL( const TDesC8& aIconData, TInt& aHandle ) = 0; |
|
60 |
|
61 virtual void UsePreparedIconL( TInt aHandle ) = 0; |
|
62 |
|
63 virtual void RenderPreparedIconL( |
|
64 CFbsBitmap* aBitmap, CFbsBitmap* aMask,TSize Bitmapsize=TSize(0,0),TDisplayMode Bitmapdepth=ENone,TDisplayMode Maskdepth=ENone, TRgb aColor = TRgb(0,0,0), TBool aMarginFlag= EFalse) = 0; |
|
65 |
|
66 virtual void UnprepareIcon( TInt aHandle ) = 0; |
|
67 |
|
68 virtual void SetAnimated( TBool aAnimated ) = 0; |
|
69 |
|
70 virtual TInt IconFormatType() = 0; |
|
71 }; |
|
72 |
|
73 GLDEF_C void DeleteIconFormatHandler( TAny* aObj ); |
|
74 |
|
75 #endif // AKN_ICON_FORMAT_HANDLER_H |
|
76 |
|
77 // End of File |