31
|
1 |
/*
|
|
2 |
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
* WLAN Wizard Page: Scan processing
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef WLANWIZARDPAGESCANNING_H
|
|
19 |
#define WLANWIZARDPAGESCANNING_H
|
|
20 |
|
|
21 |
// System includes
|
39
|
22 |
#include <QSharedPointer>
|
|
23 |
#include <QList>
|
|
24 |
#include <QHash>
|
31
|
25 |
|
|
26 |
// User includes
|
|
27 |
#include "wlanwizardpageinternal.h"
|
|
28 |
#include "wlanwizard.h"
|
39
|
29 |
#include "wlanwizardscanlist.h"
|
31
|
30 |
|
|
31 |
// Forward declarations
|
|
32 |
class WlanWizardPrivate;
|
|
33 |
class HbLabel;
|
|
34 |
class HbProgressBar;
|
|
35 |
class HbDocumentLoader;
|
39
|
36 |
class WlanQtUtilsAp;
|
31
|
37 |
|
|
38 |
// External data types
|
|
39 |
|
|
40 |
// Constants
|
|
41 |
|
|
42 |
/*!
|
|
43 |
* @addtogroup group_wlan_wizard
|
|
44 |
* @{
|
|
45 |
*/
|
|
46 |
|
|
47 |
class WlanWizardPageScanning: public WlanWizardPageInternal
|
|
48 |
{
|
|
49 |
Q_OBJECT
|
|
50 |
|
|
51 |
public:
|
39
|
52 |
explicit WlanWizardPageScanning(WlanWizardPrivate* parent);
|
|
53 |
virtual ~WlanWizardPageScanning();
|
31
|
54 |
|
39
|
55 |
public:
|
|
56 |
HbWidget* initializePage();
|
|
57 |
int nextId(bool &removeFromStack) const;
|
|
58 |
int previousTriggered();
|
|
59 |
bool showPage();
|
|
60 |
bool requiresStartOperation();
|
31
|
61 |
void startOperation();
|
39
|
62 |
|
|
63 |
signals:
|
31
|
64 |
|
|
65 |
public slots:
|
39
|
66 |
void loadDocmlSection(Qt::Orientation orientation);
|
|
67 |
void wlanScanResultPreCheck(int scanStatus);
|
|
68 |
void wlanScanDirectReady(int scanStatus);
|
31
|
69 |
|
39
|
70 |
protected:
|
31
|
71 |
|
39
|
72 |
protected slots:
|
31
|
73 |
|
|
74 |
private:
|
39
|
75 |
Q_DISABLE_COPY(WlanWizardPageScanning)
|
31
|
76 |
void wlanScanApReady();
|
39
|
77 |
void getSsidMatchList(
|
|
78 |
QString ssid,
|
|
79 |
const QList<QSharedPointer<WlanQtUtilsAp> > &matchList);
|
|
80 |
void getFinalScanResults(
|
|
81 |
const QList<QSharedPointer<WlanQtUtilsAp> > &directScanResults,
|
|
82 |
const QList<QSharedPointer<WlanQtUtilsAp> > &openScanResults,
|
|
83 |
QList<WlanScanResult> &finalResults);
|
|
84 |
int processMultipleScanResults(const QList<WlanScanResult> &finalResults);
|
|
85 |
void selectNextPageActions(const QList<WlanScanResult> &finalResults);
|
|
86 |
|
|
87 |
private slots:
|
31
|
88 |
|
39
|
89 |
private:
|
31
|
90 |
/*!
|
|
91 |
* Pointer to the view.
|
|
92 |
*/
|
|
93 |
HbWidget *mWidget;
|
|
94 |
|
|
95 |
/*!
|
|
96 |
* Pointer to the label widget.
|
|
97 |
*/
|
|
98 |
HbLabel *mLabel;
|
|
99 |
|
|
100 |
/*!
|
|
101 |
* Pointer to document loader object.
|
|
102 |
*/
|
|
103 |
HbDocumentLoader *mLoader;
|
|
104 |
|
|
105 |
/*!
|
|
106 |
* The next page identifier.
|
|
107 |
*/
|
|
108 |
int mNextPageId;
|
|
109 |
|
|
110 |
/*!
|
39
|
111 |
* Indicator, whether AP scan results are available or not.
|
31
|
112 |
*/
|
|
113 |
bool mScanResultsAvailable;
|
39
|
114 |
|
|
115 |
/*!
|
|
116 |
* Indicator of the current scan status.
|
|
117 |
*/
|
|
118 |
int mScanStatus;
|
|
119 |
|
|
120 |
/*!
|
|
121 |
* list containing the results of a normal scan of open networks.
|
|
122 |
*/
|
|
123 |
QList<QSharedPointer<WlanQtUtilsAp> > mWlanApList;
|
31
|
124 |
};
|
|
125 |
|
|
126 |
/*! @} */
|
|
127 |
|
|
128 |
#endif
|