TBusLocalDrive Class Reference

class TBusLocalDrive : public RLocalDrive

Inherits from

Public Member Functions
TBusLocalDrive()
IMPORT_C TIntCaps(TDes8 &)
IMPORT_C TIntClear(const TDesC8 &)
IMPORT_C TIntConnect(TInt, TBool &)
IMPORT_C TIntControlIO(TInt, TAny *, TAny *)
IMPORT_C TIntControlIO(TInt, TDes8 &, TInt)
IMPORT_C TIntControlIO(TInt, TDesC8 &, TInt)
IMPORT_C TIntControlIO(TInt, TInt, TInt)
IMPORT_C TIntDeleteNotify(TInt64, TInt)
IMPORT_C voidDisconnect()
IMPORT_C TIntEnlarge(TInt)
IMPORT_C TIntErasePassword()
IMPORT_C TIntForceRemount(TUint)
IMPORT_C TIntFormat(TFormatInfo &)
IMPORT_C TIntFormat(TInt64, TInt)
IMPORT_C TIntGetLastErrorInfo(TDes8 &)
IMPORT_C TIntPasswordStoreLengthInBytes()
IMPORT_C TIntQueryDevice(TQueryDevice, TDes8 &)
IMPORT_C TIntRead(TInt64, TInt, const TAny *, TInt, TInt, TInt)
IMPORT_C TIntRead(TInt64, TInt, const TAny *, TInt, TInt)
IMPORT_C TIntRead(TInt64, TInt, TDes8 &)
IMPORT_C TIntReadPasswordData(TDes8 &)
IMPORT_C TIntReduceSize(TInt, TInt)
IMPORT_C TIntSetMountInfo(const TDesC8 *, TInt)
IMPORT_C TIntSetPassword(const TDesC8 &, const TDesC8 &, TBool)
TInt &Status()
IMPORT_C TIntUnlock(const TDesC8 &, TBool)
IMPORT_C TIntWrite(TInt64, TInt, const TAny *, TInt, TInt, TInt)
IMPORT_C TIntWrite(TInt64, TInt, const TAny *, TInt, TInt)
IMPORT_C TIntWrite(TInt64, const TDesC8 &)
IMPORT_C TIntWritePasswordData(const TDesC8 &)
Private Member Functions
TInt CheckMount()
Inherited Functions
RBusLogicalChannel::DoCancel(TUint)
RBusLogicalChannel::DoControl(TInt)
RBusLogicalChannel::DoControl(TInt,TAny *)
RBusLogicalChannel::DoControl(TInt,TAny *,TAny *)
RBusLogicalChannel::DoCreate(const TDesC &,const TVersion &,TInt,const TDesC *,const TDesC8 *,TOwnerType,TBool)
RBusLogicalChannel::DoRequest(TInt,TRequestStatus &)
RBusLogicalChannel::DoRequest(TInt,TRequestStatus &,TAny *)
RBusLogicalChannel::DoRequest(TInt,TRequestStatus &,TAny *,TAny *)
RBusLogicalChannel::DoSvControl(TInt)
RBusLogicalChannel::DoSvControl(TInt,TAny *)
RBusLogicalChannel::DoSvControl(TInt,TAny *,TAny *)
RBusLogicalChannel::Open(RMessagePtr2,TInt,TOwnerType)
RBusLogicalChannel::Open(TInt,TOwnerType)
RHandleBase::Attributes()const
RHandleBase::BTraceId()const
RHandleBase::Close()
RHandleBase::DoExtendedClose()
RHandleBase::Duplicate(const RThread &,TOwnerType)
RHandleBase::FullName()const
RHandleBase::FullName(TDes &)const
RHandleBase::Handle()const
RHandleBase::HandleInfo(THandleInfo *)
RHandleBase::Name()const
RHandleBase::NotifyDestruction(TRequestStatus &)
RHandleBase::Open(const TFindHandleBase &,TOwnerType)
RHandleBase::OpenByName(const TDesC &,TOwnerType,TInt)
RHandleBase::RHandleBase()
RHandleBase::RHandleBase(TInt)
RHandleBase::SetHandle(TInt)
RHandleBase::SetHandleNC(TInt)
RHandleBase::SetReturnedHandle(TInt)
RHandleBase::SetReturnedHandle(TInt,RHandleBase &)
RLocalDrive::ForceMediaChange(TInt)
RLocalDrive::GetLastErrorInfo(TDesC8 &)
RLocalDrive::IsRemovable(TInt &)
RLocalDrive::MediaDevice()
RLocalDrive::NotifyChange(TRequestStatus *)
RLocalDrive::NotifyChangeCancel()
RLocalDrive::ReadPasswordData(TDesC8 &)
RLocalDrive::Reduce(TInt,TInt)
RLocalDrive::VersionRequired()const
Inherited Enumerations
RHandleBase:TAttributes
RLocalDrive:TControl
RLocalDrive:TQueryDevice
RLocalDrive:TReadWriteFlags
RLocalDrive:TRemountFlags
Private Attributes
TInt iStatus
Inherited Attributes
RHandleBase::iHandle

Constructor & Destructor Documentation

TBusLocalDrive()

IMPORT_CTBusLocalDrive()

Member Functions Documentation

Caps(TDes8 &)

IMPORT_C TIntCaps(TDes8 &anInfo)

Parameters

TDes8 & anInfo

CheckMount()

TInt CheckMount()[private]

Clear(const TDesC8 &)

IMPORT_C TIntClear(const TDesC8 &aPassword)

Clears a password from a card - controller sets password to null. volume will not be password-enabled next time it is powered up. The password is cleared from the password store.

TBusLocalDrive::Unlock TBusLocalDrive::SetPassword TBusLocalDrive::ErasePassword

Parameters

const TDesC8 & aPasswordA descriptor containing the password.

Connect(TInt, TBool &)

IMPORT_C TIntConnect(TIntaDriveNumber,
TBool &aChangedFlag
)
capability
TCB

Parameters

TInt aDriveNumber
TBool & aChangedFlag

ControlIO(TInt, TAny *, TAny *)

IMPORT_C TIntControlIO(TIntaCommand,
TAny *aParam1,
TAny *aParam2
)

Parameters

TInt aCommand
TAny * aParam1
TAny * aParam2

ControlIO(TInt, TDes8 &, TInt)

IMPORT_C TIntControlIO(TIntaCommand,
TDes8 &aBuf,
TIntaParam
)

Parameters

TInt aCommand
TDes8 & aBuf
TInt aParam

ControlIO(TInt, TDesC8 &, TInt)

IMPORT_C TIntControlIO(TIntaCommand,
TDesC8 &aBuf,
TIntaParam
)

Parameters

TInt aCommand
TDesC8 & aBuf
TInt aParam

ControlIO(TInt, TInt, TInt)

IMPORT_C TIntControlIO(TIntaCommand,
TIntaParam1,
TIntaParam2
)

Parameters

TInt aCommand
TInt aParam1
TInt aParam2

DeleteNotify(TInt64, TInt)

IMPORT_C TIntDeleteNotify(TInt64aPos,
TIntaLength
)

Parameters

TInt64 aPos
TInt aLength

Disconnect()

IMPORT_C voidDisconnect()

Enlarge(TInt)

IMPORT_C TIntEnlarge(TIntaLength)

Parameters

TInt aLength

ErasePassword()

IMPORT_C TIntErasePassword()

Forcibly unlock a password-enabled drive. KErrAccessDenied is returned if the drive is already mounted (and therefore unlocked) or if the drive is not already mounted and the operation fails.

TBusLocalDrive::Unlock TBusLocalDrive::SetPassword TBusLocalDrive::ErasePassword

ForceRemount(TUint)

IMPORT_C TIntForceRemount(TUintaFlags = 0)

Parameters

TUint aFlags = 0

Format(TFormatInfo &)

IMPORT_C TIntFormat(TFormatInfo &anInfo)

Parameters

TFormatInfo & anInfo

Format(TInt64, TInt)

IMPORT_C TIntFormat(TInt64aPos,
TIntaLength
)

Parameters

TInt64 aPos
TInt aLength

GetLastErrorInfo(TDes8 &)

IMPORT_C TIntGetLastErrorInfo(TDes8 &aErrorInfo)

Parameters

TDes8 & aErrorInfo

PasswordStoreLengthInBytes()

IMPORT_C TIntPasswordStoreLengthInBytes()

QueryDevice(TQueryDevice, TDes8 &)

IMPORT_C TIntQueryDevice(TQueryDeviceaQueryDevice,
TDes8 &aBuf
)

Query a property of the media device

Parameters

TQueryDevice aQueryDevice
TDes8 & aBuf

Read(TInt64, TInt, const TAny *, TInt, TInt, TInt)

IMPORT_C TIntRead(TInt64aPos,
TIntaLength,
const TAny *aTrg,
TIntaMessageHandle,
TIntaOffset,
TIntaFlags
)

Parameters

TInt64 aPos
TInt aLength
const TAny * aTrg
TInt aMessageHandle
TInt aOffset
TInt aFlags

Read(TInt64, TInt, const TAny *, TInt, TInt)

IMPORT_C TIntRead(TInt64aPos,
TIntaLength,
const TAny *aTrg,
TIntaMessageHandle,
TIntanOffset
)

Parameters

TInt64 aPos
TInt aLength
const TAny * aTrg
TInt aMessageHandle
TInt anOffset

Read(TInt64, TInt, TDes8 &)

IMPORT_C TIntRead(TInt64aPos,
TIntaLength,
TDes8 &aTrg
)

Parameters

TInt64 aPos
TInt aLength
TDes8 & aTrg

ReadPasswordData(TDes8 &)

IMPORT_C TIntReadPasswordData(TDes8 &aBuf)

Parameters

TDes8 & aBuf

ReduceSize(TInt, TInt)

IMPORT_C TIntReduceSize(TIntaPos,
TIntaLength
)

Parameters

TInt aPos
TInt aLength

SetMountInfo(const TDesC8 *, TInt)

IMPORT_C TIntSetMountInfo(const TDesC8 *aMountInfo,
TIntaMessageHandle
)

Parameters

const TDesC8 * aMountInfo
TInt aMessageHandle

SetPassword(const TDesC8 &, const TDesC8 &, TBool)

IMPORT_C TIntSetPassword(const TDesC8 &aOldPassword,
const TDesC8 &aNewPassword,
TBoolaStorePassword
)

Attempt to lock password-enabled drive and optionally store the new password in the password store.

TBusLocalDrive::Unlock TBusLocalDrive::Clear TBusLocalDrive::ErasePassword

Parameters

const TDesC8 & aOldPasswordA descriptor containing old password.
const TDesC8 & aNewPasswordA descriptor containing new password.
TBool aStorePasswordIf ETrue, the password is added to the password store.

Status()

TInt &Status()[inline]

Unlock(const TDesC8 &, TBool)

IMPORT_C TIntUnlock(const TDesC8 &aPassword,
TBoolaStorePassword
)

Attempt to unlock a password-enabled drive and optionally store the password in the password store.

TBusLocalDrive::SetPassword TBusLocalDrive::Clear TBusLocalDrive::ErasePassword

Parameters

const TDesC8 & aPasswordA descriptor containing the password data.
TBool aStorePasswordIf ETrue, the password is added to the password store.

Write(TInt64, TInt, const TAny *, TInt, TInt, TInt)

IMPORT_C TIntWrite(TInt64aPos,
TIntaLength,
const TAny *aSrc,
TIntaMessageHandle,
TIntaOffset,
TIntaFlags
)

Parameters

TInt64 aPos
TInt aLength
const TAny * aSrc
TInt aMessageHandle
TInt aOffset
TInt aFlags

Write(TInt64, TInt, const TAny *, TInt, TInt)

IMPORT_C TIntWrite(TInt64aPos,
TIntaLength,
const TAny *aSrc,
TIntaMessageHandle,
TIntanOffset
)

Parameters

TInt64 aPos
TInt aLength
const TAny * aSrc
TInt aMessageHandle
TInt anOffset

Write(TInt64, const TDesC8 &)

IMPORT_C TIntWrite(TInt64aPos,
const TDesC8 &aSrc
)

Parameters

TInt64 aPos
const TDesC8 & aSrc

WritePasswordData(const TDesC8 &)

IMPORT_C TIntWritePasswordData(const TDesC8 &aBuf)

Write the password store to the peripheral bus controller.

Parameters

const TDesC8 & aBufData to replace the current password store.

Member Data Documentation

TInt iStatus

TInt iStatus[private]