cmmanager/cmmgr/Framework/Inc/cmdesticondialog.h
changeset 20 9c97ad6591ae
parent 18 fcbbe021d614
child 21 b8e8e15e80f2
child 23 7ec726f93df1
child 28 860702281757
equal deleted inserted replaced
18:fcbbe021d614 20:9c97ad6591ae
     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:  Destination icon dialog
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CMDESTICONDIALOG_H
       
    19 #define CMDESTICONDIALOG_H
       
    20 
       
    21 #include <AknDialog.h>// <eikdialg.h>
       
    22 
       
    23 /**
       
    24  * Change Icon table for destinations.Contains all the icon available
       
    25  */
       
    26 NONSHARABLE_CLASS(CCmDestinationIconDialog) : public CAknDialog
       
    27     {
       
    28     public:
       
    29 
       
    30         /**
       
    31         * Destinations change Icon table constructor. 
       
    32         *
       
    33         * @param aIconIndex selected icon index. 
       
    34         *
       
    35         */
       
    36         CCmDestinationIconDialog( TInt& aIconIndex );
       
    37 
       
    38         /**
       
    39         * Destinations change Icon table destructor. 
       
    40         * C++ destructor
       
    41         */
       
    42         ~CCmDestinationIconDialog();
       
    43 
       
    44     public: // from CEikDialog
       
    45 
       
    46         /**
       
    47         * Prepares and runs the dialog and returns the id of the button used to 
       
    48         * dismiss it. The dialog is constructed from the resource with id 
       
    49         * aResourceId and is destroyed on exit.
       
    50         *
       
    51         * @return Id of the button used to dismiss dialog.
       
    52         */
       
    53         TInt ExecuteLD();
       
    54         
       
    55 #ifdef RD_SCALABLE_UI_V2
       
    56 
       
    57 	    //From MCoeControlObserver
       
    58 	    void HandleControlEventL( CCoeControl* aControl,
       
    59 	                              TCoeEvent aEventType );
       
    60 	    void HandleDialogPageEventL( TInt aEventID );
       
    61 	    
       
    62 #endif // RD_SCALABLE_UI_V2 	
       
    63 
       
    64     public: // from CCoeControl
       
    65 
       
    66         TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, 
       
    67                                       TEventCode /*aType*/ );
       
    68         void HandleResourceChange(TInt aType);
       
    69         SEikControlInfo CreateCustomControlL(TInt aControlType);
       
    70 
       
    71     protected: // from CEikDialog
       
    72     
       
    73          virtual TBool OkToExitL(TInt);
       
    74          virtual void PreLayoutDynInitL();
       
    75          virtual void SetSizeAndPosition(const TSize& aSize);
       
    76 
       
    77     private: 
       
    78 
       
    79          virtual void CEikDialog_Reserved_1();
       
    80          virtual void CEikDialog_Reserved_2();
       
    81 
       
    82     private: // new function
       
    83     
       
    84          virtual void CAknIconMapDialog_Reserved();
       
    85 
       
    86     private:
       
    87     
       
    88         TInt* iIconIndex;
       
    89 
       
    90 #ifdef RD_SCALABLE_UI_V2     
       
    91 
       
    92     	TBool iConSelected;
       
    93 
       
    94 #endif // RD_SCALABLE_UI_V2  
       
    95     };
       
    96 
       
    97 #endif  // LMKICONDIALOG_H