|
||
class RFormat : public RSubSessionBase;
Formats a device, one step at a time.
RFormat must first be opened on a device before formatting each track using Next()
.
There is also an asynchronous version of Next()
which, if encapsulated into a suitable active object, can be used to implement a user-interruptible formatting process.
RSubSessionBase
- Client-side handle to a sub-session
RFormat
- Formats a device, one step at a time
Defined in RFormat
:
Close()
Closes the Format subsessionNext()
Executes the next format stepNext()
Executes the next format stepOpen()
Opens a device for formattingOpen()
Opens a device for formattingInherited from RSubSessionBase
:
CloseSubSession()
Closes the sub-sessionCreateAutoCloseSubSession()
Creates a new sub-session within an existing sessionCreateSubSession()
Creates a new sub-session within an existing sessionSend()
Sends a blind message to the server - no reply is expectedSendReceive()
Sends a message to the server and waits asynchronously for the replySession()
Returns a copy of the session associated with this sub-sessionSubSessionHandle()
Gets the sub-session handle numberCapability: | DiskAdmin |
IMPORT_C TInt Open(RFs &aFs, const TDesC &aName, TUint aFormatMode, TInt &aCount);
Opens a device for formatting.
The device may be formatted either at high or low density.
Devices which support read-only media may not be formatted. This includes the ROM on drive Z:. All files on the drive must be closed otherwise an error is returned.
|
|
TFormatMode
The format methodCapability: | DiskAdmin |
IMPORT_C TInt Open(RFs &aFs, const TDesC &aName, TUint aFormatMode, TInt &aCount, const TDesC8 &anInfo);
Opens a device for formatting. User
can specify new format parameters by anInfo.
The device may be formatted either at high or low density.
Devices which support read-only media may not be formatted. This includes the ROM on drive Z:. All files on the drive must be closed otherwise an error is returned.
|
|
TFormatMode
The format methodIMPORT_C void Close();
Closes the Format subsession.
Any open files are closed when the file server session is closed.
Close()
is guaranteed to return, and provides no indication whether it completed successfully or not.
Capability: | DiskAdmin |
IMPORT_C TInt Next(TInt &aStep);
Executes the next format step.
This is a synchronous function, which returns when the formatting step is complete.
|
|
Capability: | DiskAdmin |
IMPORT_C void Next(TPckgBuf< TInt > &aStep, TRequestStatus &aStatus);
Executes the next format step.
This is an asynchronous function.
|