testfwuis/stifui/avkon/stifui/inc/UIStoreHandler.h
changeset 2 453d490c84a5
child 3 6952856dc269
equal deleted inserted replaced
1:753e33780645 2:453d490c84a5
       
     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 CUIStoreHandler class declaration.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef UISTOREHANDLER_H
       
    19 #define UISTOREHANDLER_H
       
    20 
       
    21 //  INCLUDES
       
    22 //#include "UIStoreIf.h"  
       
    23 //#include "UIStore.h"   
       
    24 //#include "UIEngine.h"  
       
    25 
       
    26 #include <stifinternal/UIStoreIf.h>
       
    27 #include <stifinternal/UIStore.h>
       
    28 #include <stifinternal/UIEngine.h>
       
    29 
       
    30 #include "AppUIAppUi.h"
       
    31 
       
    32 // CONSTANTS
       
    33 // None
       
    34 
       
    35 // MACROS
       
    36 // None
       
    37 
       
    38 // DATA TYPES
       
    39 // None
       
    40 
       
    41 // FUNCTION PROTOTYPES
       
    42 // None
       
    43 
       
    44 // FORWARD DECLARATIONS
       
    45 // None
       
    46 
       
    47 // CLASS DECLARATION
       
    48 // None
       
    49 class CAppUIAppUi;
       
    50 
       
    51 // DESCRIPTION
       
    52 // CUIStoreHandler is a STIF Test Framework Series60 UI class.
       
    53 // CUIStoreHandler's methods purpose is to offer handle to UI Engine.
       
    54 // Because multible inheritance in not allowed in SOS we cannot 
       
    55 // inheritance CUIStore class direct so we use this class.
       
    56 
       
    57 class CUIStoreHandler 
       
    58             :public CUIStoreIf
       
    59     {
       
    60     public:     // Enumerations
       
    61 
       
    62     private:    // Enumerations
       
    63 
       
    64     public:     // Constructors and destructor
       
    65 
       
    66         /**
       
    67         * Two-phased constructor.
       
    68         * @param aAppUIAppUI Pointer to application ui.
       
    69         * @return Pointer to UIStoreHandler.
       
    70         */
       
    71         static CUIStoreHandler* NewL( CAppUIAppUi* aAppUIAppUI );
       
    72 
       
    73         /**
       
    74         * Destructor.
       
    75         */
       
    76         ~CUIStoreHandler();
       
    77 
       
    78     public:     // New functions
       
    79 
       
    80         /**
       
    81         * C++ default constructor.
       
    82         * @param aAppUIAppUI Pointer to application ui.
       
    83         */
       
    84         CUIStoreHandler( CAppUIAppUi* aAppUIAppUI );
       
    85 
       
    86         /**
       
    87         * Receives output update notify from started test case.
       
    88         * Checks if that test case is currently in output view then
       
    89         * sends notification to AppUI which handles notification onward.
       
    90         * @param aTestCase
       
    91         * @param aStatus
       
    92         */
       
    93         void Update( CStartedTestCase* aTestCase, TInt aStatus );
       
    94 
       
    95     public:     // Functions from base classes
       
    96 
       
    97     protected:  // New functions
       
    98 
       
    99     protected:  // Functions from base classes
       
   100 
       
   101     private:
       
   102 
       
   103         /**
       
   104         * By default Symbian OS constructor is private.
       
   105         */
       
   106         void ConstructL();
       
   107 
       
   108     public:     // Data
       
   109 
       
   110         /**
       
   111         * Returns the AppUI of the application
       
   112         * @return Pointer to the Application UI.
       
   113         */
       
   114         CAppUIAppUi* iAppUIAppUI;
       
   115         
       
   116         /**
       
   117         * Counter for executed test cases
       
   118         */
       
   119         TInt iExecutedTestCaseCount;
       
   120 
       
   121     protected:  // Data
       
   122 
       
   123     private:    // Data
       
   124 
       
   125     public:     // Friend classes
       
   126 
       
   127     protected:  // Friend classes
       
   128 
       
   129     private:    // Friend classes
       
   130 
       
   131     };
       
   132 
       
   133 #endif      // UISTOREHANDLER_H
       
   134 
       
   135 // End of File