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