wlansecuritysettings/wlaneapsettingsui/EapMschapv2/ConfigUi/inc/EapMschapv2UiView.h
changeset 0 c8830336c852
child 2 1c7bc153c08e
equal deleted inserted replaced
-1:000000000000 0:c8830336c852
       
     1 /*
       
     2 * Copyright (c) 2001-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 the License "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: Header file of EAP MsChapv2 UI setting dialog
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef _EAPMSCHAPV2UIVIEW_H_
       
    21 #define _EAPMSCHAPV2UIVIEW_H_
       
    22 
       
    23 // INCLUDES
       
    24 #include <AknDialog.h>        
       
    25 #include <eikspane.h> 
       
    26 #include <akntitle.h>
       
    27 #include <aknsettingitemlist.h>
       
    28 #include <aknnavi.h>
       
    29 #include <eiklbo.h>
       
    30 #include "EapMschapv2Ui.hrh"
       
    31 
       
    32 
       
    33 // FORWARD DECLARATIONS
       
    34 class CAknSettingStyleListBox;
       
    35 class CSettingsListBoxItemDrawer;
       
    36 class CEapMsChapV2SettingItemArray;
       
    37 class CEapMsChapV2UiConnection;
       
    38 class CEapMsChapV2UiMsChapV2Data;
       
    39 class CEapMsChapV2UiDataConnection;
       
    40 
       
    41 
       
    42 // CLASS DECLARATION
       
    43 
       
    44 /**
       
    45 *  Settings dialog class definition
       
    46 */
       
    47 class CEapMsChapV2UiDialog : public CAknDialog,
       
    48                              public MEikListBoxObserver
       
    49     {
       
    50     public:
       
    51         CEapMsChapV2UiDialog( CEapMsChapV2UiConnection* aConnection, 
       
    52                               TInt& aButtonId );
       
    53 
       
    54         ~CEapMsChapV2UiDialog();
       
    55      
       
    56         /**
       
    57         * Create and launch dialog.
       
    58         * @param aResourceId The resource ID of the dialog to load.
       
    59         * @return The ID of the button that closed the dialog
       
    60         */
       
    61         TInt ConstructAndRunLD( TInt aResourceId );
       
    62         
       
    63         
       
    64     public: // From MEikListBoxObserver
       
    65         
       
    66         /**
       
    67         * Handles list box events.
       
    68         * @param aListBox   The originating list box.
       
    69         * @param aEventType A code for the event.
       
    70         */
       
    71         void HandleListBoxEventL( CEikListBox* aListBox, TListBoxEvent aEventType );                
       
    72 
       
    73 
       
    74     protected:
       
    75         void PreLayoutDynInitL();
       
    76         TBool OkToExitL( TInt aButtonId );
       
    77 
       
    78     private:
       
    79         void InitializeSettingsL();
       
    80         void DrawSettingsListL();
       
    81         void ChangeTitleL( TBool aIsStarted );
       
    82         void ShowSettingPageL( TInt aCalledFromMenu ); 
       
    83         void ProcessCommandL( TInt aCommand );
       
    84         void GetHelpContext( TCoeHelpContext& aContext ) const;
       
    85 
       
    86         /**
       
    87         * Initialize menu pane.
       
    88         * @param aResourceId Menu pane resource id.
       
    89         * @param CEikMenuPane Menu pane.
       
    90         */
       
    91         void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
       
    92 
       
    93 
       
    94     private:
       
    95         CEapMsChapV2UiConnection* iConnection;
       
    96         CEapMsChapV2UiMsChapV2Data* iUiData;
       
    97         CEapMsChapV2UiDataConnection* iDataConnection;
       
    98         CEapMsChapV2SettingItemArray* iSettingArray;
       
    99         CAknSettingStyleListBox* iSettingListBox;
       
   100         CSettingsListBoxItemDrawer* iSettingListItemDrawer;
       
   101         TBool iPassPrompt;
       
   102         CAknNavigationControlContainer* iNaviPane;
       
   103         CAknNavigationDecorator* iNaviDecorator;
       
   104         HBufC* iPreviousText;            
       
   105         TInt* iButtonId;
       
   106         
       
   107         // Tells the status of UI construction. TRUE if UI construction is completed.
       
   108 		TBool iIsUIConstructionCompleted;
       
   109     };
       
   110 
       
   111 
       
   112 #endif //_EAPMSCHAPV2UIVIEW_H_
       
   113 
       
   114 //  End of File