equal
deleted
inserted
replaced
|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #include "BootModeMapping.h" |
|
17 #include <f32file.h> |
|
18 |
|
19 /** |
|
20 Given a boot mode this method will provide the associated resource file name. |
|
21 |
|
22 @param aBootMode TUint specifying which boot mode a resource file name is requested for. |
|
23 @param aResourceFileName Descriptor to hold the resource file name. |
|
24 @return KErrNone |
|
25 */ |
|
26 |
|
27 void TBootModeMapping::GetResourceFileName(TUint aBootMode, TDes& aResourceFileName, RFs& aFs) const |
|
28 { |
|
29 // the file name format string consists of Z: (drive name), %s for private path (\private\__SID__\), |
|
30 // and file name (SSCForStartupMode%d.rsc, where %d is aBootMode) |
|
31 _LIT(KBootModeFileName, "Z:%SSSCForStartupMode%d.rsc"); |
|
32 |
|
33 TPath privatePath; |
|
34 aFs.PrivatePath(privatePath); |
|
35 aResourceFileName.Format(KBootModeFileName, &privatePath, aBootMode); |
|
36 } |