|
1 /* |
|
2 * Copyright (c) 2003-2006 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: File server interface class representing a format |
|
15 * operation on a disk. Not supported for remote drives. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include "rsfwfsformatcb.h" |
|
22 |
|
23 // ============================ MEMBER FUNCTIONS =============================== |
|
24 |
|
25 // ----------------------------------------------------------------------------- |
|
26 // CRsfwFsFormatCB::CRsfwFsFormatCB |
|
27 // C++ default constructor can NOT contain any code, that |
|
28 // might leave. |
|
29 // ----------------------------------------------------------------------------- |
|
30 // |
|
31 CRsfwFsFormatCB::CRsfwFsFormatCB() |
|
32 { |
|
33 } |
|
34 |
|
35 // Destructor |
|
36 CRsfwFsFormatCB::~CRsfwFsFormatCB() |
|
37 { |
|
38 } |
|
39 |
|
40 // ----------------------------------------------------------------------------- |
|
41 // CRsfwFsFormatCB::DoFormatStepL |
|
42 // Performs a formatting step on the drive. The step performed should depend on |
|
43 // the values of iMode and iCurrentStep. It can be assumed that there are no |
|
44 // resources open on the mount, that the media is formattable, and that the media |
|
45 // is not write protected. |
|
46 // |
|
47 // If iMode == EQuickFormat, then only meta data is to be written. |
|
48 // This should be carried out in a single step, with iCurrentStep set |
|
49 // to zero on completion. |
|
50 // |
|
51 // If iMode != EQuickFormat, then the format step performed by |
|
52 // this function should depend on iCurrentStep. When the function |
|
53 // returns with iCurrentStep set to zero, the formatting of the drive is complete. |
|
54 // |
|
55 // implementation: not supported for remote drives |
|
56 // |
|
57 // (other items were commented in a header). |
|
58 // ----------------------------------------------------------------------------- |
|
59 // |
|
60 void CRsfwFsFormatCB::DoFormatStepL() |
|
61 { |
|
62 iCurrentStep = 0; |
|
63 User::Leave(KErrNotSupported); |
|
64 } |
|
65 |
|
66 // End of File |