|
1 /* |
|
2 * Copyright (c) 2004-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 the License "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 CIPTVRESOURCELOADER_H |
|
22 #define CIPTVRESOURCELOADER_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32std.h> |
|
26 |
|
27 class CCoeEnv; |
|
28 class RFs; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 class CIptvResourceLoader : public CBase |
|
32 { |
|
33 public: |
|
34 /** |
|
35 * Two-phased constructor. |
|
36 * @param |
|
37 */ |
|
38 IMPORT_C static CIptvResourceLoader* NewL( CCoeEnv& aCoeEnv ); |
|
39 |
|
40 /** |
|
41 * Destructor. |
|
42 */ |
|
43 virtual ~CIptvResourceLoader(); |
|
44 |
|
45 /** |
|
46 * Add resource. |
|
47 * |
|
48 * @param aResourceFile Descriptor containing the resource file to be loaded |
|
49 */ |
|
50 IMPORT_C void AddResourceL( const TDesC& aResourceFile ); |
|
51 |
|
52 private: // New functions |
|
53 |
|
54 /** |
|
55 * C++ default constructor. |
|
56 */ |
|
57 CIptvResourceLoader( CCoeEnv& aCoeEnv ); |
|
58 |
|
59 /** |
|
60 * By default Symbian 2nd phase constructor is private. |
|
61 * @param |
|
62 */ |
|
63 void ConstructL(); |
|
64 |
|
65 /** |
|
66 * Search resource file. |
|
67 * |
|
68 * @param aFile Buffer descriptor to the resource file |
|
69 * @return System wide error code |
|
70 */ |
|
71 TInt SearchResourceFile( const TDesC& aFile ); |
|
72 |
|
73 /** |
|
74 * Add resource file. |
|
75 * |
|
76 * @param aFile Buffer descriptor to the resource file |
|
77 * @return System wide error code |
|
78 */ |
|
79 TInt AddResourceFile( const TDesC& aFile ); |
|
80 |
|
81 private: // Data members |
|
82 |
|
83 /** |
|
84 * Resource file offset. |
|
85 */ |
|
86 TInt iOffset; |
|
87 |
|
88 /** |
|
89 * Is resource added |
|
90 */ |
|
91 TBool iAdded; |
|
92 |
|
93 /** |
|
94 * Reference to CCoeEnv. |
|
95 */ |
|
96 CCoeEnv& iCoeEnv; |
|
97 |
|
98 }; |
|
99 |
|
100 #endif // CIPTVRESOURCELOADER_H |
|
101 |
|
102 // End of File |