wlansecuritysettings/wlaneapsettingsui/EapMschapv2/ConfigUi/inc/EapMschapv2UiView.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:23:57 +0100
branchRCL_3
changeset 46 c74b3d9f6b9e
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201029 Kit: 201035

/*
* Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: Header file of EAP MsChapv2 UI setting dialog
*
*/

/*
* %version: 16 %
*/

#ifndef _EAPMSCHAPV2UIVIEW_H_
#define _EAPMSCHAPV2UIVIEW_H_

// INCLUDES
#include <AknDialog.h>        
#include <eikspane.h> 
#include <akntitle.h>
#include <aknsettingitemlist.h>
#include <aknnavi.h>
#include <eiklbo.h>
#include "EapMschapv2Ui.hrh"


// FORWARD DECLARATIONS
class CAknSettingStyleListBox;
class CSettingsListBoxItemDrawer;
class CEapMsChapV2SettingItemArray;
class CEapMsChapV2UiConnection;
class CEapMsChapV2UiMsChapV2Data;
class CEapMsChapV2UiDataConnection;


// CLASS DECLARATION

/**
*  Settings dialog class definition
*/
class CEapMsChapV2UiDialog : public CAknDialog,
                             public MEikListBoxObserver
    {
    public:
        CEapMsChapV2UiDialog( CEapMsChapV2UiConnection* aConnection, 
                              TInt& aButtonId );

        ~CEapMsChapV2UiDialog();
     
        /**
        * Create and launch dialog.
        * @param aResourceId The resource ID of the dialog to load.
        * @return The ID of the button that closed the dialog
        */
        TInt ConstructAndRunLD( TInt aResourceId );
        
        
    public: // From MEikListBoxObserver
        
        /**
        * Handles list box events.
        * @param aListBox   The originating list box.
        * @param aEventType A code for the event.
        */
        void HandleListBoxEventL( CEikListBox* aListBox, TListBoxEvent aEventType );                


    protected:
        void PreLayoutDynInitL();
        TBool OkToExitL( TInt aButtonId );

    private:
        void InitializeSettingsL();
        void DrawSettingsListL();
        void ChangeTitleL( TBool aIsStarted );
        void ShowSettingPageL( TInt aCalledFromMenu ); 
        void ProcessCommandL( TInt aCommand );
        void GetHelpContext( TCoeHelpContext& aContext ) const;

        /**
        * Initialize menu pane.
        * @param aResourceId Menu pane resource id.
        * @param CEikMenuPane Menu pane.
        */
        void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );


    private:
        CEapMsChapV2UiConnection* iConnection;
        CEapMsChapV2UiMsChapV2Data* iUiData;
        CEapMsChapV2UiDataConnection* iDataConnection;
        CEapMsChapV2SettingItemArray* iSettingArray;
        CAknSettingStyleListBox* iSettingListBox;
        CSettingsListBoxItemDrawer* iSettingListItemDrawer;
        TBool iPassPrompt;
        CAknNavigationControlContainer* iNaviPane;
        CAknNavigationDecorator* iNaviDecorator;
        HBufC* iPreviousText;            
        TInt* iButtonId;
        
        // Tells the status of UI construction. TRUE if UI construction is completed.
		TBool iIsUIConstructionCompleted;
    };


#endif //_EAPMSCHAPV2UIVIEW_H_

//  End of File