author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 26 Jan 2010 13:13:38 +0200 | |
changeset 14 | 5d2844f35677 |
parent 2 | 4122176ea935 |
permissions | -rw-r--r-- |
0 | 1 |
/* |
2
4122176ea935
Revision: 200948 + Removing redundant base integration tests and fixing build errors
John Imhofe <john.imhofe@nokia.com>
parents:
0
diff
changeset
|
2 |
* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
0 | 3 |
* All rights reserved. |
4 |
* This component and the accompanying materials are made available |
|
2
4122176ea935
Revision: 200948 + Removing redundant base integration tests and fixing build errors
John Imhofe <john.imhofe@nokia.com>
parents:
0
diff
changeset
|
5 |
* under the terms of "Eclipse Public License v1.0" |
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 |
* |
|
2
4122176ea935
Revision: 200948 + Removing redundant base integration tests and fixing build errors
John Imhofe <john.imhofe@nokia.com>
parents:
0
diff
changeset
|
14 |
* Description: |
0 | 15 |
* |
16 |
*/ |
|
17 |
||
2
4122176ea935
Revision: 200948 + Removing redundant base integration tests and fixing build errors
John Imhofe <john.imhofe@nokia.com>
parents:
0
diff
changeset
|
18 |
|
0 | 19 |
#include "T_TestFSY.h" |
20 |
||
21 |
/*@{*/ |
|
22 |
_LIT(KDefaultPath, "C:\\"); |
|
23 |
/*@}*/ |
|
24 |
||
25 |
CTestFileSystem::CTestFileSystem() |
|
26 |
// |
|
27 |
// Constructor |
|
28 |
// |
|
29 |
{ |
|
30 |
} |
|
31 |
||
32 |
CMountCB* CTestFileSystem::NewMountL() const |
|
33 |
// |
|
34 |
// Create a new mount control block |
|
35 |
// |
|
36 |
{ |
|
37 |
return (new(ELeave) CTestMountCB); |
|
38 |
} |
|
39 |
||
40 |
CFileCB* CTestFileSystem::NewFileL() const |
|
41 |
// |
|
42 |
// Create a new file |
|
43 |
// |
|
44 |
{ |
|
45 |
return (new(ELeave) CTestFileCB); |
|
46 |
} |
|
47 |
||
48 |
CDirCB* CTestFileSystem::NewDirL() const |
|
49 |
// |
|
50 |
// create a new directory lister |
|
51 |
// |
|
52 |
{ |
|
53 |
return (new(ELeave) CTestDirCB); |
|
54 |
} |
|
55 |
||
56 |
CFormatCB* CTestFileSystem::NewFormatL() const |
|
57 |
// |
|
58 |
// Create a new media formatter |
|
59 |
// |
|
60 |
{ |
|
61 |
return (new(ELeave) CTestFormatCB); |
|
62 |
} |
|
63 |
||
64 |
TInt CTestFileSystem::DefaultPath(TDes& aPath) const |
|
65 |
// |
|
66 |
// Return the intial default path |
|
67 |
// |
|
68 |
{ |
|
69 |
aPath=KDefaultPath; |
|
70 |
return KErrNone; |
|
71 |
} |
|
72 |
||
73 |
void CTestFileSystem::DriveInfo(TDriveInfo& anInfo,TInt aDriveNumber) const |
|
74 |
// |
|
75 |
// Return drive info - iDriveAtt and iBatteryState are already set |
|
76 |
// |
|
77 |
{ |
|
78 |
TLocalDriveCapsV2Buf localDriveCaps; |
|
79 |
DriveNumberToLocalDrive(aDriveNumber).Caps(localDriveCaps); |
|
80 |
anInfo.iMediaAtt=localDriveCaps().iMediaAtt; |
|
81 |
anInfo.iType=localDriveCaps().iType; |
|
82 |
anInfo.iDriveAtt=localDriveCaps().iDriveAtt; |
|
83 |
} |
|
84 |
||
85 |
TBusLocalDrive& CTestFileSystem::DriveNumberToLocalDrive(TInt aDriveNumber) const |
|
86 |
// |
|
87 |
// Return the local drive associated with aDriveNumber |
|
88 |
// |
|
89 |
{ |
|
90 |
return(GetLocalDrive(aDriveNumber)); |
|
91 |
} |