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