testexecfw/stf/stfext/testmodules/teftestmod/tefwrapper/inc/wrapperapplication.h
changeset 2 8bb370ba6d1d
equal deleted inserted replaced
1:bbd31066657e 2:8bb370ba6d1d
       
     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 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef TTEFWRAPPERAPPLICATION_H_
       
    21 #define TTEFWRAPPERAPPLICATION_H_
       
    22 
       
    23 #include <e32std.h>
       
    24 #include <f32file.h>
       
    25 
       
    26 const TInt KFileNameLength( 255 );
       
    27 
       
    28 //class CAppLauncher;
       
    29 class CConsoleBase;
       
    30 
       
    31 class CTefWrapperApplication : public CBase
       
    32 {
       
    33 public:
       
    34 	static CTefWrapperApplication* NewL();
       
    35 	static CTefWrapperApplication* NewLC();
       
    36 	~CTefWrapperApplication();
       
    37 
       
    38 public:
       
    39 	void ParseCommandLineL();
       
    40 	void WriteConfigFileL();
       
    41 	void ExecuteL();
       
    42 	void DeleteConfigFile();
       
    43 
       
    44 private:
       
    45 	CTefWrapperApplication();
       
    46 	void ConstructL();
       
    47 	
       
    48 private:	
       
    49 	TBool IsScriptFile( const TDesC& );
       
    50 	void WriteLineL( const TDesC&, const TDesC& );
       
    51 	void WriteLineL( const TDesC&, const TDesC&, const TDesC& );
       
    52 	void GetConfigFileName( TDes& );
       
    53 	void PrintHelpMessage();
       
    54 
       
    55 private:
       
    56 	TBool iIsDebug;
       
    57 	TBool iIsSlf;
       
    58 	TBool iIsTcx;
       
    59 	TBool iIsTci;
       
    60 	TBool iHasScript;
       
    61 	TBool iIsTcsPair;
       
    62 	
       
    63 	CConsoleBase* iConsole;
       
    64 	
       
    65 	TBuf<KFileNameLength> iTciParam;
       
    66 	TBuf<KFileNameLength> iTcxParam;
       
    67 	TBuf<KFileNameLength> iScriptFileName;
       
    68 	TBuf<KFileNameLength> iCfgFileName;
       
    69 	
       
    70 private:
       
    71 	RFs iFs;
       
    72 	//RFile iFile;
       
    73 //	CAppLauncher* iAppLauncher;
       
    74 };
       
    75 
       
    76 #endif	// TTEFWRAPPERAPPLICATION_H_