wlanutilities/wpswizard/src/wpswizard.cpp
changeset 19 10810c91db26
child 39 7b3e49e4608a
child 47 b3d8f88532b7
equal deleted inserted replaced
3:ff3b37722600 19:10810c91db26
       
     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 the License "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  *   WPS Wizard: API implementation.
       
    16  *
       
    17  */
       
    18 
       
    19 
       
    20 // System includes
       
    21 #include <hbdocumentloader.h>
       
    22 #include <qgraphicswidget>
       
    23 #include <hbmainwindow.h>
       
    24 #include <hbview.h>
       
    25 #include <hbstackedwidget.h>
       
    26 #include <hblabel.h>
       
    27 #include <hbaction.h>
       
    28 #include <qapplication.h>
       
    29 
       
    30 // Trace includes
       
    31 #include "OstTraceDefinitions.h"
       
    32 #ifdef OST_TRACE_COMPILER_IN_USE
       
    33 #include "wpswizardTraces.h"
       
    34 #endif
       
    35 
       
    36 // User includes
       
    37 // WLAN Wizard
       
    38 #include "wlanwizardhelpper.h"
       
    39 
       
    40 // Wizard 
       
    41 #include "wpswizard.h"
       
    42 #include "wpswizard_p.h"
       
    43 
       
    44 // Wizard Pages
       
    45 #include "wpswizardsteptwo.h"
       
    46 #include "wpswizardstepthreebutton.h"
       
    47 #include "wpswizardstepthreenumber.h"
       
    48 #include "wpswizardstepfour.h"
       
    49 #include "wpswizardstepfive.h"
       
    50 
       
    51 
       
    52 class WlanWizardHelpper;
       
    53 
       
    54 /*!
       
    55 * Creates the WpsWizard object
       
    56 * 
       
    57 * \param WlanWizardHelpper* Helper class to from the framework
       
    58 * \param BearerType Indicates the bearer type Eg. Wlan
       
    59 * 
       
    60 */
       
    61 
       
    62 WpsWizard::WpsWizard(WlanWizardHelpper *wizardHelpper, BearerType bearerType,
       
    63         int referenceId) :
       
    64     d_ptr(new WpsWizardPrivate(this, wizardHelpper, bearerType, referenceId))
       
    65     {
       
    66     OstTraceFunctionEntry1(WPSWIZARD_WPSWIZARD_ENTRY, this)
       
    67     OstTraceFunctionExit1(WPSWIZARD_WPSWIZARD_EXIT, this)
       
    68     }
       
    69 
       
    70 /*!
       
    71 * Destructor
       
    72 * 
       
    73 */
       
    74 
       
    75 WpsWizard::~WpsWizard()
       
    76     {
       
    77     OstTraceFunctionEntry1(WPSWIZARD_WPSWIZARD_ENTRY, this);
       
    78     delete d_ptr;
       
    79     OstTraceFunctionExit1(WPSWIZARD_WPSWIZARD_EXIT, this);
       
    80     }
       
    81 
       
    82 /*!
       
    83 * StoreSettings: Stores the settings in the commsdat database
       
    84 * 
       
    85 */
       
    86 
       
    87 void WpsWizard::storeSettings()
       
    88     {
       
    89     OstTraceFunctionEntry1(WPSWIZARD_STORESETTINGS_ENTRY, this);
       
    90     OstTraceFunctionExit1(WPSWIZARD_STORESETTINGS_EXIT, this);
       
    91     }
       
    92 
       
    93 /*!
       
    94 * Creates the summary page, valid only for EAP usecase
       
    95 * 
       
    96 * \param WlanWizardPlugin::Summary indicates the type of summary item
       
    97 * \param QString &item item name
       
    98 * \param QString &value item value
       
    99 * 
       
   100 * \return the status of the summary operation
       
   101 */
       
   102 
       
   103 bool WpsWizard::summary(WlanWizardPlugin::Summary sum, QString &item,
       
   104         QString &value)
       
   105     {
       
   106     OstTraceFunctionEntry1(WPSWIZARD_SUMMARY_ENTRY, this);
       
   107     OstTraceFunctionExit1(WPSWIZARD_SUMMARY_EXIT, this);
       
   108     return true;
       
   109     }