equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2010 Ixonos Plc. |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the "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 * Ixonos Plc |
|
14 * |
|
15 * Description: |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef ClipartScaler_h |
|
22 #define ClipartScaler_h |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32base.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 |
|
29 class CBitmapScaler; |
|
30 class CFbsBitmap; |
|
31 |
|
32 /* CLASS: MClipartScalerNotifier |
|
33 * |
|
34 * Notifier class for CClipartScaler |
|
35 * |
|
36 */ |
|
37 class MClipartScalerNotifier |
|
38 { |
|
39 public: |
|
40 virtual void ClipartScalerOperationReadyL(TInt aError) = 0; |
|
41 }; |
|
42 |
|
43 /* CLASS: CClipartScaler |
|
44 * |
|
45 * Class is used for scaling bitmaps |
|
46 * |
|
47 */ |
|
48 class CClipartScaler : public CActive |
|
49 { |
|
50 |
|
51 public: |
|
52 |
|
53 /** Default constructor, cannot leave. |
|
54 * |
|
55 * @param - |
|
56 * @return - |
|
57 */ |
|
58 CClipartScaler (MClipartScalerNotifier* aNotifier); |
|
59 |
|
60 /** Destructor |
|
61 * |
|
62 * @param - |
|
63 * @return - |
|
64 */ |
|
65 ~CClipartScaler (); |
|
66 |
|
67 /* Second phase constructor |
|
68 * |
|
69 * @param - |
|
70 * @return - |
|
71 */ |
|
72 void ConstructL (); |
|
73 |
|
74 /* Second phase constructor |
|
75 * |
|
76 * @param aBitmap - bitmap to be scaled |
|
77 * @return - |
|
78 */ |
|
79 void ScaleBitmapL(CFbsBitmap* aBitmap, TSize aNewSize); |
|
80 |
|
81 protected: |
|
82 |
|
83 /* DoCancel |
|
84 * |
|
85 * @see CActive |
|
86 */ |
|
87 void DoCancel(); |
|
88 |
|
89 /* RunL |
|
90 * |
|
91 * @see CActive |
|
92 */ |
|
93 void RunL(); |
|
94 |
|
95 private: |
|
96 |
|
97 CBitmapScaler* iBitmapScaler; |
|
98 MClipartScalerNotifier* iNotifier; |
|
99 |
|
100 }; |
|
101 |
|
102 #endif |
|
103 |
|
104 // End of File |