wlanutilities/wpswizard/src/wpswizardpage.cpp
branchGCC_SURGE
changeset 47 b3d8f88532b7
parent 19 10810c91db26
parent 46 2fbd1d709fe7
equal deleted inserted replaced
34:30a5f517c615 47:b3d8f88532b7
     1 /*
     1 /*
     2  * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
     2  * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3  * All rights reserved.
     3  * All rights reserved.
     4  * This component and the accompanying materials are made available
     4  * This component and the accompanying materials are made available
     5  * under the terms of the License "Eclipse Public License v1.0"
     5  * under the terms of "Eclipse Public License v1.0"
     6  * which accompanies this distribution, and is available
     6  * which accompanies this distribution, and is available
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8  *
     8  *
     9  * Initial Contributors:
     9  * Initial Contributors:
    10  * Nokia Corporation - initial contribution.
    10  * Nokia Corporation - initial contribution.
    15  *   WPS Wizard: API for wizard pages.
    15  *   WPS Wizard: API for wizard pages.
    16  *
    16  *
    17  */
    17  */
    18 
    18 
    19 // System includes
    19 // System includes
    20 #include <hbwidget.h>
    20 #include <HbWidget>
    21 
    21 
    22 // User includes
    22 // User includes
       
    23 #include "wpswizard_p.h"
    23 #include "wpswizardpage.h"
    24 #include "wpswizardpage.h"
    24 
    25 
    25 // Trace includes
    26 // Trace includes
    26 #include "OstTraceDefinitions.h"
    27 #include "OstTraceDefinitions.h"
    27 #ifdef OST_TRACE_COMPILER_IN_USE
    28 #ifdef OST_TRACE_COMPILER_IN_USE
    28 #include "wpswizardpageTraces.h"
    29 #include "wpswizardpageTraces.h"
    29 #endif
    30 #endif
    30 
    31 
    31 #define WPS_DEFAULT_STEPBACK 1
    32 // External function prototypes
    32 
    33 
    33  /*!
    34 // Local constants
    34  * Constructor for the WPS page baseclass
    35 
    35  * 
    36 /*!
    36  * \param WpsWizardPrivate* pointer to the implementation class
    37    \class WpsWizardPage
       
    38    \brief Implementation of the basic wps wizard page functionality 
    37  */
    39  */
    38  
    40 
       
    41 // ======== LOCAL FUNCTIONS ========
       
    42 
       
    43 
       
    44 // ======== MEMBER FUNCTIONS ========
       
    45 
       
    46 /*!
       
    47    Constructor for the WPS page baseclass
       
    48    
       
    49    @param [in] parent WpsWizardPrivate* pointer to the implementation class
       
    50  */
       
    51 
    39 WpsWizardPage::WpsWizardPage(WpsWizardPrivate* parent) :
    52 WpsWizardPage::WpsWizardPage(WpsWizardPrivate* parent) :
       
    53     QObject(parent),
    40     mWizard(parent)
    54     mWizard(parent)
    41 {
    55 {
    42 OstTraceFunctionEntry1(WPSWIZARDPAGE_WPSWIZARDPAGE_ENTRY, this)
    56     OstTraceFunctionEntry1(WPSWIZARDPAGE_WPSWIZARDPAGE_ENTRY, this); 
    43 OstTraceFunctionExit1(WPSWIZARDPAGE_WPSWIZARDPAGE_EXIT, this)
    57     OstTraceFunctionExit1(WPSWIZARDPAGE_WPSWIZARDPAGE_EXIT, this);
    44 }
    58 }
    45 
    59 
    46 /*!
    60 /*!
    47 * Destructor
    61    Destructor
    48 */
    62  */
    49 WpsWizardPage::~WpsWizardPage()
    63 WpsWizardPage::~WpsWizardPage()
    50 {
    64 {
    51     OstTraceFunctionEntry1(WPSWIZARDPAGE_WPSWIZARDPAGE_ENTRY, this)
    65     OstTraceFunctionEntry1(WPSWIZARDPAGE_WPSWIZARDPAGE_DESTRUCTOR_ENTRY, this);
    52     mWizard = NULL;
    66     mWizard = NULL;
    53 OstTraceFunctionExit1(WPSWIZARDPAGE_WPSWIZARDPAGE_EXIT, this)
    67     OstTraceFunctionExit1(WPSWIZARDPAGE_WPSWIZARDPAGE_DESTRUCTOR_EXIT, this);
    54 }
    68 }
    55 
    69 
    56 /*!
       
    57 * Determines how many pages to step back.
       
    58 * \return number of pages to step backwards
       
    59 */
       
    60 int WpsWizardPage::stepsBackwards()
       
    61 {
       
    62     OstTraceFunctionEntry1(WPSWIZARDPAGE_STEPBACKWARDS_ENTRY, this)
       
    63     OstTraceFunctionExit1(WPSWIZARDPAGE_STEPBACKWARDS_EXIT, this)
       
    64     return WPS_DEFAULT_STEPBACK;
       
    65 }
       
    66 
       
    67 /*!
       
    68 * Validates the contents of the page
       
    69 */
       
    70 bool WpsWizardPage::validate() const
       
    71 {
       
    72     OstTraceFunctionEntry1(WPSWIZARDPAGE_VALIDATE_ENTRY, this)
       
    73     OstTraceFunctionExit1(WPSWIZARDPAGE_VALIDATE_EXIT, this)
       
    74     return true;
       
    75 }