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