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