wlanutilities/wpswizard/inc/wpswizardstepthreenumber.h
author hgs
Thu, 24 Jun 2010 10:49:51 +0300
changeset 39 7b3e49e4608a
parent 19 10810c91db26
child 53 bdc64aa9b954
permissions -rw-r--r--
201025
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
19
10810c91db26 Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     1
/*
39
hgs
parents: 19
diff changeset
     2
 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents: 19
diff changeset
     3
 * All rights reserved.
hgs
parents: 19
diff changeset
     4
 * This component and the accompanying materials are made available
hgs
parents: 19
diff changeset
     5
 * under the terms of "Eclipse Public License v1.0"
hgs
parents: 19
diff changeset
     6
 * which accompanies this distribution, and is available
hgs
parents: 19
diff changeset
     7
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents: 19
diff changeset
     8
 *
hgs
parents: 19
diff changeset
     9
 * Initial Contributors:
hgs
parents: 19
diff changeset
    10
 * Nokia Corporation - initial contribution.
hgs
parents: 19
diff changeset
    11
 *
hgs
parents: 19
diff changeset
    12
 * Contributors:
hgs
parents: 19
diff changeset
    13
 *
hgs
parents: 19
diff changeset
    14
 * Description: Step 3 Number mode
hgs
parents: 19
diff changeset
    15
 *
hgs
parents: 19
diff changeset
    16
 */
19
10810c91db26 Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    17
10810c91db26 Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    18
#ifndef WPSWIZARDSTEPTHREENUMBER_H_
10810c91db26 Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    19
#define WPSWIZARDSTEPTHREENUMBER_H_
10810c91db26 Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    20
10810c91db26 Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    21
// System includes
10810c91db26 Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    22
#include <QObject>
39
hgs
parents: 19
diff changeset
    23
#include <HbDocumentLoader>
19
10810c91db26 Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    24
10810c91db26 Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    25
// User includes
10810c91db26 Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    26
#include "wpswizardpage.h"
10810c91db26 Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    27
10810c91db26 Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    28
// Forward declarations
10810c91db26 Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    29
class HbRadioButtonList;
10810c91db26 Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    30
class HbWidget;
10810c91db26 Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    31
class HbLabel;
10810c91db26 Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    32
class WpsWizardPrivate;
10810c91db26 Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    33
10810c91db26 Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    34
// External data types
10810c91db26 Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    35
// Constants
10810c91db26 Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    36
39
hgs
parents: 19
diff changeset
    37
/*!
hgs
parents: 19
diff changeset
    38
 * @addtogroup group_wps_wizard_plugin
hgs
parents: 19
diff changeset
    39
 * @{
hgs
parents: 19
diff changeset
    40
 */
hgs
parents: 19
diff changeset
    41
19
10810c91db26 Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    42
// Class declaration
10810c91db26 Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    43
class WpsPageStepThreeNumber : public WpsWizardPage
39
hgs
parents: 19
diff changeset
    44
{
hgs
parents: 19
diff changeset
    45
Q_OBJECT
hgs
parents: 19
diff changeset
    46
hgs
parents: 19
diff changeset
    47
public:
hgs
parents: 19
diff changeset
    48
    explicit WpsPageStepThreeNumber(WpsWizardPrivate* parent);
19
10810c91db26 Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    49
    ~WpsPageStepThreeNumber();
39
hgs
parents: 19
diff changeset
    50
hgs
parents: 19
diff changeset
    51
public:
19
10810c91db26 Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    52
    HbWidget* initializePage();
39
hgs
parents: 19
diff changeset
    53
19
10810c91db26 Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    54
    int nextId(bool &removeFromStack) const;
39
hgs
parents: 19
diff changeset
    55
hgs
parents: 19
diff changeset
    56
    int previousTriggered();
hgs
parents: 19
diff changeset
    57
19
10810c91db26 Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    58
    void cancelTriggered();
10810c91db26 Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    59
39
hgs
parents: 19
diff changeset
    60
    bool showPage();
hgs
parents: 19
diff changeset
    61
hgs
parents: 19
diff changeset
    62
private:
19
10810c91db26 Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    63
    int computeRandNumber();
39
hgs
parents: 19
diff changeset
    64
19
10810c91db26 Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    65
    int computeCheckSum(int aPin);
39
hgs
parents: 19
diff changeset
    66
hgs
parents: 19
diff changeset
    67
signals:
hgs
parents: 19
diff changeset
    68
hgs
parents: 19
diff changeset
    69
public slots:
hgs
parents: 19
diff changeset
    70
    void loadDocmlSection(Qt::Orientation orientation);
hgs
parents: 19
diff changeset
    71
hgs
parents: 19
diff changeset
    72
protected:
hgs
parents: 19
diff changeset
    73
hgs
parents: 19
diff changeset
    74
protected slots:
hgs
parents: 19
diff changeset
    75
hgs
parents: 19
diff changeset
    76
private:
19
10810c91db26 Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    77
    Q_DISABLE_COPY(WpsPageStepThreeNumber)
39
hgs
parents: 19
diff changeset
    78
hgs
parents: 19
diff changeset
    79
private slots:
19
10810c91db26 Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    80
39
hgs
parents: 19
diff changeset
    81
private: //data
hgs
parents: 19
diff changeset
    82
    //! Pointer to the widget object.
hgs
parents: 19
diff changeset
    83
    HbWidget *mWidget;
hgs
parents: 19
diff changeset
    84
    //! Label object used for displaying the heading.
hgs
parents: 19
diff changeset
    85
    HbLabel *mHeading;
hgs
parents: 19
diff changeset
    86
    //! Document loader object
hgs
parents: 19
diff changeset
    87
    HbDocumentLoader *mLoader;
hgs
parents: 19
diff changeset
    88
};
19
10810c91db26 Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    89
10810c91db26 Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    90
#endif /* WPSWIZARDSTEPTHREENUMBER_H_ */