testexecmdw/tef/tef/tefutilities/tefutilityserver/inc/tefformatdrive.h
branchRCL_3
changeset 3 9397a16b6eb8
parent 1 6edeef394eb7
equal deleted inserted replaced
1:6edeef394eb7 3:9397a16b6eb8
     1 /*
       
     2 * Copyright (c) 2005-2009 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:  
       
    15 * This Test step formats the specified drive
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 /**
       
    22  @file TEFFormatDrive.h
       
    23 */
       
    24 
       
    25 #if (!defined __TEF_FORMAT_DRIVE_H__)
       
    26 #define __TEF_FORMAT_DRIVE_H__
       
    27 
       
    28 
       
    29 #include <test/testexecutestepbase.h>
       
    30 #include <f32file.h>
       
    31 
       
    32 class CTEFFormatDrive : public CTestStep
       
    33 {
       
    34 public:
       
    35 	CTEFFormatDrive();
       
    36 public:
       
    37 	virtual	TVerdict	doTestStepL();
       
    38 	virtual	TVerdict	doTestStepPreambleL();
       
    39 	virtual	TVerdict	doTestStepPostambleL();
       
    40 
       
    41 private:
       
    42 	void ReadDriveNameL(TDriveUnit &aDriveName);
       
    43 	TInt PreParseFileNameL(const TDesC& aInputFileName, HBufC*& aOutputFileName);	
       
    44 	TInt FormatDiskL(TPtrC aDrivePath, TPtrC aFormatType, TBool& aFormatFlag);	
       
    45 private:
       
    46 	RFs		iFs;
       
    47 
       
    48 };
       
    49 
       
    50 _LIT(KFormatDrive,"FormatDrive");
       
    51 
       
    52 #endif