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