wlansecuritysettings/wlaneapsettingsui/EapGtc/ConfigUi/inc/EapGtcUiView.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 GTC UI setting dialog
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef _EAPGTCUIVIEW_H_
       
    21 #define _EAPGTCUIVIEW_H_
       
    22 
       
    23 // INCLUDES
       
    24 #include <AknDialog.h>        
       
    25 #include <eikspane.h>
       
    26 #include <akntitle.h>
       
    27 #include <aknsettingitemlist.h>
       
    28 #include "EapGtcUi.hrh"
       
    29 #include <aknnavi.h>
       
    30 #include <eiklbo.h>
       
    31 
       
    32 
       
    33 // FORWARD DECLARATIONS
       
    34 class CAknSettingStyleListBox;
       
    35 class CSettingsListBoxItemDrawer;
       
    36 class CEapGtcSettingItemArray;
       
    37 class CEapGtcUiConnection;
       
    38 class CEapGtcUiGtcData;
       
    39 class CEapGtcUiDataConnection;
       
    40 
       
    41 
       
    42 // CLASS DECLARATION
       
    43 
       
    44 /**
       
    45 *  Settings dialog class definition
       
    46 */
       
    47 class CEapGtcUiDialog : public CAknDialog,
       
    48                         public MEikListBoxObserver
       
    49     {
       
    50     public:
       
    51         CEapGtcUiDialog( CEapGtcUiConnection* aConnection, 
       
    52                          TInt& aButtonId );
       
    53 
       
    54         ~CEapGtcUiDialog();
       
    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 SaveSettings();
       
    85 
       
    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         CEapGtcUiConnection* iConnection;
       
    98         CEapGtcUiGtcData* iUiData;
       
    99         CEapGtcUiDataConnection* iDataConnection;
       
   100         CEapGtcSettingItemArray* 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 #endif // _EAPGTCUIVIEW_H_
       
   113 
       
   114 //  End of File