simpsyconfigurator/inc/simpsyfileselector.h
branchRCL_3
changeset 17 1fc85118c3ae
parent 16 8173571d354e
child 18 870918037e16
equal deleted inserted replaced
16:8173571d354e 17:1fc85118c3ae
     1 /*
       
     2 * Copyright (c) 2007 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:  Simulation PSY file selector dialog.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_SIMPSYFILESELECTOR_H
       
    20 #define C_SIMPSYFILESELECTOR_H
       
    21 
       
    22 // SYSTEM INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <aknlists.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CSimPsyFileSelectorModel;
       
    28 
       
    29 /**
       
    30  *  Simulation PSY configurator file selector dialog.
       
    31  *  
       
    32  *  This class provides the extension of single graphic style list box which is
       
    33  *  used to display all the simulation psy files.
       
    34  * 
       
    35  *  @lib simpsyui.exe
       
    36  *  @since S60 v3.2
       
    37  */
       
    38 NONSHARABLE_CLASS( CSimPsyFileSelector ) : public CAknSingleGraphicPopupMenuStyleListBox
       
    39     {
       
    40 public:
       
    41     /**
       
    42      * Overloaded constructor
       
    43      */
       
    44     CSimPsyFileSelector();
       
    45 
       
    46     /**
       
    47      * Second phase of the two phase constructor
       
    48      */
       
    49     void ConstructL( CCoeControl*              aParent );          
       
    50 
       
    51     /**
       
    52      * C++ Destructor.
       
    53      * Frees all the resources associated with this object.
       
    54      */
       
    55     virtual ~CSimPsyFileSelector();
       
    56     
       
    57     /** 
       
    58      * Returns the simulation file name corresponding to the
       
    59      * selected item.
       
    60      */
       
    61     TPtrC SimulationFileNameL();
       
    62     	    
       
    63 private: // Inherited from Base classes.
       
    64     /**
       
    65      * Imherited from CCoeControl.
       
    66      */
       
    67     void HandleResourceChange( TInt    aType );
       
    68     
       
    69     /**
       
    70      * Updates the list box icons.
       
    71      */
       
    72     void UpdateIconsL();
       
    73 
       
    74 private: // data
       
    75     /**
       
    76      * Pop-up List box model.
       
    77      */
       
    78     CSimPsyFileSelectorModel*	    iListBoxModel;
       
    79     };
       
    80 
       
    81 #endif // C_LCPOPUPLISTBOX_H