TDrive Class Reference
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.
Public Member Functions |
---|
| TDrive() |
TInt
| ActiveMounts() |
IMPORT_C TUint | Att() |
TInt
| CheckDisk() |
TInt
| CheckDisk(TInt, TAny *, TAny *) |
TInt
| CheckMount() |
TInt
| CheckMountAndEntryName(const TDesC &) |
TInt
| ClampFile(const TDesC &, TAny *) |
TBool
| ClampFlag() |
TInt
| ClampsOnDrive() |
TInt
| ClearDevicePassword(TMediaPassword &) |
TInt
| ControlIO(const RMessagePtr2 &, TInt, TAny *, TAny *) |
void | CreateL(TInt) |
CMountCB & | CurrentMount() |
TInt
| DeferredDismount() |
TInt
| Delete(const TDesC &) |
TInt
| DirOpen(CSessionFs *, TInt &, const TDesC &, TUint, const TUidType &) |
IMPORT_C void | Dismount() |
TBool
| DismountDeferred() |
TInt
| DismountExtension(CProxyDriveFactory *, TBool) |
void | DismountLock() |
TInt
| DismountLocked() |
TInt
| DismountProxyDrive() |
TInt
| DismountUnlock() |
void | DriveInfo(TDriveInfo &) |
TInt
| DriveNumber() |
TInt
| Entry(const TDesC &, TEntry &) |
TInt
| EraseDevicePassword() |
TDriveExtInfo & | ExtInfo() |
TInt
| ExtensionName(TDes &, TInt) |
CFileSystem & | FSys() |
TInt
| FileOpen(CFsRequest *, TInt &, const TDesC &, TUint, TFileOpen) |
TInt
| FileTemp(CFsRequest *, TInt &, const TDesC &, TDes &, TUint) |
TInt
| FinaliseMount() |
TInt
| FinaliseMount(TInt, TAny *, TAny *) |
TInt
| FlushCachedFileInfo(TBool) |
void | FlushCachedFileInfoL() |
void | ForceDismount() |
TInt
| ForceRemountDrive(const TDesC8 *, TInt, TUint) |
TInt
| ForceUnmountFileSystemForFormatting() |
CFormatCB * | FormatOpenL(CFsRequest *, TInt &, TFormatMode, const TLDFormatInfo *, const TVolFormatParam *) |
TInt
| FreeDiskSpace(TInt64 &) |
CFileSystem *& | GetFSys() |
TInt
| GetLongName(const TDesC &, TDes &) |
IMPORT_C TBool | GetNotifyUser() |
TInt
| GetReason() |
TInt
| GetShortName(const TDesC &, TDes &) |
TBool
| IsChanged() |
TBool
| IsCurrentMount(CMountCB &) |
IMPORT_C TBool | IsCurrentWriteFunction() |
TInt
| IsFileInRom(const TDesC &, TUint8 *&) |
TInt
| IsFileOpen(const TDesC &, CFileCB *&) |
TBool
| IsLocal() |
TBool
| IsMounted() |
TBool
| IsRemovable() |
TBool
| IsRom() |
TBool
| IsRugged() |
TBool
| IsSubsted() |
TBool
| IsSynchronous() |
TBool
| IsWriteProtected() |
IMPORT_C TBool | IsWriteableResource() |
void | Lock() |
TInt
| LockDevice(TMediaPassword &, TMediaPassword &, TBool) |
TInt
| MkDir(const TDesC &) |
CFsObjectCon & | Mount() |
TInt
| MountControl(TInt, TInt, TAny *) |
TInt
| MountExtension(CProxyDriveFactory *, TBool) |
void | MountFileSystem(TBool, TUint32) |
TInt
| MountedVolumeSize(TUint64 &) |
void | MultiSlotDriveCheck() |
void | PurgeDirty(CMountCB &) |
TBool
| ReMount(CMountCB &) |
void | ReactivateMounts() |
TInt
| ReadFileSection(const TDesC &, TInt, TAny *, TInt, const RMessagePtr2 &) |
TInt
| ReadFileSection64(const TDesC &, TInt64, TAny *, TInt, const RMessagePtr2 &) |
TInt
| Rename(const TDesC &, const TDesC &) |
TInt
| Replace(const TDesC &, const TDesC &) |
TInt
| RequestFreeSpaceOnMount(TUint64) |
TInt
| ReservedSpace() |
TInt
| RmDir(const TDesC &) |
TInt
| ScanDrive() |
TInt
| ScanDrive(TInt, TAny *, TAny *) |
void | SetAtt(TUint) |
void | SetChanged(TBool) |
void | SetClampFlag(TBool) |
void | SetDismountDeferred(TBool) |
TInt
| SetEntry(const TDesC &, const TTime &, TUint, TUint) |
void | SetNotifyOff() |
void | SetNotifyOn() |
void | SetReservedSpace(const TInt) |
void | SetRugged(TBool) |
void | SetSubst(HBufC *) |
void | SetSubstedDrive(TDrive *) |
void | SetSynchronous(TBool) |
TInt
| SetVolume(const TDesC &) |
HBufC & | Subst() |
TDrive & | SubstedDrive() |
void | UnLock() |
TInt
| UnclampFile(CMountCB *, RFileClamp *) |
TInt
| UnlockDevice(TMediaPassword &, TBool) |
TInt
| Volume(TVolumeInfo &) |
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) |
Constructor & Destructor Documentation
Member Functions Documentation
CheckAttributes(const TDesC &, TUint &, TUint &)
CheckDirectories(const TDesC &, const TDesC &)
TInt
| CheckDirectories | ( | const TDesC & | anOldName, |
| const TDesC & | aNewName |
| ) | [private] |
CheckDisk(TInt, TAny *, TAny *)
CheckMountAndEntryName(const TDesC &)
TInt
| CheckMountAndEntryName | ( | const TDesC & | aName | ) | |
CheckMountAndEntryNames(const TDesC &, const TDesC &)
TInt
| CheckMountAndEntryNames | ( | const TDesC & | anOldName, |
| const TDesC & | aNewName |
| ) | [private] |
ClampFile(const TDesC &, TAny *)
ClearDevicePassword(TMediaPassword &)
ControlIO(const RMessagePtr2 &, TInt, TAny *, TAny *)
CreateL(TInt)
void | CreateL | ( | TInt | aDriveNumber | ) | |
CurrentMount()
Gets a reference to the object representing the current mount.
DirOpen(CSessionFs *, TInt &, const TDesC &, TUint, const TUidType &)
DirOpenL(CSessionFs *, TInt &, const TDesC &, TUint, const TUidType &, CDirCB *&)
DismountDeferred()
TBool
| DismountDeferred | ( | ) | const [inline] |
DismountExtension(CProxyDriveFactory *, TBool)
DismountLocked()
TInt
| DismountLocked | ( | ) | const |
DismountProxyDrive()
TInt
| DismountProxyDrive | ( | ) | |
DoCompleteDismountNotify(TInt)
void | DoCompleteDismountNotify | ( | TInt | aCompletionCode | ) | [private] |
DoDismount()
void | DoDismount | ( | ) | [private] |
DoEntryL(const TDesC &, TEntry &)
void | DoEntryL | ( | const TDesC & | aName, |
| TEntry & | anEntry |
| ) | [private] |
DoMountFileSystemL(CMountCB *&, TBool, TUint32)
DriveFault(TBool)
IMPORT_C void | DriveFault | ( | TBool | aDriveError | ) | const [private] |
DriveNumber()
TInt
| DriveNumber | ( | ) | const [inline] |
Entry(const TDesC &, TEntry &)
EraseDevicePassword()
TInt
| EraseDevicePassword | ( | ) | |
ExtensionName(TDes &, TInt)
FSys()
Gets a reference to the object representing the file system
FileOpen(CFsRequest *, TInt &, const TDesC &, TUint, TFileOpen)
FileOpenL(CFsRequest *, TInt &, const TDesC &, TUint, TFileOpen, CFileCB *&, CFileShare *&)
FileTemp(CFsRequest *, TInt &, const TDesC &, TDes &, TUint)
FinaliseMount(TInt, TAny *, TAny *)
FlushCachedFileInfo(TBool)
TInt
| FlushCachedFileInfo | ( | TBool | aPurgeCache = EFalse | ) | |
Parameters
TBool aPurgeCache = EFalse | |
FlushCachedFileInfoL()
void | FlushCachedFileInfoL | ( | ) | |
ForceRemountDrive(const TDesC8 *, TInt, TUint)
ForceUnmountFileSystemForFormatting()
TInt
| ForceUnmountFileSystemForFormatting | ( | ) | |
FormatOpenL(CFsRequest *, TInt &, TFormatMode, const TLDFormatInfo *, const TVolFormatParam *)
GetFSys()
Gets the object representing the file system
GetLongName(const TDesC &, TDes &)
GetNotifyUser()
IMPORT_C TBool | GetNotifyUser | ( | ) | |
GetReason()
TInt
| GetReason | ( | ) | const [inline] |
GetShortName(const TDesC &, TDes &)
IsChanged()
TBool
| IsChanged | ( | ) | const [inline] |
Determines whether the drive content has changed.
IsCurrentMount(CMountCB &)
IsCurrentWriteFunction()
IMPORT_C TBool | IsCurrentWriteFunction | ( | ) | const |
IsDriveThread()
IMPORT_C TBool | IsDriveThread | ( | ) | const [private] |
IsExtensionMounted(CProxyDriveFactory *)
IsFileInRom(const TDesC &, TUint8 *&)
IsFileOpen(const TDesC &, CFileCB *&)
IsLocal()
TBool
| IsLocal | ( | ) | const [inline] |
Determines whether attribute is set to local.
IsMainThread()
IMPORT_C TBool | IsMainThread | ( | ) | const [private] |
IsMounted()
TBool
| IsMounted | ( | ) | const [inline] |
Determines whether the drive is mounted.
IsRemovable()
TBool
| IsRemovable | ( | ) | const [inline] |
Determines whether the drive is removable.
IsRom()
TBool
| IsRom | ( | ) | const [inline] |
Determines whether the drive is ROM drive.
IsRugged()
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.
IsSubsted()
TBool
| IsSubsted | ( | ) | const [inline] |
Determines whether the drive is substed.
IsSynchronous()
TBool
| IsSynchronous | ( | ) | const [inline] |
IsWriteableResource()
IMPORT_C TBool | IsWriteableResource | ( | ) | const |
LocateClosedFile(const TDesC &, TBool)
CFileCache * | LocateClosedFile | ( | const TDesC & | aName, |
| TBool | aResurrect = ETrue |
| ) | [private] |
LocateFile(const TDesC &)
LocateFileByPath(const TDesC &)
Lock()
Locks the drive.This function acquires iLock mutex.
LockDevice(TMediaPassword &, TMediaPassword &, TBool)
Mount()
CFsObjectCon & | Mount | ( | ) | const [inline] |
Gets a reference to the object representing the mount on which the file resides.
MountControl(TInt, TInt, TAny *)
MountExtension(CProxyDriveFactory *, TBool)
MountFileSystem(TBool, TUint32)
void | MountFileSystem | ( | TBool | aForceMount, |
| TUint32 | aFsNameHash = 0 |
| ) | |
MountedVolumeSize(TUint64 &)
MultiSlotDriveCheck()
void | MultiSlotDriveCheck | ( | ) | |
ReadFileSection(const TDesC &, TInt, TAny *, TInt, const RMessagePtr2 &)
ReadFileSection64(const TDesC &, TInt64, TAny *, TInt, const RMessagePtr2 &)
ReadSectionL(const TDesC &, TInt64, TAny *, TInt, const RMessagePtr2 &)
Rename(const TDesC &, const TDesC &)
Replace(const TDesC &, const TDesC &)
RequestFreeSpaceOnMount(TUint64)
TInt
| RequestFreeSpaceOnMount | ( | TUint64 | aFreeSpaceRequired | ) | |
ReservedSpace()
TInt
| ReservedSpace | ( | ) | const [inline] |
Gets the reserved space of a drive
ScanDrive(TInt, TAny *, TAny *)
SetChanged(TBool)
void | SetChanged | ( | TBool | aValue | ) | [inline] |
Sets a flag to state that the drive contents has changed.
Parameters
TBool aValue | True if contents has changed; False if unchanged. |
SetClampFlag(TBool)
void | SetClampFlag | ( | TBool | aClamped | ) | |
SetDismountDeferred(TBool)
void | SetDismountDeferred | ( | TBool | aPending | ) | |
SetEntry(const TDesC &, const TTime &, TUint, TUint)
SetNotifyOff()
void | SetNotifyOff | ( | ) | [inline] |
Sets the notification flag OFF. The client will not receive notifications on Read or Write failures from the file system.
SetNotifyOn()
void | SetNotifyOn | ( | ) | [inline] |
Sets the notification flag ON. The client will receive notifications on Read or Write failures from the file system.
SetReservedSpace(const TInt)
void | SetReservedSpace | ( | const TInt | aReservedSpace | ) | [inline] |
Reserves a space of a drive.
Parameters
const TInt aReservedSpace | Amount of space to reserve in bytes. |
SetRugged(TBool)
void | SetRugged | ( | TBool | aIsRugged | ) | [inline] |
Sets the rugged flag in the drive object.
IsRugged()
SetSubst(HBufC *)
void | SetSubst | ( | HBufC * | aSubst | ) | [inline] |
Assigns a path to a drive.
Parameters
HBufC * aSubst | Path will be assigned to a drive. |
SetSubstedDrive(TDrive *)
void | SetSubstedDrive | ( | TDrive * | aDrive | ) | [inline] |
Sets the drive as substed to the path set by an earlier call to SetSubst().
Parameters
TDrive * aDrive | A pointer to the drive on which the volume is mounted. |
SetSynchronous(TBool)
void | SetSynchronous | ( | TBool | aIsSynch | ) | [inline] |
Set or reset internal EDriveIsSynch flag for the TDrive.
SetVolumeL(const TDesC &, HBufC *&)
void | SetVolumeL | ( | const TDesC & | aName, |
| HBufC *& | aBuf |
| ) | [private] |
Subst()
HBufC & | Subst | ( | ) | const [inline] |
Gets the substed path set by an earlier call to SetSubst().
SubstedDrive()
TDrive & | SubstedDrive | ( | ) | const [inline] |
UnLock()
UnLocks the drive.This function signals the iLock mutex.
UnclampFile(CMountCB *, RFileClamp *)
UnlockDevice(TMediaPassword &, TBool)
ValidateShare(CFileCB &, TShare)
Member Enumerations Documentation
Enum anonymous
Enumerators
ENotifyOff = 0x01 | |
EDismountDeferred = 0x02 | |
ENotRugged = 0x04 | |
EClampPresent = 0x08 | |
EDriveIsSynch = 0x10 | |
Member Data Documentation
TInt
iDismountLock
TInt
| iDismountLock | [private] |
TInt
iDriveFlags
TInt
| iDriveFlags | [private] |
TInt
iDriveNumber
TInt
| iDriveNumber | [private] |
TInt
iLastMountError
TInt
| iLastMountError | [private] |
CFsObjectCon * iMount
CFsObjectCon * | iMount | [private] |
TInt
iMountFailures
TInt
| iMountFailures | [private] |
TInt
iMountNumber
TInt
| iMountNumber | [private] |
TInt
iReservedSpace
TInt
| iReservedSpace | [private] |
TDrive * iSubstedDrive
TDrive * | iSubstedDrive | [private] |
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.