stif/StifTFwIf/inc/UIEngineRunner.h
branchRCL_3
changeset 59 8ad140f3dd41
equal deleted inserted replaced
49:7fdc9a71d314 59:8ad140f3dd41
       
     1 /*
       
     2 * Copyright (c) 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: This file contains the header file of the 
       
    15 * CUIEngineRunner.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef STIF_TFW_IF_RUNNER_H
       
    21 #define STIF_TFW_IF_RUNNER_H
       
    22 
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32std.h>
       
    26 #include <e32base.h>
       
    27 #include <stifinternal/UIEngineContainer.h>
       
    28 
       
    29 // CONSTANTS
       
    30 // None
       
    31 
       
    32 // MACROS
       
    33 // None
       
    34 
       
    35 // DATA TYPES
       
    36 // None
       
    37 
       
    38 // FUNCTION PROTOTYPES
       
    39 // None
       
    40 
       
    41 
       
    42 // FORWARD DECLARATIONS
       
    43 // None
       
    44 
       
    45 
       
    46 // CLASS DECLARATION
       
    47 
       
    48 
       
    49 // DESCRIPTION
       
    50 
       
    51 // CUIEngineRunner is a class that is used to run test cases using
       
    52 // STIF Test Framework.
       
    53 class CUIEngineRunner
       
    54         : public CActive
       
    55     {
       
    56     public: // Enumerations
       
    57         // None
       
    58 
       
    59     private: // Enumerations
       
    60         // None
       
    61 
       
    62     public: // Constructors and destructor
       
    63 
       
    64         /**
       
    65         * NewL is two-phased constructor.
       
    66         */
       
    67         static CUIEngineRunner* NewL( CUIEngineContainer* aUIEngineContainer );
       
    68 
       
    69         /**
       
    70         * Destructor of CUIEngineRunner.
       
    71         */
       
    72         ~CUIEngineRunner();
       
    73 
       
    74     public: // New functions
       
    75 
       
    76         /**
       
    77         * StartTestL starts testing.
       
    78         */
       
    79         void StartL( RTestCase& aTestCase );
       
    80         
       
    81         /**
       
    82         * Test result.
       
    83         */
       
    84         inline TFullTestResult& FullResult(){ return iFullTestResult; };
       
    85 
       
    86     public: // Functions from base classes
       
    87 
       
    88         /**
       
    89         * From CActive RunL handles request completion.
       
    90         */
       
    91         void RunL();
       
    92 
       
    93         /**
       
    94         * From CActive DoCancel handles request cancellation.
       
    95         */
       
    96         void DoCancel();
       
    97 
       
    98     protected: // New functions
       
    99         // None
       
   100 
       
   101     protected: // Functions from base classes
       
   102         // None
       
   103 
       
   104     private: // New functions
       
   105 
       
   106         /** 
       
   107         * C++ default constructor.
       
   108         */
       
   109         CUIEngineRunner( CUIEngineContainer* aUIEngineContainer);
       
   110 
       
   111         /**
       
   112         * By default Symbian OS constructor is private.
       
   113         */
       
   114         void ConstructL();
       
   115 
       
   116 
       
   117     public: //Data
       
   118         // None
       
   119     
       
   120     protected: // Data
       
   121         // None
       
   122 
       
   123     private: // Data
       
   124 
       
   125         // Pointer to UIEngine
       
   126         CUIEngineContainer*            iUIEngineContainer;
       
   127 
       
   128         // Handle to Test Case
       
   129         RTestCase                       iTestCase;
       
   130         
       
   131         // Test result and package
       
   132         TFullTestResult                 iFullTestResult;
       
   133         TFullTestResultPckg             iFullTestResultPckg;
       
   134 
       
   135     public: // Friend classes
       
   136         // None
       
   137 
       
   138     protected: // Friend classes
       
   139         // None
       
   140 
       
   141     private: // Friend classes
       
   142         // None
       
   143 
       
   144     };
       
   145 
       
   146 
       
   147 
       
   148 #endif // STIF_TFW_IF_RUNNER_H
       
   149 
       
   150 // End of File