|
1 /* |
|
2 * Copyright (c) 2008-2009 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: Resource loading utility |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __C_GLXRESOURCELOADER_H__ |
|
21 #define __C_GLXRESOURCELOADER_H__ |
|
22 |
|
23 #include <e32def.h> |
|
24 #include <e32cmn.h> // for TFileName |
|
25 #include <e32base.h> |
|
26 #include <f32file.h> // Rfs |
|
27 |
|
28 /** |
|
29 * Class with a single static method which |
|
30 * finds the resource file on either the c or z drive |
|
31 * class CGlxResourceUtil |
|
32 * @author Loughlin Spollen |
|
33 */ |
|
34 NONSHARABLE_CLASS( CGlxResourceUtilities ) : CBase |
|
35 { |
|
36 public: |
|
37 |
|
38 /** |
|
39 * Retrieve the full resource file name and path for a give resource |
|
40 * file name. |
|
41 * Note! this version connects a RFs session |
|
42 * @param The resource filename to search |
|
43 */ |
|
44 IMPORT_C static void GetResourceFilenameL( TFileName& aResFile ); |
|
45 |
|
46 /** |
|
47 * Retrieve the full resource file name and path for a give resource |
|
48 * file name. |
|
49 * @param The resource filename to search |
|
50 * @param The file server session, must be connected before the call |
|
51 */ |
|
52 IMPORT_C static void GetResourceFilenameL( TFileName& aResFile, RFs& aFs ); |
|
53 }; |
|
54 |
|
55 |
|
56 #endif // __C_GLXRESOURCELOADER_H__ |
|
57 |