wlanutilities/eapwizard/src/eapwizardpage.cpp
changeset 50 d4198dcb9983
parent 46 2fbd1d709fe7
equal deleted inserted replaced
46:2fbd1d709fe7 50:d4198dcb9983
    22 #include <HbMainWindow>
    22 #include <HbMainWindow>
    23 
    23 
    24 // User includes
    24 // User includes
    25 #include "eapwizardpage.h"
    25 #include "eapwizardpage.h"
    26 #include "eapwizard_p.h"
    26 #include "eapwizard_p.h"
       
    27 #include "OstTraceDefinitions.h"
       
    28 #ifdef OST_TRACE_COMPILER_IN_USE
       
    29 #include "eapwizardpageTraces.h"
       
    30 #endif
       
    31 
    27 
    32 
    28 /*!
    33 /*!
    29    \class EapWizardPage
    34    \class EapWizardPage
    30    \brief Defines the interface for EAP specific wizard pages.
    35    \brief Defines the interface for EAP specific wizard pages.
    31  */
    36  */
    49 // ======== MEMBER FUNCTIONS ========
    54 // ======== MEMBER FUNCTIONS ========
    50 
    55 
    51 
    56 
    52 /*!
    57 /*!
    53    Constructor.
    58    Constructor.
    54    
    59 
    55    @param [in] parent Pointer to EAP Wizard private implementation.
    60    @param [in] parent Pointer to EAP Wizard private implementation.
    56  */
    61  */
    57 EapWizardPage::EapWizardPage(EapWizardPrivate* parent) :
    62 EapWizardPage::EapWizardPage(EapWizardPrivate* parent) :
    58     QObject(parent), 
    63     QObject(parent), 
    59     mWizard(parent)
    64     mWizard(parent)
    60 {
    65 {
       
    66     OstTraceFunctionEntry0( EAPWIZARDPAGE_EAPWIZARDPAGE_ENTRY );
       
    67     OstTraceFunctionExit0( EAPWIZARDPAGE_EAPWIZARDPAGE_EXIT );
    61 }
    68 }
    62 
    69 
    63 /*!
    70 /*!
    64    Destructor.
    71    Destructor.
    65  */
    72  */
    66 EapWizardPage::~EapWizardPage()
    73 EapWizardPage::~EapWizardPage()
    67 {
    74 {
       
    75     OstTraceFunctionEntry0( DUP1_EAPWIZARDPAGE_EAPWIZARDPAGE_ENTRY );
    68     mWizard = NULL;
    76     mWizard = NULL;
       
    77     OstTraceFunctionExit0( DUP1_EAPWIZARDPAGE_EAPWIZARDPAGE_EXIT );
    69 }
    78 }
    70 
    79 
    71 /*!
    80 /*!
    72    See WlanWizardPage. 
    81    See WlanWizardPage. 
    73  */
    82  */
    74 int EapWizardPage::nextId(bool &removeFromStack) const
    83 int EapWizardPage::nextId(bool &removeFromStack) const
    75 {
    84 {
       
    85     OstTraceFunctionEntry0( EAPWIZARDPAGE_NEXTID_ENTRY );
    76     removeFromStack = false;
    86     removeFromStack = false;
       
    87     OstTraceFunctionExit0( EAPWIZARDPAGE_NEXTID_EXIT );
    77     return nextId();
    88     return nextId();
    78 }
    89 }
    79 
    90 
    80 /*!
    91 /*!
    81    Loads requested section from given docml file.
    92    Loads requested section from given docml file.
    82    
    93 
    83    @param [in] loader Document loader for docml
    94    @param [in] loader Document loader for docml
    84    @param [in] orientation Orientation to be loaded
    95    @param [in] orientation Orientation to be loaded
    85    @param [in] filename the name of docml filename
    96    @param [in] filename the name of docml filename
    86    @param [in] portraitSection the name of section to be loaded in portrait mode
    97    @param [in] portraitSection the name of section to be loaded in portrait mode
    87    @param [in] landscapeSection the name of section to be loaded in landscape mode
    98    @param [in] landscapeSection the name of section to be loaded in landscape mode
    91     Qt::Orientation orientation,
   102     Qt::Orientation orientation,
    92     const QString &filename,
   103     const QString &filename,
    93     const QString &portraitSection,
   104     const QString &portraitSection,
    94     const QString &landscapeSection) const
   105     const QString &landscapeSection) const
    95 {
   106 {
       
   107     OstTraceFunctionEntry0( EAPWIZARDPAGE_LOADDOCMLSECTION_ENTRY );
    96     bool ok;
   108     bool ok;
    97     
   109 
    98     // Then load the orientation specific section
   110     // Then load the orientation specific section
    99     if (orientation == Qt::Horizontal) {
   111     if (orientation == Qt::Horizontal) {
   100         loader->load(filename, landscapeSection, &ok);
   112         loader->load(filename, landscapeSection, &ok);
   101         Q_ASSERT(ok);
   113         Q_ASSERT(ok);
   102     } else {
   114     } else {
   103         Q_ASSERT(orientation == Qt::Vertical);
   115         Q_ASSERT(orientation == Qt::Vertical);
   104         loader->load(filename, portraitSection, &ok);
   116         loader->load(filename, portraitSection, &ok);
   105         Q_ASSERT(ok);
   117         Q_ASSERT(ok);
   106     }
   118     }
       
   119     OstTraceFunctionExit0( EAPWIZARDPAGE_LOADDOCMLSECTION_EXIT );
   107 }
   120 }