wlanutilities/wpswizard/inc/wpswizardsteptwo.h
changeset 19 10810c91db26
child 39 7b3e49e4608a
child 47 b3d8f88532b7
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/wlanutilities/wpswizard/inc/wpswizardsteptwo.h	Fri Apr 16 16:07:56 2010 +0300
@@ -0,0 +1,90 @@
+/*
+* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "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: WPS wizard page 2
+*
+*/
+#ifndef WPSWIZARDSTEPTWO_H_
+#define WPSWIZARDSTEPTWO_H_
+
+// System includes
+#include <QObject>
+
+// User includes
+#include "wpswizardpage.h"
+
+// Forward declarations
+class HbRadioButtonList;
+class HbWidget;
+class HbLabel;
+class WpsWizardPrivate;
+
+
+// External data types
+// Constants
+
+
+// Class declaration
+class WpsPageStepTwo : public WpsWizardPage
+    {
+Q_OBJECT
+public:
+    WpsPageStepTwo(WpsWizardPrivate* parent);
+    ~WpsPageStepTwo();
+
+public:
+    /*!
+     * Creates a visualization of the page.
+     */
+    HbWidget* initializePage();
+    /*!
+     * Returns id of next page. updates settings EapWizard.
+     */
+    int nextId(bool &removeFromStack) const;
+    /*!
+     * Returns how many steps should be gone backwards. 
+     */
+    int stepsBackwards();
+    /*!
+     * This method is called when Previous button has been pressed.
+     */
+    void previousTriggered();
+    /*!
+     * This method is called when Cancel button has been pressed.
+     */
+    void cancelTriggered();
+    /*!
+     * This method is called when a visualization is displayed to detect
+     * whether next button should be enabled or not.
+     */
+    bool validate() const;
+
+public slots:
+    /*!
+     * To receive the signal when an item is selected in the list view
+     */
+    void itemSelected(int index);
+
+private:
+    Q_DISABLE_COPY(WpsPageStepTwo)
+    
+    HbWidget *mWidget;
+    HbRadioButtonList *mRadio;
+    HbLabel *mTitle;
+    HbLabel *mHeading;
+    bool mValid;
+    int mItemSelected;
+    };
+
+
+#endif /* WPSWIZARDSTEPTWO_H_ */