wlanutilities/wlanwizard/src/wlanwizardpagegenericerror.cpp
changeset 50 d4198dcb9983
parent 46 2fbd1d709fe7
equal deleted inserted replaced
46:2fbd1d709fe7 50:d4198dcb9983
    26 #include "wlanwizard_p.h"
    26 #include "wlanwizard_p.h"
    27 #include "wlanwizardpagegenericerror.h"
    27 #include "wlanwizardpagegenericerror.h"
    28 #include "OstTraceDefinitions.h"
    28 #include "OstTraceDefinitions.h"
    29 #ifdef OST_TRACE_COMPILER_IN_USE
    29 #ifdef OST_TRACE_COMPILER_IN_USE
    30 #include "wlanwizardpageprocessingsettingsTraces.h"
    30 #include "wlanwizardpageprocessingsettingsTraces.h"
       
    31 #include "OstTraceDefinitions.h"
       
    32 #ifdef OST_TRACE_COMPILER_IN_USE
       
    33 #include "wlanwizardpagegenericerrorTraces.h"
       
    34 #endif
       
    35 
    31 #endif
    36 #endif
    32 
    37 
    33 /*!
    38 /*!
    34    \class WlanWizardPageGenericError
    39    \class WlanWizardPageGenericError
    35    \brief Implements generic error page for wizard.
    40    \brief Implements generic error page for wizard.
    56     WlanWizardPrivate* parent) :
    61     WlanWizardPrivate* parent) :
    57     WlanWizardPageInternal(parent), 
    62     WlanWizardPageInternal(parent), 
    58     mWidget(NULL), 
    63     mWidget(NULL), 
    59     mLabel(NULL)
    64     mLabel(NULL)
    60 {
    65 {
       
    66     OstTraceFunctionEntry0( WLANWIZARDPAGEGENERICERROR_WLANWIZARDPAGEGENERICERROR_ENTRY );
       
    67     OstTraceFunctionExit0( WLANWIZARDPAGEGENERICERROR_WLANWIZARDPAGEGENERICERROR_EXIT );
    61 }
    68 }
    62 
    69 
    63 /*!
    70 /*!
    64    Destructor.
    71    Destructor.
    65  */
    72  */
    66 WlanWizardPageGenericError::~WlanWizardPageGenericError()
    73 WlanWizardPageGenericError::~WlanWizardPageGenericError()
    67 {
    74 {
       
    75     OstTraceFunctionEntry0( DUP1_WLANWIZARDPAGEGENERICERROR_WLANWIZARDPAGEGENERICERROR_ENTRY );
    68     // signals are automatically disconnected
    76     // signals are automatically disconnected
       
    77     OstTraceFunctionExit0( DUP1_WLANWIZARDPAGEGENERICERROR_WLANWIZARDPAGEGENERICERROR_EXIT );
    69 }
    78 }
    70 
    79 
    71 /*!
    80 /*!
    72    See WlanWizardPage::initializePage()
    81    See WlanWizardPage::initializePage()
    73  */
    82  */
    74 HbWidget* WlanWizardPageGenericError::initializePage()
    83 HbWidget* WlanWizardPageGenericError::initializePage()
    75 {
    84 {
       
    85     OstTraceFunctionEntry0( WLANWIZARDPAGEGENERICERROR_INITIALIZEPAGE_ENTRY );
    76     // Create the visualization at the first time
    86     // Create the visualization at the first time
    77     if (!mWidget) {
    87     if (!mWidget) {
    78         HbDocumentLoader docLoader(mWizard->mainWindow());
    88         HbDocumentLoader docLoader(mWizard->mainWindow());
    79         
    89         
    80         bool ok;
    90         bool ok;
    91     // Get the error string from the wizards configurations
   101     // Get the error string from the wizards configurations
    92     mLabel->setPlainText(
   102     mLabel->setPlainText(
    93         mWizard->configuration(
   103         mWizard->configuration(
    94             WlanWizardHelper::ConfGenericErrorString).toString());
   104             WlanWizardHelper::ConfGenericErrorString).toString());
    95 
   105 
       
   106     OstTraceFunctionExit0( WLANWIZARDPAGEGENERICERROR_INITIALIZEPAGE_EXIT );
    96     return mWidget;
   107     return mWidget;
    97 }
   108 }
    98 
   109 
    99 /*!
   110 /*!
   100    See WlanWizardPage::showPage()
   111    See WlanWizardPage::showPage()
   101    
   112    
   102    @return false. Next button is dimmed when the page is displayed.
   113    @return false. Next button is dimmed when the page is displayed.
   103  */
   114  */
   104 bool WlanWizardPageGenericError::showPage()
   115 bool WlanWizardPageGenericError::showPage()
   105 {
   116 {
       
   117     OstTraceFunctionEntry0( WLANWIZARDPAGEGENERICERROR_SHOWPAGE_ENTRY );
       
   118     OstTraceFunctionExit0( WLANWIZARDPAGEGENERICERROR_SHOWPAGE_EXIT );
   106     return false;
   119     return false;
   107 }
   120 }
   108 
   121 
   109 /*!
   122 /*!
   110     See WlanWizardPage::previousTriggered()
   123     See WlanWizardPage::previousTriggered()
   111    
   124    
   112    @return steps backwards
   125    @return steps backwards
   113  */
   126  */
   114 int WlanWizardPageGenericError::previousTriggered()
   127 int WlanWizardPageGenericError::previousTriggered()
   115 {
   128 {
       
   129     OstTraceFunctionEntry0( WLANWIZARDPAGEGENERICERROR_PREVIOUSTRIGGERED_ENTRY );
       
   130     OstTraceFunctionExit0( WLANWIZARDPAGEGENERICERROR_PREVIOUSTRIGGERED_EXIT );
   116     return mWizard->configuration(
   131     return mWizard->configuration(
   117         WlanWizardHelper::ConfGenericErrorPageStepsBackwards).toInt();
   132         WlanWizardHelper::ConfGenericErrorPageStepsBackwards).toInt();
   118 }
   133 }