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