wlanutilities/wpswizard/inc/wpswizardstepthreenumber.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 04 Oct 2010 02:07:04 +0300
changeset 62 b47b808de481
parent 56 de27cc8389dd
permissions -rw-r--r--
Revision: 201037 Kit: 201039

/*
 * 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: Step 3 Number mode
 *
 */

#ifndef WPSWIZARDSTEPTHREENUMBER_H_
#define WPSWIZARDSTEPTHREENUMBER_H_

// System includes
#include <QObject>
#include <HbDocumentLoader>

// User includes
#include "wpswizardpage.h"

// Forward declarations
class HbRadioButtonList;
class HbWidget;
class HbLabel;
class WpsWizardPrivate;

// External data types
// Constants

/*!
 * @addtogroup group_wps_wizard_plugin
 * @{
 */

// Class declaration
class WpsPageStepThreeNumber : public WpsWizardPage
{
Q_OBJECT

public:
    explicit WpsPageStepThreeNumber(WpsWizardPrivate* parent);
    ~WpsPageStepThreeNumber();

public:
    HbWidget* initializePage();

    int nextId(bool &removeFromStack) const;

    int previousTriggered();

    bool showPage();

private:
    int computeRandNumber();

    int computeCheckSum(int aPin);

signals:

public slots:

protected:

protected slots:

private:
    Q_DISABLE_COPY(WpsPageStepThreeNumber)

private slots:

private: //data
    //! Pointer to the widget object.
    HbWidget *mWidget;
    //! Label object used for displaying the heading.
    HbLabel *mHeading;
    //! Document loader object
    HbDocumentLoader *mLoader;
};

#endif /* WPSWIZARDSTEPTHREENUMBER_H_ */