equal
deleted
inserted
replaced
1 /** |
|
2 * Copyright (c) 2010 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: CUpnpIconConversionActive class declaration. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __UPNPICONCONVERSIONACTIVE_H__ |
|
19 #define __UPNPICONCONVERSIONACTIVE_H__ |
|
20 |
|
21 // Include Files |
|
22 #include <imageconversion.h> |
|
23 |
|
24 /** |
|
25 * Class encapsulates an active object (AO) which handles the actual image conversion |
|
26 * in the new thread created. |
|
27 */ |
|
28 class CUpnpIconConversionActive: public CActive |
|
29 { |
|
30 public: |
|
31 static CUpnpIconConversionActive* NewL( RFile& aBitmapFile ); |
|
32 ~CUpnpIconConversionActive(); |
|
33 |
|
34 void Convert( CFbsBitmap& aBitmap ); |
|
35 TInt FetchError(); |
|
36 void RunL(); |
|
37 void DoCancel(); |
|
38 |
|
39 private : |
|
40 CUpnpIconConversionActive(); |
|
41 void ConstructL( RFile& aBitmapFile ); |
|
42 |
|
43 private: |
|
44 /** |
|
45 * CImageEncoder class provides functions that convert image data held |
|
46 * in CFbsBitmap objects into well know formats( "bitmap" in this case ) |
|
47 */ |
|
48 CImageEncoder* iEncoder; |
|
49 }; |
|
50 |
|
51 #endif //__UPNPICONCONVERSIONACTIVE_H__ |
|