| class CProxyDrive : public CBase |
Base abstract class. Interface between a local plugin file system and a media subsystem.
| Protected Member Functions | |
|---|---|
| IMPORT_C TInt | GetInterface ( TInt , TAny *&, TAny *) |
| Public Member Enumerations | |
|---|---|
| enum | TInterfaceIds { EGetLocalDrive , ELocalBufferSupport , EGetProxyDrive , EFinalised } |
| Private Attributes | |
|---|---|
| CMountCB * | iMount |
| TUint32 | iReserved |
| TInt | Caps | ( | TDes8 & | anInfo | ) | [pure virtual] |
Get the proxy drive's capabilities information.
Derived class must provide an implementation for it.
| TDes8 & anInfo | A descriptor of the connected drives capabilities. |
| TInt | Clear | ( | TMediaPassword & | aPassword | ) | [pure virtual] |
Clears a password from a proxy drive - controller sets password to null.
Derived class must provide an implementation for it.
| TMediaPassword & aPassword | A descriptor containing the password. |
| IMPORT_C TInt | ControlIO | ( | const RMessagePtr2 & | aMessage, |
| TInt | aCommand, | |||
| TAny * | aParam1, | |||
| TAny * | aParam2 | |||
| ) | [virtual] | |||
| const RMessagePtr2 & aMessage | |
| TInt aCommand | |
| TAny * aParam1 | |
| TAny * aParam2 |
| TInt | Enlarge | ( | TInt | aLength | ) | [pure virtual] |
Increase the size of the proxy drive by the specified length (in bytes).
Derived class must provide an implementation for it.
| TInt aLength | The length (in bytes) of which the drive is to be increased by. |
| TInt | ErasePassword | ( | ) | [pure virtual] |
Forcibly unlock a password-enabled proxy drive.
Derived class must provide an implementation for it.
| IMPORT_C TInt | Finalise | ( | TBool | aFinalised | ) |
Informs the extension that the mount has been finalised and is in a consistent state.
| TBool aFinalised |
| TInt | ForceRemount | ( | TUint | aFlags = 0 | ) | [pure virtual] |
Forces a remount on the proxy drive
Derived class must provide an implementation for it.
| TUint aFlags = 0 | Flags to be passed into the driver. |
| TInt | Format | ( | TFormatInfo & | anInfo | ) | [pure virtual] |
Format the connected drive.
Derived class must provide an implementation for it.
| TFormatInfo & anInfo | Device specific format information. |
| TInt | Format | ( | TInt64 | aPos, |
| TInt | aLength | |||
| ) | [pure virtual] | |||
Format the proxy drive.
Derived class must provide an implementation for it.
| IMPORT_C 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.
| IMPORT_C TInt | GetLastErrorInfo | ( | TDes8 & | aErrorInfo | ) | [virtual] |
| TDes8 & aErrorInfo |
| IMPORT_C TInt | GetLocalDrive | ( | TBusLocalDrive *& | aLocDrv | ) |
Retrieves TBusLocalDrive object associated with the file.
| TBusLocalDrive *& aLocDrv |
| TInt | Initialise | ( | ) | [pure virtual] |
Initialise the proxy drive.
Derived class must provide an implementation for it.
| TInt | LocalBufferSupport | ( | ) | [inline] |
Returns wheher the drive (and any extensions) support file caching
| TInt | Lock | ( | TMediaPassword & | aOldPassword, |
| TMediaPassword & | aNewPassword, | |||
| TBool | aStorePassword | |||
| ) | [pure virtual] | |||
Locks a password-enabled proxy drive with the new password.
Derived class must provide an implementation for it.
| 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. |
| CMountCB * | Mount | ( | ) | const [inline] |
Gets the mount control block object for a specific volume on a drive.
| IMPORT_C TInt | Read | ( | TInt64 | aPos, |
| TInt | aLength, | |||
| const TAny * | aTrg, | |||
| TInt | aThreadHandle, | |||
| TInt | aOffset, | |||
| TInt | aFlags | |||
| ) | [virtual] | |||
| TInt | Read | ( | TInt64 | aPos, |
| TInt | aLength, | |||
| const TAny * | aTrg, | |||
| TInt | aThreadHandle, | |||
| TInt | anOffset | |||
| ) | [pure virtual] | |||
Read from the proxy drive.
Derived class must provide an implementation for it.
| TInt | Read | ( | TInt64 | aPos, |
| TInt | aLength, | |||
| TDes8 & | aTrg | |||
| ) | [pure virtual] | |||
Read from the proxy drive.
Derived class must provide an implementation for it.
| TInt | ReduceSize | ( | TInt | aPos, |
| TInt | aLength | |||
| ) | [pure virtual] | |||
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.
| TInt | SetMountInfo | ( | const TDesC8 * | aMountInfo, |
| TInt | aMountInfoThreadHandle = KCurrentThreadHandle | |||
| ) | [pure virtual] | |||
Set the mount information on the proxy drive.
Derived class must provide an implementation for it.
| 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. |
| TInt | Unlock | ( | TMediaPassword & | aPassword, |
| TBool | aStorePassword | |||
| ) | [pure virtual] | |||
Unlocks a password-enabled proxy drive.
Derived class must provide an implementation for it.
| TMediaPassword & aPassword | A descriptor containing the existing password. |
| TBool aStorePassword | If ETrue, the password is added to the password store. |
| IMPORT_C TInt | Write | ( | TInt64 | aPos, |
| TInt | aLength, | |||
| const TAny * | aSrc, | |||
| TInt | aThreadHandle, | |||
| TInt | anOffset, | |||
| TInt | aFlags | |||
| ) | [virtual] | |||
| TInt | Write | ( | TInt64 | aPos, |
| TInt | aLength, | |||
| const TAny * | aSrc, | |||
| TInt | aThreadHandle, | |||
| TInt | anOffset | |||
| ) | [pure virtual] | |||
Write to the proxy drive.
Derived class must provide an implementation for it.
| TInt | Write | ( | TInt64 | aPos, |
| const TDesC8 & | aSrc | |||
| ) | [pure virtual] | |||
Write to the proxy drive.
Derived class must provide an implementation for it.
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.