| class TDrive |
Represents a drive in the file server.
Note that drives may act as substitutes for paths on other drives, in which case any access to this drive letter will be translated into a reference to the assigned path. In this way drives can act as short cuts to paths on other drives.
| Private Member Functions | |
|---|---|
| TInt | CheckAttributes (const TDesC &, TUint &, TUint &) |
| TInt | CheckDirectories (const TDesC &, const TDesC &) |
| TInt | CheckMountAndEntryNames (const TDesC &, const TDesC &) |
| void | DirOpenL (CSessionFs *, TInt &, const TDesC &, TUint , const TUidType &, CDirCB *&) |
| void | DoCompleteDismountNotify ( TInt ) |
| void | DoDismount () |
| void | DoEntryL (const TDesC &, TEntry &) |
| void | DoMountFileSystemL ( CMountCB *&, TBool , TUint32 ) |
| IMPORT_C void | DriveFault ( TBool ) |
| void | FileOpenL (CFsRequest *, TInt &, const TDesC &, TUint , TFileOpen , CFileCB *&, CFileShare *&) |
| IMPORT_C TBool | IsDriveThread () |
| TBool | IsExtensionMounted ( CProxyDriveFactory *) |
| IMPORT_C TBool | IsMainThread () |
| CFileCache * | LocateClosedFile (const TDesC &, TBool ) |
| CFileCB * | LocateFile (const TDesC &) |
| CFileCB * | LocateFileByPath (const TDesC &) |
| TBool | ReMount () |
| void | ReadSectionL (const TDesC &, TInt64 , TAny *, TInt , const RMessagePtr2 &) |
| void | SetVolumeL (const TDesC &, HBufC *&) |
| TInt | ValidateShare ( CFileCB &, TShare ) |
| Private Member Enumerations | |
|---|---|
| enum | anonymous { ENotifyOff = 0x01, EDismountDeferred = 0x02, ENotRugged = 0x04, EClampPresent = 0x08, EDriveIsSynch = 0x10 } |
| Private Attributes | |
|---|---|
| TUint | iAtt |
| TBool | iChanged |
| CMountCB * | iCurrentMount |
| TInt | iDismountLock |
| TInt | iDriveFlags |
| TInt | iDriveNumber |
| TDriveExtInfo | iExtInfo |
| CFileSystem * | iFSys |
| TInt | iLastMountError |
| RFastLock | iLock |
| CFsObjectCon * | iMount |
| TInt | iMountFailures |
| TInt | iMountNumber |
| TInt | iReason |
| TInt | iReservedSpace |
| TInt | iSpare1 |
| TInt | iSpare2 |
| HBufC * | iSubst |
| TDrive * | iSubstedDrive |
| TInt | CheckAttributes | ( | const TDesC & | aName, |
| TUint & | aSetAttMask, | |||
| TUint & | aClearAttMask | |||
| ) | [private] | |||
| TInt | CheckDirectories | ( | const TDesC & | anOldName, |
| const TDesC & | aNewName | |||
| ) | [private] | |||
| TInt | CheckDisk | ( | TInt | aOperation, |
| TAny * | aParam1 = NULL, | |||
| TAny * | aParam2 = NULL | |||
| ) | ||||
| TInt | CheckMountAndEntryName | ( | const TDesC & | aName | ) |
| const TDesC & aName |
| TInt | CheckMountAndEntryNames | ( | const TDesC & | anOldName, |
| const TDesC & | aNewName | |||
| ) | [private] | |||
| TInt | ClearDevicePassword | ( | TMediaPassword & | aPassword | ) |
| TMediaPassword & aPassword |
| TInt | ControlIO | ( | const RMessagePtr2 & | aMessage, |
| TInt | aCommand, | |||
| TAny * | aParam1, | |||
| TAny * | aParam2 | |||
| ) | ||||
| const RMessagePtr2 & aMessage | |
| TInt aCommand | |
| TAny * aParam1 | |
| TAny * aParam2 |
| CMountCB & | CurrentMount | ( | ) | const [inline] |
Gets a reference to the object representing the current mount.
| TInt | DirOpen | ( | CSessionFs * | aSession, |
| TInt & | aHandle, | |||
| const TDesC & | aName, | |||
| TUint | anAtt, | |||
| const TUidType & | aUidType | |||
| ) | ||||
| void | DirOpenL | ( | CSessionFs * | aSession, |
| TInt & | aHandle, | |||
| const TDesC & | aName, | |||
| TUint | anAtt, | |||
| const TUidType & | aUidType, | |||
| CDirCB *& | aDir | |||
| ) | [private] | |||
| TInt | DismountExtension | ( | CProxyDriveFactory * | aFactory, |
| TBool | aIsPrimary | |||
| ) | ||||
| CProxyDriveFactory * aFactory | |
| TBool aIsPrimary |
| void | DoCompleteDismountNotify | ( | TInt | aCompletionCode | ) | [private] |
| TInt aCompletionCode |
| void | DoMountFileSystemL | ( | CMountCB *& | apMount, |
| TBool | aForceMount, | |||
| TUint32 | aFsNameHash | |||
| ) | [private] | |||
| IMPORT_C void | DriveFault | ( | TBool | aDriveError | ) | const [private] |
| TBool aDriveError |
| TInt | FileOpen | ( | CFsRequest * | aRequest, |
| TInt & | aHandle, | |||
| const TDesC & | aName, | |||
| TUint | aMode, | |||
| TFileOpen | anOpen | |||
| ) | ||||
| void | FileOpenL | ( | CFsRequest * | aRequest, |
| TInt & | aHandle, | |||
| const TDesC & | aName, | |||
| TUint | aMode, | |||
| TFileOpen | anOpen, | |||
| CFileCB *& | aFileCB, | |||
| CFileShare *& | aFileShare | |||
| ) | [private] | |||
| TInt | FileTemp | ( | CFsRequest * | aRequest, |
| TInt & | aHandle, | |||
| const TDesC & | aPath, | |||
| TDes & | aName, | |||
| TUint | aMode | |||
| ) | ||||
| TInt | FinaliseMount | ( | TInt | aOperation, |
| TAny * | aParam1 = NULL, | |||
| TAny * | aParam2 = NULL | |||
| ) | ||||
| TInt | FlushCachedFileInfo | ( | TBool | aPurgeCache = EFalse | ) |
| TBool aPurgeCache = EFalse |
| TInt | ForceRemountDrive | ( | const TDesC8 * | aMountInfo, |
| TInt | aMountInfoMessageHandle, | |||
| TUint | aFlags | |||
| ) | ||||
| CFormatCB * | FormatOpenL | ( | CFsRequest * | aRequest, |
| TInt & | aFmtHandle, | |||
| TFormatMode | aFmtMode, | |||
| const TLDFormatInfo * | apLDFormatInfo, | |||
| const TVolFormatParam * | apVolFormatParam | |||
| ) | ||||
| CFsRequest * aRequest | |
| TInt & aFmtHandle | |
| TFormatMode aFmtMode | |
| const TLDFormatInfo * apLDFormatInfo | |
| const TVolFormatParam * apVolFormatParam |
| TInt | FreeDiskSpace | ( | TInt64 & | aFreeDiskSpace | ) |
| TInt64 & aFreeDiskSpace |
| TInt | GetShortName | ( | const TDesC & | aLongName, |
| TDes & | aShortName | |||
| ) | ||||
| TBool | IsCurrentMount | ( | CMountCB & | aMount | ) | const [inline] |
| CMountCB & aMount |
| TBool | IsExtensionMounted | ( | CProxyDriveFactory * | aFactory | ) | [private] |
| CProxyDriveFactory * aFactory |
| TInt | IsFileInRom | ( | const TDesC & | aFileName, |
| TUint8 *& | aFileStart | |||
| ) | ||||
| TInt | IsFileOpen | ( | const TDesC & | aFileName, |
| CFileCB *& | aFileCB | |||
| ) | ||||
| TBool | IsRugged | ( | ) | const [inline] |
Returns whether the current drive is running as rugged Fat or not.If IsRugged flag is set then in the event of power failure fat/metadata will be in a valid state if the scandrive utility is run immediately after.
| CFileCache * | LocateClosedFile | ( | const TDesC & | aName, |
| TBool | aResurrect = ETrue | |||
| ) | [private] | |||
| CFileCB * | LocateFile | ( | const TDesC & | aName | ) | [private] |
| const TDesC & aName |
| CFileCB * | LocateFileByPath | ( | const TDesC & | aPath | ) | [private] |
| const TDesC & aPath |
| TInt | LockDevice | ( | TMediaPassword & | aOld, |
| TMediaPassword & | aNew, | |||
| TBool | aStore | |||
| ) | ||||
| TMediaPassword & aOld | |
| TMediaPassword & aNew | |
| TBool aStore |
| CFsObjectCon & | Mount | ( | ) | const [inline] |
Gets a reference to the object representing the mount on which the file resides.
| TInt | MountExtension | ( | CProxyDriveFactory * | aFactory, |
| TBool | aIsPrimary | |||
| ) | ||||
| CProxyDriveFactory * aFactory | |
| TBool aIsPrimary |
| TInt | ReadFileSection | ( | const TDesC & | aName, |
| TInt | aPos, | |||
| TAny * | aTrg, | |||
| TInt | aLength, | |||
| const RMessagePtr2 & | aMessage | |||
| ) | ||||
| const TDesC & aName | |
| TInt aPos | |
| TAny * aTrg | |
| TInt aLength | |
| const RMessagePtr2 & aMessage |
| TInt | ReadFileSection64 | ( | const TDesC & | aName, |
| TInt64 | aPos, | |||
| TAny * | aTrg, | |||
| TInt | aLength, | |||
| const RMessagePtr2 & | aMessage | |||
| ) | ||||
| const TDesC & aName | |
| TInt64 aPos | |
| TAny * aTrg | |
| TInt aLength | |
| const RMessagePtr2 & aMessage |
| void | ReadSectionL | ( | const TDesC & | aName, |
| TInt64 | aPos, | |||
| TAny * | aTrg, | |||
| TInt | aLength, | |||
| const RMessagePtr2 & | aMessage | |||
| ) | [private] | |||
| const TDesC & aName | |
| TInt64 aPos | |
| TAny * aTrg | |
| TInt aLength | |
| const RMessagePtr2 & aMessage |
| TInt | Rename | ( | const TDesC & | anOldName, |
| const TDesC & | aNewName | |||
| ) | ||||
| TInt | Replace | ( | const TDesC & | anOldName, |
| const TDesC & | aNewName | |||
| ) | ||||
| TInt | RequestFreeSpaceOnMount | ( | TUint64 | aFreeSpaceRequired | ) |
| TUint64 aFreeSpaceRequired |
| TInt | ScanDrive | ( | TInt | aOperation, |
| TAny * | aParam1 = NULL, | |||
| TAny * | aParam2 = NULL | |||
| ) | ||||
| void | SetChanged | ( | TBool | aValue | ) | [inline] |
Sets a flag to state that the drive contents has changed.
| TBool aValue | True if contents has changed; False if unchanged. |
| TInt | SetEntry | ( | const TDesC & | aName, |
| const TTime & | aTime, | |||
| TUint | aMask, | |||
| TUint | aVal | |||
| ) | ||||
| void | SetNotifyOff | ( | ) | [inline] |
Sets the notification flag OFF. The client will not receive notifications on Read or Write failures from the file system.
| void | SetNotifyOn | ( | ) | [inline] |
Sets the notification flag ON. The client will receive notifications on Read or Write failures from the file system.
| void | SetReservedSpace | ( | const TInt | aReservedSpace | ) | [inline] |
Reserves a space of a drive.
| const TInt aReservedSpace | Amount of space to reserve in bytes. |
| void | SetRugged | ( | TBool | aIsRugged | ) | [inline] |
Sets the rugged flag in the drive object.
| TBool aIsRugged |
| void | SetSubst | ( | HBufC * | aSubst | ) | [inline] |
Assigns a path to a drive.
| HBufC * aSubst | Path will be assigned to a drive. |
| void | SetSubstedDrive | ( | TDrive * | aDrive | ) | [inline] |
Sets the drive as substed to the path set by an earlier call to SetSubst() .
| TDrive * aDrive | A pointer to the drive on which the volume is mounted. |
| void | SetSynchronous | ( | TBool | aIsSynch | ) | [inline] |
Set or reset internal EDriveIsSynch flag for the TDrive .
| TBool aIsSynch |
| void | SetVolumeL | ( | const TDesC & | aName, |
| HBufC *& | aBuf | |||
| ) | [private] | |||
| HBufC & | Subst | ( | ) | const [inline] |
Gets the substed path set by an earlier call to SetSubst() .
| TInt | UnclampFile | ( | CMountCB * | aMount, |
| RFileClamp * | aHandle | |||
| ) | ||||
| CMountCB * aMount | |
| RFileClamp * aHandle |
| TInt | UnlockDevice | ( | TMediaPassword & | aPassword, |
| TBool | aStore | |||
| ) | ||||
| TMediaPassword & aPassword | |
| TBool aStore |
| ENotifyOff = 0x01 | |
| EDismountDeferred = 0x02 | |
| ENotRugged = 0x04 | |
| EClampPresent = 0x08 | |
| EDriveIsSynch = 0x10 |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.