1 /* |
|
2 * Copyright (c) 2002 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: Static utility class for file operations. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef LOCFILEUTILS_H_ |
|
20 #define LOCFILEUTILS_H_ |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 class RFs; |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 /** |
|
31 * Static utility class for file operations. |
|
32 * @lib locutils.lib |
|
33 * @since 2.6 |
|
34 */ |
|
35 class LocFileUtils |
|
36 { |
|
37 public: // New functions |
|
38 |
|
39 /** |
|
40 * Sets correct drive to aFileName. In normal use aDrive is the drive where |
|
41 * calling dll resides, and it has been set by calling Dll::FileName(). |
|
42 * |
|
43 * @param aDrive file name where drive is extracted from |
|
44 * @param aFileName name which will be updated |
|
45 */ |
|
46 IMPORT_C static void GetFileWithCorrectDriveL( const TFileName& aDrive, |
|
47 TFileName& aFileName ); |
|
48 |
|
49 /** |
|
50 * Uses GetFileWithCorrectDriveL and then |
|
51 * BaflUtils::NearestLanguageFile() to locate correct file and language |
|
52 * version. To be used with resource files. |
|
53 * Leaves if file is not found. |
|
54 * |
|
55 * @param aSession opened file server session |
|
56 * @param aDrive file name where drive is extracted from |
|
57 * @param aFileName name which will be updated |
|
58 */ |
|
59 IMPORT_C static void GetNearestLanguageFileL( RFs& aSession, |
|
60 const TFileName& aDrive, |
|
61 TFileName& aFileName ); |
|
62 }; |
|
63 |
|
64 #endif // LOCFILEUTILS_H_ |
|
65 |
|
66 // End of File |
|