uifw/AvKon/tsrc/bc/bctestlauncher/inc/bctestconf.h
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 /*
       
     2 * Copyright (c) 2006-2007 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:  Test case class, user will create own test case class by 
       
    15 *                deriving from the class.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef C_CBCTESTCONFIG_H
       
    21 #define C_CBCTESTCONFIG_H
       
    22 
       
    23 #include <e32std.h>
       
    24 #include <e32base.h>
       
    25 #include <f32file.h>
       
    26 
       
    27 #include "bctestlauncherdefs.h"
       
    28 
       
    29 /**
       
    30  *  BC test configurator, read all BC applications from an XML file.
       
    31  */
       
    32 class CBCTestConf : public CBase
       
    33     {
       
    34 public: // constructor
       
    35     static CBCTestConf* NewLC();
       
    36 
       
    37     /**
       
    38     * C++ default constructor
       
    39     */ 
       
    40     CBCTestConf();
       
    41 
       
    42 	void ConstructL();
       
    43     
       
    44     /**
       
    45     * Destructor
       
    46     */
       
    47     virtual ~CBCTestConf();
       
    48     
       
    49 // new funcs
       
    50 
       
    51     TBool NextL();
       
    52 
       
    53 	const TDesC& Name();
       
    54 	TInt  AppUID();
       
    55 	TInt  ViewUID();
       
    56 	TInt  Timeout();
       
    57 	TInt  Version();
       
    58     
       
    59 private:
       
    60 	void  OpenConfigL();
       
    61 	void  CloseConfig();
       
    62 	TBool ReadBlockDataL();
       
    63 
       
    64 	/**
       
    65 	* @return EFalse for EOF, otherwise it returns ETrue
       
    66 	*/
       
    67 	TBool ReadLineL( TDes& aLine );
       
    68 
       
    69 // data
       
    70     RFile iFile;
       
    71 
       
    72 	TBuf<KNameLength> iName;
       
    73 	TInt iAppUID;
       
    74     TInt iViewUID;
       
    75     TInt iTimeout;  // [min]
       
    76 	TInt iVersion;	// S60 30, 31, 32
       
    77     };
       
    78 
       
    79 #endif // C_CBCTESTCONFIG_H