classicui_pub/tsrc/bc/apps/S60_SDK3.0/bctestcmdlg/inc/bctestcmdlgcase.h
changeset 22 75713bee6484
parent 21 558113899881
child 26 62ef28f7b435
child 28 d33307312dfe
equal deleted inserted replaced
21:558113899881 22:75713bee6484
     1 /*
       
     2 * Copyright (c) 2006-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:         test case
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 
       
    26 #ifndef BCTEST_CMDLG_CASE_H
       
    27 #define BCTEST_CMDLG_CASE_H
       
    28 
       
    29 #include <caknmemoryselectiondialog.h>
       
    30 #include "bctestcase.h"
       
    31 
       
    32 class CBCTestCmDlgContainer;
       
    33 class CCoeControl;
       
    34 
       
    35 /**
       
    36 * test case for various list classes
       
    37 */
       
    38 class CBCTestCmDlgCase: public CBCTestCase
       
    39     {
       
    40 public: // constructor and destructor
       
    41     
       
    42     /**
       
    43     * Symbian 2nd static constructor
       
    44     */
       
    45     static CBCTestCmDlgCase* NewL();
       
    46     
       
    47     /**
       
    48     * Destructor
       
    49     */
       
    50     virtual ~CBCTestCmDlgCase();
       
    51     
       
    52 public: // from CBCTestCase
       
    53     
       
    54     /**
       
    55     * Execute corresponding test functions for UI command
       
    56     * @param aCmd, UI command
       
    57     */
       
    58     void RunL( TInt aCmd );
       
    59 
       
    60 protected: // new functions
       
    61     
       
    62     /**
       
    63     * Build autotest script
       
    64     */
       
    65     void BuildScriptL();
       
    66     
       
    67     /**
       
    68      * Create control or allocate resource for test
       
    69      * @param aCmd UI command, maybe you need to do some work 
       
    70      * for different outline
       
    71      */
       
    72     
       
    73     /**
       
    74      * Release resource used in test
       
    75      */
       
    76     void Teardown();
       
    77     
       
    78     /**
       
    79      * Test functions
       
    80      */
       
    81         
       
    82 private: // constructor
       
    83     
       
    84     /**
       
    85      * C++ default constructor
       
    86      */
       
    87     CBCTestCmDlgCase();
       
    88     
       
    89     /**
       
    90      * Symbian 2nd constructor
       
    91      */
       
    92     void ConstructL();
       
    93     
       
    94 private: // data
       
    95     void TestSettingsL();
       
    96     void TestQuickCreateL(TInt aResID);
       
    97     void TestQuickCreateL(const TDesC& aTitle);
       
    98     void TestWithRootL();
       
    99     void TestCreateL(TInt aResID);
       
   100     void SetupL();
       
   101     void AddCancelL();
       
   102     void AddOKL();
       
   103     void TestQuickCreateL();
       
   104     void TestCreateL();
       
   105 
       
   106 	CAknMemorySelectionDialog* iDlg;
       
   107 	CAknMemorySelectionDialog::TMemory iMemory;
       
   108     };
       
   109 
       
   110 #endif // BCTEST_CMDLG_CASE_H