--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/wlansecuritysettings/wlaneapsettingsui/EapSim/ConfigUi/inc/EapSimUiView.h Wed Sep 01 12:23:57 2010 +0100
@@ -0,0 +1,116 @@
+/*
+* 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 SIM UI setting dialog
+*
+*/
+
+/*
+* %version: 16 %
+*/
+
+#ifndef _EAPSIMUIVIEW_H_
+#define _EAPSIMUIVIEW_H_
+
+// INCLUDES
+#include <AknDialog.h>
+#include <eikspane.h>
+#include <akntitle.h>
+#include <aknnavi.h>
+#include <aknsettingitemlist.h>
+#include <eiklbo.h>
+#include "EapSimUi.hrh"
+
+
+// FORWARD DECLARATIONS
+class CAknSettingStyleListBox;
+class CSettingsListBoxItemDrawer;
+class CEapSimSettingItemArray;
+class CEapSimUiConnection;
+class CEapSimUiSimData;
+class CEapSimUiDataConnection;
+
+
+// CLASS DECLARATION
+
+/**
+* Settings dialog class definition
+*/
+class CEapSimUiDialog : public CAknDialog,
+ public MEikListBoxObserver
+ {
+ public:
+ CEapSimUiDialog( CEapSimUiConnection* aConnection,
+ TInt& aButtonId );
+
+ ~CEapSimUiDialog();
+
+ /**
+ * 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 SaveSettings();
+ 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:
+ CEapSimUiConnection* iConnection;
+ CEapSimUiSimData* iUiData;
+ CEapSimUiDataConnection* iDataConnection;
+ CEapSimSettingItemArray* iSettingArray;
+ CAknSettingStyleListBox* iSettingListBox;
+ CSettingsListBoxItemDrawer* iSettingListItemDrawer;
+ CAknNavigationControlContainer* iNaviPane;
+ CAknNavigationDecorator* iNaviDecorator;
+ HBufC* iPreviousText;
+ TInt* iButtonId;
+
+ // Tells the status of UI construction. TRUE if UI construction is completed.
+ TBool iIsUIConstructionCompleted;
+ };
+
+
+#endif // _EAPSIMUIVIEW_H_
+
+// End of File