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