equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2002-2007 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: This is MMC version of TPbk2ExtraDriveAvailable |
|
15 * Checks is there MMC in phone |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #include "tpbk2multidriveavailable.h" |
|
21 #include <pathinfo.h> |
|
22 |
|
23 // ================= MEMBER FUNCTIONS ======================= |
|
24 |
|
25 // -------------------------------------------------------------------------- |
|
26 // TPbk2MultiDriveAvailable::ExtraDriveAvailable |
|
27 // -------------------------------------------------------------------------- |
|
28 // |
|
29 TBool TPbk2MultiDriveAvailable::MultiDriveAvailable( RFs& aFs ) |
|
30 { |
|
31 TBool extraDriveAvailable( EFalse ); |
|
32 TInt drive( KErrNone ); |
|
33 TInt err = aFs.CharToDrive( PathInfo::MemoryCardRootPath()[0], drive ); |
|
34 if ( err == KErrNone ) |
|
35 { |
|
36 TVolumeInfo volumeInfo; |
|
37 extraDriveAvailable = ( aFs.Volume( volumeInfo, drive ) == KErrNone ); |
|
38 } |
|
39 return extraDriveAvailable; |
|
40 } |
|
41 |
|
42 // End of file |