|
1 /* |
|
2 * Copyright (c) 2007 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: Icon file provider. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef C_CLOGSICONFILEPROVIDER_H |
|
21 #define C_CLOGSICONFILEPROVIDER_H |
|
22 |
|
23 #include <e32base.h> |
|
24 #include <AknsItemID.h> |
|
25 |
|
26 /** |
|
27 * Icon file provider. |
|
28 * See MAknIconFileProvider.h for further information. |
|
29 * |
|
30 * @since S60 v3.2 |
|
31 */ |
|
32 NONSHARABLE_CLASS(CLogsIconFileProvider) : public CBase, |
|
33 public MAknIconFileProvider |
|
34 { |
|
35 |
|
36 public: |
|
37 |
|
38 /** |
|
39 * Two-phased constructor. |
|
40 * @param aFile |
|
41 */ |
|
42 static CLogsIconFileProvider* NewL( RFile& aFile ); |
|
43 |
|
44 /** |
|
45 * Destructor. |
|
46 */ |
|
47 virtual ~CLogsIconFileProvider(); |
|
48 |
|
49 public: |
|
50 |
|
51 // from base class MAknIconFileProvider |
|
52 |
|
53 /** |
|
54 * From MAknIconFileProvider |
|
55 * |
|
56 * @see MAknIconFileProvider |
|
57 */ |
|
58 void RetrieveIconFileHandleL( |
|
59 RFile& aFile, |
|
60 const TIconFileType aType ); |
|
61 |
|
62 /** |
|
63 * From MAknIconFileProvider |
|
64 */ |
|
65 void Finished(); |
|
66 |
|
67 private: |
|
68 |
|
69 /** |
|
70 * C++ default constructor. |
|
71 * |
|
72 * @see MAknIconFileProvider |
|
73 */ |
|
74 CLogsIconFileProvider(); |
|
75 |
|
76 /** |
|
77 * Symbian second phase constructor |
|
78 */ |
|
79 void ConstructL( RFile& aFile ); |
|
80 |
|
81 private: // data |
|
82 |
|
83 /** |
|
84 * Handle to the icon file |
|
85 * Own. |
|
86 */ |
|
87 RFile iFile; |
|
88 |
|
89 }; |
|
90 |
|
91 #endif // C_CLOGSICONFILEPROVIDER_H |