equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <f32file.h> |
|
20 #include <e32des16.h> |
|
21 #include "bus-helper.h" |
|
22 |
|
23 |
|
24 char getSystemConfDriveLetter() |
|
25 { |
|
26 RFs fs; |
|
27 User::LeaveIfError(fs.Connect()); |
|
28 TFindFile findFile(fs); |
|
29 |
|
30 char *cpath = NULL; |
|
31 char drive; |
|
32 |
|
33 if (findFile.FindByDir(_L("system.conf"),_L("\\data\\dbus\\")) == KErrNone ) |
|
34 { |
|
35 |
|
36 TBuf16<256> buf16(findFile.File()); |
|
37 |
|
38 cpath = (char *)(buf16.PtrZ()); |
|
39 drive = cpath[0]; |
|
40 } |
|
41 |
|
42 |
|
43 return drive; |
|
44 } |