Symbian3/PDK/Source/GUID-218DB978-929C-5701-869F-8415FF6CE62D.dita
changeset 5 f345bda72bc4
parent 3 46218c8b8afa
child 14 578be2adaf3e
equal deleted inserted replaced
4:4816d766a08a 5:f345bda72bc4
     7     Nokia Corporation - initial contribution.
     7     Nokia Corporation - initial contribution.
     8 Contributors: 
     8 Contributors: 
     9 -->
     9 -->
    10 <!DOCTYPE concept
    10 <!DOCTYPE concept
    11   PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
    11   PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
    12 <concept xml:lang="en" id="GUID-218DB978-929C-5701-869F-8415FF6CE62D"><title>Using RFormat</title><prolog><metadata><keywords/></metadata></prolog><conbody><p>The <xref href="GUID-9D7E765B-6872-3EB9-9D5B-1503FA466EC1.dita"><apiname>RFormat</apiname></xref> class formats a device, one step at a time. </p> <p>The object must first be opened on a device, and then each track is formatted using <codeph>Next()</codeph>. The following code fragment shows how this is done: </p> <codeblock id="GUID-AAC0A2B2-4C5A-55F8-9DA4-820D42C27457" xml:space="preserve">...
    12 <concept id="GUID-218DB978-929C-5701-869F-8415FF6CE62D" xml:lang="en"><title>Using
       
    13 RFormat</title><shortdesc>This topic describes how to format a device.</shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody>
       
    14 <p>The <xref href="GUID-9D7E765B-6872-3EB9-9D5B-1503FA466EC1.dita"><apiname>RFormat</apiname></xref> class formats a device, one step at a time. </p>
       
    15 <p>The object must first be opened on a device, and then each track is formatted
       
    16 using <codeph>Next()</codeph>. The following code fragment shows how this
       
    17 is done: </p>
       
    18 <codeblock id="GUID-AAC0A2B2-4C5A-55F8-9DA4-820D42C27457" xml:space="preserve">...
    13 _LIT(KDriveA,"A:");
    19 _LIT(KDriveA,"A:");
    14 ...
    20 ...
    15 RFs fs;
    21 RFs fs;
    16 User::LeaveIfError(fs.Connect());
    22 User::LeaveIfError(fs.Connect());
    17 ...
    23 ...
    20 User::LeaveIfError(format.Open(fs,KDriveA,EHighDensity,tracksRemaining));
    26 User::LeaveIfError(format.Open(fs,KDriveA,EHighDensity,tracksRemaining));
    21 while (tracksRemaining)
    27 while (tracksRemaining)
    22     {
    28     {
    23     User::LeaveIfError(format.Next(tracksRemaining));
    29     User::LeaveIfError(format.Next(tracksRemaining));
    24     }
    30     }
    25 format.Close();</codeblock> </conbody></concept>
    31 format.Close();</codeblock>
       
    32 </conbody></concept>