TDrive Class Reference

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.

Public Member Functions
TDrive()
TInt ActiveMounts()
IMPORT_C TUintAtt()
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 *)
voidCreateL(TInt)
CMountCB &CurrentMount()
TInt DeferredDismount()
TInt Delete(const TDesC &)
TInt DirOpen(CSessionFs *, TInt &, const TDesC &, TUint, const TUidType &)
IMPORT_C voidDismount()
TBool DismountDeferred()
TInt DismountExtension(CProxyDriveFactory *, TBool)
voidDismountLock()
TInt DismountLocked()
TInt DismountProxyDrive()
TInt DismountUnlock()
voidDriveInfo(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)
voidFlushCachedFileInfoL()
voidForceDismount()
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 TBoolGetNotifyUser()
TInt GetReason()
TInt GetShortName(const TDesC &, TDes &)
TBool IsChanged()
TBool IsCurrentMount(CMountCB &)
IMPORT_C TBoolIsCurrentWriteFunction()
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 TBoolIsWriteableResource()
voidLock()
TInt LockDevice(TMediaPassword &, TMediaPassword &, TBool)
TInt MkDir(const TDesC &)
CFsObjectCon &Mount()
TInt MountControl(TInt, TInt, TAny *)
TInt MountExtension(CProxyDriveFactory *, TBool)
voidMountFileSystem(TBool, TUint32)
TInt MountedVolumeSize(TUint64 &)
voidMultiSlotDriveCheck()
voidPurgeDirty(CMountCB &)
TBool ReMount(CMountCB &)
voidReactivateMounts()
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 *)
voidSetAtt(TUint)
voidSetChanged(TBool)
voidSetClampFlag(TBool)
voidSetDismountDeferred(TBool)
TInt SetEntry(const TDesC &, const TTime &, TUint, TUint)
voidSetNotifyOff()
voidSetNotifyOn()
voidSetReservedSpace(const TInt)
voidSetRugged(TBool)
voidSetSubst(HBufC *)
voidSetSubstedDrive(TDrive *)
voidSetSynchronous(TBool)
TInt SetVolume(const TDesC &)
HBufC &Subst()
TDrive &SubstedDrive()
voidUnLock()
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 &)
voidDirOpenL(CSessionFs *, TInt &, const TDesC &, TUint, const TUidType &, CDirCB *&)
voidDoCompleteDismountNotify(TInt)
voidDoDismount()
voidDoEntryL(const TDesC &, TEntry &)
voidDoMountFileSystemL(CMountCB *&, TBool, TUint32)
IMPORT_C voidDriveFault(TBool)
voidFileOpenL(CFsRequest *, TInt &, const TDesC &, TUint, TFileOpen, CFileCB *&, CFileShare *&)
IMPORT_C TBoolIsDriveThread()
TBool IsExtensionMounted(CProxyDriveFactory *)
IMPORT_C TBoolIsMainThread()
CFileCache *LocateClosedFile(const TDesC &, TBool)
CFileCB *LocateFile(const TDesC &)
CFileCB *LocateFileByPath(const TDesC &)
TBool ReMount()
voidReadSectionL(const TDesC &, TInt64, TAny *, TInt, const RMessagePtr2 &)
voidSetVolumeL(const TDesC &, HBufC *&)
TInt ValidateShare(CFileCB &, TShare)
Private Member Enumerations
enumanonymous { 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

Constructor & Destructor Documentation

TDrive()

TDrive()

Member Functions Documentation

ActiveMounts()

TInt ActiveMounts()const

Att()

IMPORT_C TUintAtt()

CheckAttributes(const TDesC &, TUint &, TUint &)

TInt CheckAttributes(const TDesC &aName,
TUint &aSetAttMask,
TUint &aClearAttMask
)[private]

Parameters

const TDesC & aName
TUint & aSetAttMask
TUint & aClearAttMask

CheckDirectories(const TDesC &, const TDesC &)

TInt CheckDirectories(const TDesC &anOldName,
const TDesC &aNewName
)[private]

Parameters

const TDesC & anOldName
const TDesC & aNewName

CheckDisk()

TInt CheckDisk()

CheckDisk(TInt, TAny *, TAny *)

TInt CheckDisk(TIntaOperation,
TAny *aParam1 = NULL,
TAny *aParam2 = NULL
)

Parameters

TInt aOperation
TAny * aParam1 = NULL
TAny * aParam2 = NULL

CheckMount()

TInt CheckMount()

CheckMountAndEntryName(const TDesC &)

TInt CheckMountAndEntryName(const TDesC &aName)

Parameters

const TDesC & aName

CheckMountAndEntryNames(const TDesC &, const TDesC &)

TInt CheckMountAndEntryNames(const TDesC &anOldName,
const TDesC &aNewName
)[private]

Parameters

const TDesC & anOldName
const TDesC & aNewName

ClampFile(const TDesC &, TAny *)

TInt ClampFile(const TDesC &aName,
TAny *aHandle
)

Parameters

const TDesC & aName
TAny * aHandle

ClampFlag()

TBool ClampFlag()

ClampsOnDrive()

TInt ClampsOnDrive()

ClearDevicePassword(TMediaPassword &)

TInt ClearDevicePassword(TMediaPassword &aPassword)

Parameters

TMediaPassword & aPassword

ControlIO(const RMessagePtr2 &, TInt, TAny *, TAny *)

TInt ControlIO(const RMessagePtr2 &aMessage,
TIntaCommand,
TAny *aParam1,
TAny *aParam2
)

Parameters

const RMessagePtr2 & aMessage
TInt aCommand
TAny * aParam1
TAny * aParam2

CreateL(TInt)

voidCreateL(TIntaDriveNumber)

Parameters

TInt aDriveNumber

CurrentMount()

CMountCB &CurrentMount()const [inline]

Gets a reference to the object representing the current mount.

DeferredDismount()

TInt DeferredDismount()

Delete(const TDesC &)

TInt Delete(const TDesC &aName)

Parameters

const TDesC & aName

DirOpen(CSessionFs *, TInt &, const TDesC &, TUint, const TUidType &)

TInt DirOpen(CSessionFs *aSession,
TInt &aHandle,
const TDesC &aName,
TUintanAtt,
const TUidType &aUidType
)

Parameters

CSessionFs * aSession
TInt & aHandle
const TDesC & aName
TUint anAtt
const TUidType & aUidType

DirOpenL(CSessionFs *, TInt &, const TDesC &, TUint, const TUidType &, CDirCB *&)

voidDirOpenL(CSessionFs *aSession,
TInt &aHandle,
const TDesC &aName,
TUintanAtt,
const TUidType &aUidType,
CDirCB *&aDir
)[private]

Parameters

CSessionFs * aSession
TInt & aHandle
const TDesC & aName
TUint anAtt
const TUidType & aUidType
CDirCB *& aDir

Dismount()

IMPORT_C voidDismount()

DismountDeferred()

TBool DismountDeferred()const [inline]

DismountExtension(CProxyDriveFactory *, TBool)

TInt DismountExtension(CProxyDriveFactory *aFactory,
TBoolaIsPrimary
)

Parameters

CProxyDriveFactory * aFactory
TBool aIsPrimary

DismountLock()

voidDismountLock()

DismountLocked()

TInt DismountLocked()const

DismountProxyDrive()

TInt DismountProxyDrive()

DismountUnlock()

TInt DismountUnlock()

DoCompleteDismountNotify(TInt)

voidDoCompleteDismountNotify(TIntaCompletionCode)[private]

Parameters

TInt aCompletionCode

DoDismount()

voidDoDismount()[private]

DoEntryL(const TDesC &, TEntry &)

voidDoEntryL(const TDesC &aName,
TEntry &anEntry
)[private]

Parameters

const TDesC & aName
TEntry & anEntry

DoMountFileSystemL(CMountCB *&, TBool, TUint32)

voidDoMountFileSystemL(CMountCB *&apMount,
TBoolaForceMount,
TUint32aFsNameHash
)[private]

Parameters

CMountCB *& apMount
TBool aForceMount
TUint32 aFsNameHash

DriveFault(TBool)

IMPORT_C voidDriveFault(TBoolaDriveError)const [private]

Parameters

TBool aDriveError

DriveInfo(TDriveInfo &)

voidDriveInfo(TDriveInfo &anInfo)

Parameters

TDriveInfo & anInfo

DriveNumber()

TInt DriveNumber()const [inline]

Returns the drive number.

TDriveNumber

Entry(const TDesC &, TEntry &)

TInt Entry(const TDesC &aName,
TEntry &anEntry
)

Parameters

const TDesC & aName
TEntry & anEntry

EraseDevicePassword()

TInt EraseDevicePassword()

ExtInfo()

TDriveExtInfo &ExtInfo()[inline]

Gets the object representing the TDriveExtInfo.

TDriveExtInfo

ExtensionName(TDes &, TInt)

TInt ExtensionName(TDes &aExtensionName,
TIntaPos
)

Parameters

TDes & aExtensionName
TInt aPos

FSys()

CFileSystem &FSys()[inline]

Gets a reference to the object representing the file system

FileOpen(CFsRequest *, TInt &, const TDesC &, TUint, TFileOpen)

TInt FileOpen(CFsRequest *aRequest,
TInt &aHandle,
const TDesC &aName,
TUintaMode,
TFileOpenanOpen
)

Parameters

CFsRequest * aRequest
TInt & aHandle
const TDesC & aName
TUint aMode
TFileOpen anOpen

FileOpenL(CFsRequest *, TInt &, const TDesC &, TUint, TFileOpen, CFileCB *&, CFileShare *&)

voidFileOpenL(CFsRequest *aRequest,
TInt &aHandle,
const TDesC &aName,
TUintaMode,
TFileOpenanOpen,
CFileCB *&aFileCB,
CFileShare *&aFileShare
)[private]

Parameters

CFsRequest * aRequest
TInt & aHandle
const TDesC & aName
TUint aMode
TFileOpen anOpen
CFileCB *& aFileCB
CFileShare *& aFileShare

FileTemp(CFsRequest *, TInt &, const TDesC &, TDes &, TUint)

TInt FileTemp(CFsRequest *aRequest,
TInt &aHandle,
const TDesC &aPath,
TDes &aName,
TUintaMode
)

Parameters

CFsRequest * aRequest
TInt & aHandle
const TDesC & aPath
TDes & aName
TUint aMode

FinaliseMount()

TInt FinaliseMount()

FinaliseMount(TInt, TAny *, TAny *)

TInt FinaliseMount(TIntaOperation,
TAny *aParam1 = NULL,
TAny *aParam2 = NULL
)

Parameters

TInt aOperation
TAny * aParam1 = NULL
TAny * aParam2 = NULL

FlushCachedFileInfo(TBool)

TInt FlushCachedFileInfo(TBoolaPurgeCache = EFalse)

Parameters

TBool aPurgeCache = EFalse

FlushCachedFileInfoL()

voidFlushCachedFileInfoL()

ForceDismount()

voidForceDismount()

ForceRemountDrive(const TDesC8 *, TInt, TUint)

TInt ForceRemountDrive(const TDesC8 *aMountInfo,
TIntaMountInfoMessageHandle,
TUintaFlags
)

Parameters

const TDesC8 * aMountInfo
TInt aMountInfoMessageHandle
TUint aFlags

ForceUnmountFileSystemForFormatting()

TInt ForceUnmountFileSystemForFormatting()

FormatOpenL(CFsRequest *, TInt &, TFormatMode, const TLDFormatInfo *, const TVolFormatParam *)

CFormatCB *FormatOpenL(CFsRequest *aRequest,
TInt &aFmtHandle,
TFormatModeaFmtMode,
const TLDFormatInfo *apLDFormatInfo,
const TVolFormatParam *apVolFormatParam
)

Parameters

CFsRequest * aRequest
TInt & aFmtHandle
TFormatMode aFmtMode
const TLDFormatInfo * apLDFormatInfo
const TVolFormatParam * apVolFormatParam

FreeDiskSpace(TInt64 &)

TInt FreeDiskSpace(TInt64 &aFreeDiskSpace)

Parameters

TInt64 & aFreeDiskSpace

GetFSys()

CFileSystem *&GetFSys()[inline]

Gets the object representing the file system

GetLongName(const TDesC &, TDes &)

TInt GetLongName(const TDesC &aShortName,
TDes &aLongName
)

Parameters

const TDesC & aShortName
TDes & aLongName

GetNotifyUser()

IMPORT_C TBoolGetNotifyUser()

GetReason()

TInt GetReason()const [inline]

Gets last error reason.

GetShortName(const TDesC &, TDes &)

TInt GetShortName(const TDesC &aLongName,
TDes &aShortName
)

Parameters

const TDesC & aLongName
TDes & aShortName

IsChanged()

TBool IsChanged()const [inline]

Determines whether the drive content has changed.

IsCurrentMount(CMountCB &)

TBool IsCurrentMount(CMountCB &aMount)const [inline]

Parameters

CMountCB & aMount

IsCurrentWriteFunction()

IMPORT_C TBoolIsCurrentWriteFunction()const

IsDriveThread()

IMPORT_C TBoolIsDriveThread()const [private]

IsExtensionMounted(CProxyDriveFactory *)

TBool IsExtensionMounted(CProxyDriveFactory *aFactory)[private]

Parameters

CProxyDriveFactory * aFactory

IsFileInRom(const TDesC &, TUint8 *&)

TInt IsFileInRom(const TDesC &aFileName,
TUint8 *&aFileStart
)

Parameters

const TDesC & aFileName
TUint8 *& aFileStart

IsFileOpen(const TDesC &, CFileCB *&)

TInt IsFileOpen(const TDesC &aFileName,
CFileCB *&aFileCB
)

Parameters

const TDesC & aFileName
CFileCB *& aFileCB

IsLocal()

TBool IsLocal()const [inline]

Determines whether attribute is set to local.

IsMainThread()

IMPORT_C TBoolIsMainThread()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]

IsWriteProtected()

TBool IsWriteProtected()

IsWriteableResource()

IMPORT_C TBoolIsWriteableResource()const

LocateClosedFile(const TDesC &, TBool)

CFileCache *LocateClosedFile(const TDesC &aName,
TBoolaResurrect = ETrue
)[private]

Parameters

const TDesC & aName
TBool aResurrect = ETrue

LocateFile(const TDesC &)

CFileCB *LocateFile(const TDesC &aName)[private]

Parameters

const TDesC & aName

LocateFileByPath(const TDesC &)

CFileCB *LocateFileByPath(const TDesC &aPath)[private]

Parameters

const TDesC & aPath

Lock()

voidLock()[inline]

Locks the drive.This function acquires iLock mutex.

LockDevice(TMediaPassword &, TMediaPassword &, TBool)

TInt LockDevice(TMediaPassword &aOld,
TMediaPassword &aNew,
TBoolaStore
)

Parameters

TMediaPassword & aOld
TMediaPassword & aNew
TBool aStore

MkDir(const TDesC &)

TInt MkDir(const TDesC &aName)

Parameters

const TDesC & aName

Mount()

CFsObjectCon &Mount()const [inline]

Gets a reference to the object representing the mount on which the file resides.

MountControl(TInt, TInt, TAny *)

TInt MountControl(TIntaLevel,
TIntaOption,
TAny *aParam
)

Parameters

TInt aLevel
TInt aOption
TAny * aParam

MountExtension(CProxyDriveFactory *, TBool)

TInt MountExtension(CProxyDriveFactory *aFactory,
TBoolaIsPrimary
)

Parameters

CProxyDriveFactory * aFactory
TBool aIsPrimary

MountFileSystem(TBool, TUint32)

voidMountFileSystem(TBoolaForceMount,
TUint32aFsNameHash = 0
)

Parameters

TBool aForceMount
TUint32 aFsNameHash = 0

MountedVolumeSize(TUint64 &)

TInt MountedVolumeSize(TUint64 &aSize)

Parameters

TUint64 & aSize

MultiSlotDriveCheck()

voidMultiSlotDriveCheck()

PurgeDirty(CMountCB &)

voidPurgeDirty(CMountCB &aMount)

Parameters

CMountCB & aMount

ReMount(CMountCB &)

TBool ReMount(CMountCB &aMount)

Parameters

CMountCB & aMount

ReMount()

TBool ReMount()[private]

ReactivateMounts()

voidReactivateMounts()

ReadFileSection(const TDesC &, TInt, TAny *, TInt, const RMessagePtr2 &)

TInt ReadFileSection(const TDesC &aName,
TIntaPos,
TAny *aTrg,
TIntaLength,
const RMessagePtr2 &aMessage
)

Parameters

const TDesC & aName
TInt aPos
TAny * aTrg
TInt aLength
const RMessagePtr2 & aMessage

ReadFileSection64(const TDesC &, TInt64, TAny *, TInt, const RMessagePtr2 &)

TInt ReadFileSection64(const TDesC &aName,
TInt64aPos,
TAny *aTrg,
TIntaLength,
const RMessagePtr2 &aMessage
)

Parameters

const TDesC & aName
TInt64 aPos
TAny * aTrg
TInt aLength
const RMessagePtr2 & aMessage

ReadSectionL(const TDesC &, TInt64, TAny *, TInt, const RMessagePtr2 &)

voidReadSectionL(const TDesC &aName,
TInt64aPos,
TAny *aTrg,
TIntaLength,
const RMessagePtr2 &aMessage
)[private]

Parameters

const TDesC & aName
TInt64 aPos
TAny * aTrg
TInt aLength
const RMessagePtr2 & aMessage

Rename(const TDesC &, const TDesC &)

TInt Rename(const TDesC &anOldName,
const TDesC &aNewName
)

Parameters

const TDesC & anOldName
const TDesC & aNewName

Replace(const TDesC &, const TDesC &)

TInt Replace(const TDesC &anOldName,
const TDesC &aNewName
)

Parameters

const TDesC & anOldName
const TDesC & aNewName

RequestFreeSpaceOnMount(TUint64)

TInt RequestFreeSpaceOnMount(TUint64aFreeSpaceRequired)

Parameters

TUint64 aFreeSpaceRequired

ReservedSpace()

TInt ReservedSpace()const [inline]

Gets the reserved space of a drive

RmDir(const TDesC &)

TInt RmDir(const TDesC &aName)

Parameters

const TDesC & aName

ScanDrive()

TInt ScanDrive()

ScanDrive(TInt, TAny *, TAny *)

TInt ScanDrive(TIntaOperation,
TAny *aParam1 = NULL,
TAny *aParam2 = NULL
)

Parameters

TInt aOperation
TAny * aParam1 = NULL
TAny * aParam2 = NULL

SetAtt(TUint)

voidSetAtt(TUintaValue)

Parameters

TUint aValue

SetChanged(TBool)

voidSetChanged(TBoolaValue)[inline]

Sets a flag to state that the drive contents has changed.

Parameters

TBool aValueTrue if contents has changed; False if unchanged.

SetClampFlag(TBool)

voidSetClampFlag(TBoolaClamped)

Parameters

TBool aClamped

SetDismountDeferred(TBool)

voidSetDismountDeferred(TBoolaPending)

Parameters

TBool aPending

SetEntry(const TDesC &, const TTime &, TUint, TUint)

TInt SetEntry(const TDesC &aName,
const TTime &aTime,
TUintaMask,
TUintaVal
)

Parameters

const TDesC & aName
const TTime & aTime
TUint aMask
TUint aVal

SetNotifyOff()

voidSetNotifyOff()[inline]

Sets the notification flag OFF. The client will not receive notifications on Read or Write failures from the file system.

SetNotifyOn()

voidSetNotifyOn()[inline]

Sets the notification flag ON. The client will receive notifications on Read or Write failures from the file system.

SetReservedSpace(const TInt)

voidSetReservedSpace(const TIntaReservedSpace)[inline]

Reserves a space of a drive.

Parameters

const TInt aReservedSpaceAmount of space to reserve in bytes.

SetRugged(TBool)

voidSetRugged(TBoolaIsRugged)[inline]

Sets the rugged flag in the drive object.

IsRugged()

Parameters

TBool aIsRugged

SetSubst(HBufC *)

voidSetSubst(HBufC *aSubst)[inline]

Assigns a path to a drive.

Parameters

HBufC * aSubstPath will be assigned to a drive.

SetSubstedDrive(TDrive *)

voidSetSubstedDrive(TDrive *aDrive)[inline]

Sets the drive as substed to the path set by an earlier call to SetSubst().

Parameters

TDrive * aDriveA pointer to the drive on which the volume is mounted.

SetSynchronous(TBool)

voidSetSynchronous(TBoolaIsSynch)[inline]

Set or reset internal EDriveIsSynch flag for the TDrive.

Parameters

TBool aIsSynch

SetVolume(const TDesC &)

TInt SetVolume(const TDesC &aName)

Parameters

const TDesC & aName

SetVolumeL(const TDesC &, HBufC *&)

voidSetVolumeL(const TDesC &aName,
HBufC *&aBuf
)[private]

Parameters

const TDesC & aName
HBufC *& aBuf

Subst()

HBufC &Subst()const [inline]

Gets the substed path set by an earlier call to SetSubst().

SubstedDrive()

TDrive &SubstedDrive()const [inline]

Gets the substed drive.

UnLock()

voidUnLock()[inline]

UnLocks the drive.This function signals the iLock mutex.

UnclampFile(CMountCB *, RFileClamp *)

TInt UnclampFile(CMountCB *aMount,
RFileClamp *aHandle
)

Parameters

CMountCB * aMount
RFileClamp * aHandle

UnlockDevice(TMediaPassword &, TBool)

TInt UnlockDevice(TMediaPassword &aPassword,
TBoolaStore
)

Parameters

TMediaPassword & aPassword
TBool aStore

ValidateShare(CFileCB &, TShare)

TInt ValidateShare(CFileCB &aFile,
TShareaReqShare
)[private]

Parameters

CFileCB & aFile
TShare aReqShare

Volume(TVolumeInfo &)

TInt Volume(TVolumeInfo &aVolume)

Parameters

TVolumeInfo & aVolume

Member Enumerations Documentation

Enum anonymous

Enumerators

ENotifyOff = 0x01
EDismountDeferred = 0x02
ENotRugged = 0x04
EClampPresent = 0x08
EDriveIsSynch = 0x10

Member Data Documentation

TUint iAtt

TUint iAtt[private]

TBool iChanged

TBool iChanged[private]

CMountCB * iCurrentMount

CMountCB *iCurrentMount[private]

TInt iDismountLock

TInt iDismountLock[private]

TInt iDriveFlags

TInt iDriveFlags[private]

TInt iDriveNumber

TInt iDriveNumber[private]

TDriveExtInfo iExtInfo

TDriveExtInfo iExtInfo[private]

CFileSystem * iFSys

CFileSystem *iFSys[private]

TInt iLastMountError

TInt iLastMountError[private]

RFastLock iLock

RFastLock iLock[private]

CFsObjectCon * iMount

CFsObjectCon *iMount[private]

TInt iMountFailures

TInt iMountFailures[private]

TInt iMountNumber

TInt iMountNumber[private]

TInt iReason

TInt iReason[private]

TInt iReservedSpace

TInt iReservedSpace[private]

TInt iSpare1

TInt iSpare1[private]

TInt iSpare2

TInt iSpare2[private]

HBufC * iSubst

HBufC *iSubst[private]

TDrive * iSubstedDrive

TDrive *iSubstedDrive[private]