wlanutilities/wlanwizard/inc/wlanwizardpagescanning.h
branchRCL_3
changeset 55 f28ada11abbf
parent 54 63be7eb3fc78
child 59 34911529ee3c
equal deleted inserted replaced
54:63be7eb3fc78 55:f28ada11abbf
     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
       
    22 #include <QSharedPointer>
       
    23 #include <QList>
       
    24 #include <QHash>
       
    25 
       
    26 // User includes
       
    27 #include "wlanwizardpageinternal.h"
       
    28 #include "wlanwizard.h"
       
    29 #include "wlanwizardscanlist.h"
       
    30 
       
    31 // Forward declarations
       
    32 class WlanWizardPrivate;
       
    33 class HbLabel;
       
    34 class HbProgressBar;
       
    35 class HbDocumentLoader;
       
    36 class WlanQtUtilsAp;
       
    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:
       
    52     explicit WlanWizardPageScanning(WlanWizardPrivate* parent);
       
    53     virtual ~WlanWizardPageScanning();
       
    54     
       
    55 public:
       
    56     HbWidget* initializePage();
       
    57     int nextId(bool &removeFromStack) const;
       
    58     int previousTriggered();
       
    59     bool showPage();
       
    60     bool requiresStartOperation();
       
    61     void startOperation();
       
    62 
       
    63 signals:
       
    64     
       
    65 public slots:
       
    66     void loadDocmlSection(Qt::Orientation orientation);
       
    67     void wlanScanResultPreCheck(int scanStatus);
       
    68     void wlanScanDirectReady(int scanStatus);
       
    69     
       
    70 protected:
       
    71     
       
    72 protected slots:
       
    73     
       
    74 private:
       
    75     Q_DISABLE_COPY(WlanWizardPageScanning)
       
    76     void wlanScanApReady();
       
    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:
       
    88 
       
    89 private:
       
    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     /*!
       
   111      * Indicator, whether AP scan results are available or not.
       
   112      */
       
   113     bool mScanResultsAvailable;
       
   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;
       
   124 };
       
   125 
       
   126 /*! @} */
       
   127 
       
   128 #endif