profilesapplication/Profiles/ProfileAiwProvider/src/CPapPopupList.h
branchRCL_3
changeset 18 b7fa36b488f8
parent 17 861562a14a53
child 19 cd54903d48da
equal deleted inserted replaced
17:861562a14a53 18:b7fa36b488f8
     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:  A thin CAknPopupList extension.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CPAPPOPUPLIST_H
       
    21 #define CPAPPOPUPLIST_H
       
    22 
       
    23 // EXTERNAL INCLUDES
       
    24 #include <aknPopup.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 
       
    28 // CLASS DECLARATION
       
    29 
       
    30 /**
       
    31 *  A thin CAknPopupList extension.
       
    32 *  Handles resource changes.
       
    33 *
       
    34 *  @lib ProfileSettingsView.lib
       
    35 *  @since 3.1
       
    36 */
       
    37 NONSHARABLE_CLASS( CPapPopupList ) : public CAknPopupList
       
    38     {
       
    39 
       
    40     public: // New methods
       
    41 
       
    42 		/**
       
    43 		* Two-phased constructor.
       
    44 		* @param aListbox A parameter to CAknPopupList.
       
    45 		* @param aCbaResource A parameter to CAknPopupList.
       
    46 		* @param aType A parameter to CAknPopupList.
       
    47 		*/
       
    48 		static CPapPopupList* NewL( CEikListBox* aListBox, TInt aCbaResource );
       
    49 		
       
    50 		void ConstructL( CEikListBox* aListBox, TInt aCbaResource );
       
    51 
       
    52 		/**
       
    53         * Destructor.
       
    54         */	
       
    55 		virtual ~CPapPopupList();
       
    56 
       
    57 		/**
       
    58 		* Fills in ListBox icon array.
       
    59 		*/
       
    60 		void SetIconsL();
       
    61 
       
    62     private: // From CAknPopupList
       
    63 
       
    64         void HandleResourceChange( TInt aType );
       
    65         void HandleListBoxEventL( CEikListBox* aListBox, TListBoxEvent aEventType );
       
    66         void ProcessCommandL( TInt aCommandId );
       
    67 
       
    68     private:
       
    69 
       
    70 		/**
       
    71 		* C++ constructor.
       
    72 		*/
       
    73 		CPapPopupList();
       
    74 
       
    75 	private: // New methods
       
    76 
       
    77 	    /**
       
    78 	     * Updates softkeys.
       
    79 	     */
       
    80 	    void UpdateCba();
       
    81 	    
       
    82     private:    // Data
       
    83 
       
    84     };
       
    85 
       
    86 #endif      // CPAPPOPUPLIST_H
       
    87 
       
    88 // End of File