TBusLocalDrive Class Reference

class TBusLocalDrive : public RLocalDrive
Public Member Functions
TBusLocalDrive ()
IMPORT_C TInt Caps ( TDes8 &)
IMPORT_C TInt Clear (const TDesC8 &)
IMPORT_C TInt Connect ( TInt , TBool &)
IMPORT_C TInt ControlIO ( TInt , TAny *, TAny *)
IMPORT_C TInt ControlIO ( TInt , TDes8 &, TInt )
IMPORT_C TInt ControlIO ( TInt , TDesC8 &, TInt )
IMPORT_C TInt ControlIO ( TInt , TInt , TInt )
IMPORT_C TInt DeleteNotify ( TInt64 , TInt )
IMPORT_C void Disconnect ()
IMPORT_C TInt Enlarge ( TInt )
IMPORT_C TInt ErasePassword ()
IMPORT_C TInt ForceRemount ( TUint )
IMPORT_C TInt Format ( TFormatInfo &)
IMPORT_C TInt Format ( TInt64 , TInt )
IMPORT_C TInt GetLastErrorInfo ( TDes8 &)
IMPORT_C TInt PasswordStoreLengthInBytes ()
IMPORT_C TInt QueryDevice ( TQueryDevice , TDes8 &)
IMPORT_C TInt Read ( TInt64 , TInt , const TAny *, TInt , TInt , TInt )
IMPORT_C TInt Read ( TInt64 , TInt , const TAny *, TInt , TInt )
IMPORT_C TInt Read ( TInt64 , TInt , TDes8 &)
IMPORT_C TInt ReadPasswordData ( TDes8 &)
IMPORT_C TInt ReduceSize ( TInt , TInt )
IMPORT_C TInt SetMountInfo (const TDesC8 *, TInt )
IMPORT_C TInt SetPassword (const TDesC8 &, const TDesC8 &, TBool )
TInt & Status ()
IMPORT_C TInt Unlock (const TDesC8 &, TBool )
IMPORT_C TInt Write ( TInt64 , TInt , const TAny *, TInt , TInt , TInt )
IMPORT_C TInt Write ( TInt64 , TInt , const TAny *, TInt , TInt )
IMPORT_C TInt Write ( TInt64 , const TDesC8 &)
IMPORT_C TInt WritePasswordData (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_C TBusLocalDrive ( )

Member Functions Documentation

Caps(TDes8 &)

IMPORT_C TInt Caps ( TDes8 & anInfo )

Parameters

TDes8 & anInfo

CheckMount()

TInt CheckMount ( ) [private]

Clear(const TDesC8 &)

IMPORT_C TInt Clear ( 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 & aPassword A descriptor containing the password.

Connect(TInt, TBool &)

IMPORT_C TInt Connect ( TInt aDriveNumber,
TBool & aChangedFlag
)
capability
TCB

Parameters

TInt aDriveNumber
TBool & aChangedFlag

ControlIO(TInt, TAny *, TAny *)

IMPORT_C TInt ControlIO ( TInt aCommand,
TAny * aParam1,
TAny * aParam2
)

Parameters

TInt aCommand
TAny * aParam1
TAny * aParam2

ControlIO(TInt, TDes8 &, TInt)

IMPORT_C TInt ControlIO ( TInt aCommand,
TDes8 & aBuf,
TInt aParam
)

Parameters

TInt aCommand
TDes8 & aBuf
TInt aParam

ControlIO(TInt, TDesC8 &, TInt)

IMPORT_C TInt ControlIO ( TInt aCommand,
TDesC8 & aBuf,
TInt aParam
)

Parameters

TInt aCommand
TDesC8 & aBuf
TInt aParam

ControlIO(TInt, TInt, TInt)

IMPORT_C TInt ControlIO ( TInt aCommand,
TInt aParam1,
TInt aParam2
)

Parameters

TInt aCommand
TInt aParam1
TInt aParam2

DeleteNotify(TInt64, TInt)

IMPORT_C TInt DeleteNotify ( TInt64 aPos,
TInt aLength
)

Parameters

TInt64 aPos
TInt aLength

Disconnect()

IMPORT_C void Disconnect ( )

Enlarge(TInt)

IMPORT_C TInt Enlarge ( TInt aLength )

Parameters

TInt aLength

ErasePassword()

IMPORT_C TInt ErasePassword ( )

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 TInt ForceRemount ( TUint aFlags = 0 )

Parameters

TUint aFlags = 0

Format(TFormatInfo &)

IMPORT_C TInt Format ( TFormatInfo & anInfo )

Parameters

TFormatInfo & anInfo

Format(TInt64, TInt)

IMPORT_C TInt Format ( TInt64 aPos,
TInt aLength
)

Parameters

TInt64 aPos
TInt aLength

GetLastErrorInfo(TDes8 &)

IMPORT_C TInt GetLastErrorInfo ( TDes8 & aErrorInfo )

Parameters

TDes8 & aErrorInfo

PasswordStoreLengthInBytes()

IMPORT_C TInt PasswordStoreLengthInBytes ( )

QueryDevice(TQueryDevice, TDes8 &)

IMPORT_C TInt QueryDevice ( TQueryDevice aQueryDevice,
TDes8 & aBuf
)

Query a property of the media device

Parameters

TQueryDevice aQueryDevice
TDes8 & aBuf

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

IMPORT_C TInt Read ( TInt64 aPos,
TInt aLength,
const TAny * aTrg,
TInt aMessageHandle,
TInt aOffset,
TInt aFlags
)

Parameters

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

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

IMPORT_C TInt Read ( TInt64 aPos,
TInt aLength,
const TAny * aTrg,
TInt aMessageHandle,
TInt anOffset
)

Parameters

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

Read(TInt64, TInt, TDes8 &)

IMPORT_C TInt Read ( TInt64 aPos,
TInt aLength,
TDes8 & aTrg
)

Parameters

TInt64 aPos
TInt aLength
TDes8 & aTrg

ReadPasswordData(TDes8 &)

IMPORT_C TInt ReadPasswordData ( TDes8 & aBuf )

Parameters

TDes8 & aBuf

ReduceSize(TInt, TInt)

IMPORT_C TInt ReduceSize ( TInt aPos,
TInt aLength
)

Parameters

TInt aPos
TInt aLength

SetMountInfo(const TDesC8 *, TInt)

IMPORT_C TInt SetMountInfo ( const TDesC8 * aMountInfo,
TInt aMessageHandle
)

Parameters

const TDesC8 * aMountInfo
TInt aMessageHandle

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

IMPORT_C TInt SetPassword ( const TDesC8 & aOldPassword,
const TDesC8 & aNewPassword,
TBool aStorePassword
)

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 & aOldPassword A descriptor containing old password.
const TDesC8 & aNewPassword A descriptor containing new password.
TBool aStorePassword If ETrue, the password is added to the password store.

Status()

TInt & Status ( ) [inline]

Unlock(const TDesC8 &, TBool)

IMPORT_C TInt Unlock ( const TDesC8 & aPassword,
TBool aStorePassword
)

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 & aPassword A descriptor containing the password data.
TBool aStorePassword If ETrue, the password is added to the password store.

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

IMPORT_C TInt Write ( TInt64 aPos,
TInt aLength,
const TAny * aSrc,
TInt aMessageHandle,
TInt aOffset,
TInt aFlags
)

Parameters

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

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

IMPORT_C TInt Write ( TInt64 aPos,
TInt aLength,
const TAny * aSrc,
TInt aMessageHandle,
TInt anOffset
)

Parameters

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

Write(TInt64, const TDesC8 &)

IMPORT_C TInt Write ( TInt64 aPos,
const TDesC8 & aSrc
)

Parameters

TInt64 aPos
const TDesC8 & aSrc

WritePasswordData(const TDesC8 &)

IMPORT_C TInt WritePasswordData ( const TDesC8 & aBuf )

Write the password store to the peripheral bus controller.

Parameters

const TDesC8 & aBuf Data to replace the current password store.

Member Data Documentation

TInt iStatus

TInt iStatus [private]