wlanutilities/wpswizard/inc/wpswizard_p.h
changeset 38 2dc6da6fb431
parent 29 dbe86d96ce5b
child 41 a87deff717bc
child 45 d9ec2b8c6bad
equal deleted inserted replaced
29:dbe86d96ce5b 38:2dc6da6fb431
     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: WPS wizard private implementation
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef WPSWIZARD_P_H_
       
    19 #define WPSWIZARD_P_H_
       
    20 
       
    21 // System includes
       
    22 #include <qobject.h>
       
    23 #include <qhash.h>
       
    24 #include <qmap.h>
       
    25 #include <wlanmgmtcommon.h>
       
    26 #include <qtranslator.h>
       
    27 
       
    28 // User includes
       
    29 #include "wlanwizardhelpper.h"
       
    30 #include "wpswizard.h"
       
    31 
       
    32 // Forward declarations
       
    33 class HbStackedWidget;
       
    34 class HbWidget;
       
    35 class HbLabel;
       
    36 class HbView;
       
    37 class HbAction;
       
    38 class HbDocumentLoader;
       
    39 class WlanWizardHelpper;
       
    40 
       
    41 
       
    42 // External data types
       
    43 // Constants
       
    44 
       
    45 // Class declaration
       
    46 class WpsWizardPrivate : public QObject
       
    47     {
       
    48 
       
    49     friend class WpsWizard;
       
    50 
       
    51 public:
       
    52     WpsWizardPrivate(WpsWizard* wizard, WlanWizardHelpper *wizardHelpper, int bearerType, int referenceId);
       
    53     ~WpsWizardPrivate();
       
    54 public:
       
    55     /*!
       
    56      * Based on the input either disables or enables next button
       
    57      */
       
    58     void enableNextButton(bool enable);
       
    59     /*!
       
    60      * Moves automatically to the next page
       
    61      */
       
    62     void nextPage();
       
    63     /*!
       
    64      * Returns the SSID of the network 
       
    65      */
       
    66     QString getSsid();
       
    67     /*!
       
    68      * Stores the settings received from the AP
       
    69      */
       
    70     void storeSettings(int aIndex);
       
    71     /*!
       
    72      * Stores multiple settings received from the AP
       
    73      */
       
    74     void storeSettingsArray(
       
    75             QList<TWlanProtectedSetupCredentialAttribute>& aCredentials);
       
    76     QList<TWlanProtectedSetupCredentialAttribute> getSettingsArray();
       
    77     /*!
       
    78      * Stores the generated PIN
       
    79      */
       
    80     void setPin(int random);
       
    81     /*!
       
    82      * Returns the generated PIN
       
    83      */
       
    84     int getPin();
       
    85 
       
    86 private:
       
    87     Q_DISABLE_COPY(WpsWizardPrivate)
       
    88     /*!
       
    89      * Returns id of next page. updates settings EapWizard.
       
    90      */
       
    91     void createPages();
       
    92 
       
    93 private:
       
    94     WpsWizard *q_ptr;
       
    95     WlanWizardHelpper *mWizardHelpper;
       
    96     QTranslator *mTranslator;
       
    97     TWlanProtectedSetupCredentialAttribute mWpsAttr;
       
    98     QList<TWlanProtectedSetupCredentialAttribute> mIapList;
       
    99     int mBearerType;
       
   100     int mReferenceId;
       
   101     int mRandomNumber;
       
   102     };
       
   103 
       
   104 #endif /* WPSWIZARD_P_H_ */