browserutilities/feedsengine/FeedsUI/TestHarness/inc/TestHarnessView.h
changeset 0 dd21522fd290
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2 * Copyright (c) 2005 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 the License "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:  A view to set options.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef SETTINGS_VIEW_H
       
    20 #define SETTINGS_VIEW_H
       
    21 
       
    22 
       
    23 // INCLUDES
       
    24 #include <aknview.h>
       
    25 
       
    26 #include "TestHarness.h"
       
    27 
       
    28 // CONSTANTS
       
    29 
       
    30 // MACROS
       
    31 
       
    32 // DATA TYPES
       
    33 
       
    34 // FUNCTION PROTOTYPES
       
    35 
       
    36 // FORWARD DECLARATIONS
       
    37 class CTestHarnessContainer;
       
    38 
       
    39 // CLASS DECLARATION
       
    40 
       
    41 
       
    42 /**
       
    43 *  A view to set options.
       
    44 *
       
    45 *  \b Library: FeedsEngine.lib
       
    46 *
       
    47 *  @since 3.0
       
    48 */
       
    49 class CTestHarnessView: public CAknView, public MTestHarnessObserver
       
    50     {
       
    51     public:
       
    52         /**
       
    53         * Two-phased constructor.
       
    54         */
       
    55         static CTestHarnessView* NewL();
       
    56 
       
    57         /**
       
    58         * Destructor.
       
    59         */        
       
    60         ~CTestHarnessView();
       
    61 
       
    62         /**
       
    63         * Shows the settings view.
       
    64         *
       
    65         * @since 3.0
       
    66         * @return void.
       
    67         */
       
    68         static void ShowL(TUid aRestoreToId);
       
    69 
       
    70 
       
    71     public: // From CAknView
       
    72         /**
       
    73         * Returns the id of the view.
       
    74         *
       
    75         * @since ?
       
    76         * @return the id.
       
    77         */
       
    78         virtual TUid Id() const;
       
    79 
       
    80         /**
       
    81         * Processes commands.
       
    82         *
       
    83         * @since ?
       
    84         * @param aCommand the command to process.
       
    85         * @return void.
       
    86         */
       
    87         virtual void HandleCommandL(TInt aCommand);
       
    88 
       
    89 
       
    90     private: // From CAknView
       
    91         /**
       
    92         * Called when the view is activated.
       
    93         *
       
    94         * @since ?
       
    95         * @param aPrevViewId the id of the prev view.
       
    96         * @param aCustomMessageId The activation message id.
       
    97         * @param aCustomMessage Activation params.
       
    98         * @return void.
       
    99         */
       
   100         virtual void DoActivateL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId, 
       
   101                 const TDesC8& aCustomMessage);
       
   102 
       
   103         /**
       
   104         * Called when the view is deactivated.
       
   105         *
       
   106         * @since ?
       
   107         * @return void.
       
   108         */
       
   109         virtual void DoDeactivate();
       
   110 
       
   111 
       
   112     public:  // From MTestHarnessObserver
       
   113         /**
       
   114         * Notifies the observer that the test harness is completed.
       
   115         *
       
   116         * @since 3.0
       
   117         * @return void.
       
   118         */
       
   119         virtual void Completed();
       
   120 
       
   121 
       
   122     private:
       
   123         /**
       
   124         * C++ default constructor.
       
   125         */
       
   126         CTestHarnessView();
       
   127 
       
   128         /**
       
   129         * By default Symbian 2nd phase constructor is private.
       
   130         */
       
   131         void ConstructL();
       
   132 
       
   133     
       
   134     private:
       
   135         CTestHarnessContainer* iContainer;
       
   136         TBool                  iContainerOnStack;
       
   137         
       
   138         CTestHarness*          iHarness;
       
   139     };
       
   140 
       
   141 #endif      // SETTINGS_VIEW_H
       
   142             
       
   143 // End of File
       
   144