equal
deleted
inserted
replaced
84 { |
84 { |
85 aPath=_L("C:\\"); |
85 aPath=_L("C:\\"); |
86 return (KErrNone); |
86 return (KErrNone); |
87 } |
87 } |
88 |
88 |
89 void CTestFileSystem::DriveInfo(TDriveInfo& anInfo,TInt aDriveNumber) const |
|
90 // |
|
91 // Return drive info - iDriveAtt and iBatteryState are already set |
|
92 // |
|
93 { |
|
94 if(!IsValidLocalDriveMapping(aDriveNumber)) |
|
95 return; |
|
96 |
|
97 TLocalDriveCapsV2Buf localDriveCaps; |
|
98 |
|
99 // is the drive local? |
|
100 if (!IsProxyDrive(aDriveNumber)) |
|
101 { |
|
102 // if not valid local drive, use default values in localDriveCaps |
|
103 // if valid local drive and not locked, use TBusLocalDrive::Caps() values |
|
104 // if valid drive and locked, hard-code attributes |
|
105 (void)GetLocalDrive(aDriveNumber).Caps(localDriveCaps); |
|
106 } |
|
107 else // this need to be made a bit nicer |
|
108 { |
|
109 CExtProxyDrive* pD = GetProxyDrive(aDriveNumber); |
|
110 if(pD) |
|
111 { |
|
112 (void)pD->Caps(localDriveCaps); |
|
113 } |
|
114 } |
|
115 |
|
116 anInfo.iMediaAtt=localDriveCaps().iMediaAtt; |
|
117 anInfo.iType=localDriveCaps().iType; |
|
118 anInfo.iDriveAtt=localDriveCaps().iDriveAtt; |
|
119 } |
|
120 |
89 |
121 /** |
90 /** |
122 Reports whether the specified interface is supported - if it is, |
91 Reports whether the specified interface is supported - if it is, |
123 the supplied interface object is modified to it |
92 the supplied interface object is modified to it |
124 |
93 |