CLocalProxyDrive Class Reference
class CLocalProxyDrive : public CProxyDrive |
Public Member Functions |
---|
TInt
| Caps(TDes8 &) |
TInt
| Clear(TMediaPassword &) |
TInt
| ControlIO(const RMessagePtr2 &, TInt, TAny *, TAny *) |
TInt
| DeleteNotify(TInt64, TInt) |
TInt
| Dismounted() |
TInt
| Enlarge(TInt) |
TInt
| ErasePassword() |
TInt
| ForceRemount(TUint) |
TInt
| Format(TFormatInfo &) |
TInt
| Format(TInt64, TInt) |
TInt
| GetLastErrorInfo(TDes8 &) |
TInt
| Initialise() |
TInt
| Lock(TMediaPassword &, TMediaPassword &, TBool) |
CLocalProxyDrive * | New(CMountCB *, TBusLocalDrive &) |
TInt
| Read(TInt64, TInt, const TAny *, TInt, TInt, TInt) |
TInt
| Read(TInt64, TInt, const TAny *, TInt, TInt) |
TInt
| Read(TInt64, TInt, TDes8 &) |
TInt
| ReduceSize(TInt, TInt) |
TInt
| SetMountInfo(const TDesC8 *, TInt) |
TInt
| Unlock(TMediaPassword &, TBool) |
TInt
| Write(TInt64, TInt, const TAny *, TInt, TInt, TInt) |
TInt
| Write(TInt64, TInt, const TAny *, TInt, TInt) |
TInt
| Write(TInt64, const TDesC8 &) |
Constructor & Destructor Documentation
CLocalProxyDrive(CMountCB *, TBusLocalDrive &)
Member Functions Documentation
Caps(TDes8 &)
Get the proxy drive's capabilities information.
Derived class must provide an implementation for it.
Parameters
TDes8 & anInfo | A descriptor of the connected drives capabilities. |
Clear(TMediaPassword &)
Clears a password from a proxy drive - controller sets password to null.
Derived class must provide an implementation for it.
ControlIO(const RMessagePtr2 &, TInt, TAny *, TAny *)
DeleteNotify(TInt64, TInt)
Dismounted()
TInt
| Dismounted | ( | ) | [virtual] |
It invokes Dismounted() on the proxy drive.
Derived class must provide an implementation for it.
Enlarge(TInt)
Increase the size of the proxy drive by the specified length (in bytes).
Derived class must provide an implementation for it.
Parameters
TInt aLength | The length (in bytes) of which the drive is to be increased by. |
ErasePassword()
TInt
| ErasePassword | ( | ) | [virtual] |
Forcibly unlock a password-enabled proxy drive.
Derived class must provide an implementation for it.
ForceRemount(TUint)
Forces a remount on the proxy drive
Derived class must provide an implementation for it.
Parameters
TUint aFlags = 0 | Flags to be passed into the driver. |
Format(TFormatInfo &)
Format the connected drive.
Derived class must provide an implementation for it.
Parameters
TFormatInfo & anInfo | Device specific format information. |
Format(TInt64, TInt)
Format the proxy drive.
Derived class must provide an implementation for it.
Parameters
TInt64 aPos | The position of the data which is being formatted. |
TInt aLength | The length of the data which is being formatted. |
GetInterface(TInt, TAny *&, TAny *)
TInt
| GetInterface | ( | TInt | aInterfaceId, |
| TAny *& | aInterface, |
| TAny * | aInput |
| ) | [protected, virtual] |
Return a pointer to a specified interface extension - to allow future extension of this class without breaking binary compatibility.
Parameters
TInt aInterfaceId | Interface identifier of the interface to be retrieved. |
TAny *& aInterface | A reference to a pointer that retrieves the specified interface. |
TAny * aInput | An arbitrary input argument. |
GetLastErrorInfo(TDes8 &)
TInt
| GetLastErrorInfo | ( | TDes8 & | aErrorInfo | ) | [virtual] |
Initialise()
TInt
| Initialise | ( | ) | [virtual] |
Initialise the proxy drive.
Derived class must provide an implementation for it.
Lock(TMediaPassword &, TMediaPassword &, TBool)
Locks a password-enabled proxy drive with the new password.
Derived class must provide an implementation for it.
Parameters
TMediaPassword & aOldPassword | A descriptor containing the existing password. |
TMediaPassword & aNewPassword | A descriptor containing the new password. |
TBool aStorePassword | If ETrue, the password is added to the password store. |
New(CMountCB *, TBusLocalDrive &)
Read(TInt64, TInt, const TAny *, TInt, TInt, TInt)
Read(TInt64, TInt, const TAny *, TInt, TInt)
Read from the proxy drive.
Derived class must provide an implementation for it.
Parameters
TInt64 aPos | The address from where the read begins. |
TInt aLength | The length of the read. |
const TAny * aTrg | A descriptor of the memory buffer from which to read. |
TInt aThreadHandle | The handle-number representing the drive thread. |
TInt anOffset | |
Read(TInt64, TInt, TDes8 &)
Read from the proxy drive.
Derived class must provide an implementation for it.
Parameters
TInt64 aPos | The address from where the read begins. |
TInt aLength | The length of the read. |
TDes8 & aTrg | A descriptor of the memory buffer from which to read. |
ReduceSize(TInt, TInt)
Reduce the size of the proxy drive by removing the specified length (in bytes) starting at the specified position.
Derived class must provide an implementation for it.
Parameters
TInt aPos | The start position of area to be removed. |
TInt aLength | The length/size (in bytes) by which the drive is to be reduced. |
SetMountInfo(const TDesC8 *, TInt)
Set the mount information on the proxy drive.
Derived class must provide an implementation for it.
Parameters
const TDesC8 * aMountInfo | Information passed down to the media driver. The meaning of this information depends on the media driver. |
TInt aMountInfoThreadHandle =
KCurrentThreadHandle
| Message thread handle number. |
Unlock(TMediaPassword &, TBool)
Unlocks a password-enabled proxy drive.
Derived class must provide an implementation for it.
Parameters
TMediaPassword & aPassword | A descriptor containing the existing password. |
TBool aStorePassword | If ETrue, the password is added to the password store. |
Write(TInt64, TInt, const TAny *, TInt, TInt, TInt)
Write(TInt64, TInt, const TAny *, TInt, TInt)
Write to the proxy drive.
Derived class must provide an implementation for it.
Parameters
TInt64 aPos | The address from where the write begins. |
TInt aLength | The length of the write. |
const TAny * aSrc | A descriptor of the memory buffer from which to write. |
TInt aThreadHandle | The handle-number representing the drive thread. |
TInt anOffset | |
Write(TInt64, const TDesC8 &)
Write to the proxy drive.
Derived class must provide an implementation for it.
Parameters
TInt64 aPos | The address from where the write begins. |
const TDesC8 & aSrc | A descriptor of the memory buffer from which to write. |
Member Data Documentation
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.