|
1 /* |
|
2 * Copyright (c) 2005-2006 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: The ECOM interface implementation. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MUSRESOURCEFINDER_H |
|
20 #define MUSRESOURCEFINDER_H |
|
21 |
|
22 #include "musunittesting.h" |
|
23 |
|
24 #include <e32def.h> |
|
25 #include <e32cmn.h> |
|
26 |
|
27 // possible locations of compiled resource file |
|
28 |
|
29 _LIT( KMusResourceRom, "z:\\resource\\" ); |
|
30 _LIT( KMusResourceRam, "c:\\resource\\" ); |
|
31 |
|
32 _LIT( KMusAppResourceRom, "z:\\resource\\apps\\" ); |
|
33 _LIT( KMusAppResourceRam, "c:\\resource\\apps\\" ); |
|
34 |
|
35 |
|
36 |
|
37 class MusResourceFinderUtil |
|
38 { |
|
39 MUS_UNITTEST( UT_MusResourceFinderUtil ) |
|
40 |
|
41 public: |
|
42 /** |
|
43 * Returns the full path of resource file name from Resource Dir |
|
44 * Note : This function will leave with KErrNotFound |
|
45 * If the file is not found in Rom or Ram. |
|
46 */ |
|
47 static HBufC* ResourcePathL( const TDesC& aFileName ); |
|
48 |
|
49 /** |
|
50 * Returns the full path of resource file name from App Resource Dir |
|
51 * Note : This function will leave with KErrNotFound |
|
52 * If the file is not found in Rom or Ram. |
|
53 */ |
|
54 static HBufC* AppResourcePathL( const TDesC& aFileName ); |
|
55 |
|
56 /** |
|
57 * Checks the Existence of File |
|
58 * Returns ETrue if Exist else EFalse |
|
59 */ |
|
60 static TBool IsExistL( const TDesC& aFileNameWithPath ); |
|
61 |
|
62 }; |
|
63 |
|
64 #include "musresourcefinderutil.inl" |
|
65 |
|
66 #endif // MUSRESOURCEFINDER_H |