applicationmanagement/tsrc/tarmappmng/inc/amtest.h
changeset 0 3ce708148e4d
equal deleted inserted replaced
-1:000000000000 0:3ce708148e4d
       
     1 /*
       
     2 * Copyright (c) 2002 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: Implementation of applicationmanagement components
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef AMTEST_H
       
    21 #define AMTEST_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <StifLogger.h>
       
    25 #include <TestScripterInternal.h>
       
    26 #include <StifTestModule.h>
       
    27 #include <smldmadapter.h>
       
    28 #include "dmatest.h"
       
    29 
       
    30 const TUint KNSmlDMAMAdapterImplUid = 0x10207845;
       
    31 
       
    32 	
       
    33 
       
    34 const TUid KAdapterUid = 
       
    35 		{
       
    36 		KNSmlDMAMAdapterImplUid
       
    37 		};
       
    38 // Logging path
       
    39 _LIT( KamtestLogPath, "\\logs\\testframework\\amtest\\" ); 
       
    40 // Log file
       
    41 _LIT( KamtestLogFile, "amtest.txt" ); 
       
    42 
       
    43 
       
    44 // FORWARD DECLARATIONS
       
    45 class Camtest;
       
    46 
       
    47 
       
    48 // CLASS DECLARATION
       
    49 
       
    50 /**
       
    51 *  Camtest test class for STIF Test Framework TestScripter.
       
    52 *  ?other_description_lines
       
    53 *
       
    54 *  @lib ?library
       
    55 *  @since ?Series60_version
       
    56 */
       
    57 class Camtest : public Cdmatest
       
    58     {
       
    59     public:  // Constructors and destructor
       
    60         
       
    61         /**
       
    62         * Two-phased constructor.
       
    63         */
       
    64         static Camtest* NewL( CTestModuleIf& aTestModuleIf );
       
    65         
       
    66         /**
       
    67         * Destructor.
       
    68         */
       
    69         virtual ~Camtest();
       
    70 
       
    71     public: // Functions from base classes
       
    72 
       
    73         /**
       
    74         * From CScriptBase Runs a script line.
       
    75         * @since ?Series60_version
       
    76         * @param aItem Script line containing method name and parameters
       
    77         * @return Symbian OS error code
       
    78         */
       
    79         virtual TInt RunMethodL( CStifItemParser& aItem );
       
    80                 
       
    81 
       
    82     private:
       
    83 
       
    84         /**
       
    85         * C++ default constructor.
       
    86         */
       
    87         Camtest( CTestModuleIf& aTestModuleIf );
       
    88 
       
    89         /**
       
    90         * By default Symbian 2nd phase constructor is private.
       
    91         */
       
    92         void ConstructL();
       
    93 
       
    94         // Prohibit copy constructor if not deriving from CBase.
       
    95         // ?classname( const ?classname& );
       
    96         // Prohibit assigment operator if not deriving from CBase.
       
    97         // ?classname& operator=( const ?classname& );
       
    98     
       
    99         /**
       
   100         * Frees all resources allocated from test methods.
       
   101         * @since ?Series60_version
       
   102         */
       
   103         virtual void Delete();
       
   104         
       
   105         /**
       
   106         * Test methods are listed below. 
       
   107         */
       
   108         
       
   109         /**
       
   110         * Example test method.
       
   111         * @since ?Series60_version
       
   112         * @param aItem Script line containing parameters.
       
   113         * @return Symbian OS error code.
       
   114         */
       
   115         virtual TInt ExampleL( CStifItemParser& aItem ) ;
       
   116         virtual TInt DeliverL( CStifItemParser& aItem ) ;
       
   117         virtual TInt DetailsL( CStifItemParser& aItem ) ;
       
   118 		virtual TInt InstallL( CStifItemParser& aItem ) ;
       
   119 		virtual TInt BareInstallL( CStifItemParser& aItem ) ;
       
   120 		
       
   121 
       
   122     private:    // Data
       
   123         HBufC8 *GetNextStringLC ( CStifItemParser& aItem, const TDesC &aName );
       
   124 
       
   125 
       
   126     };
       
   127 
       
   128 #endif      // AMTEST_H
       
   129             
       
   130 // End of File