wlanutilities/wlanwizard/inc/wlanwizardpage.h
changeset 39 7b3e49e4608a
parent 31 e8f4211554fb
equal deleted inserted replaced
36:682dd021f9be 39:7b3e49e4608a
    62    For other methods there is default implementation, which can be overwritten.
    62    For other methods there is default implementation, which can be overwritten.
    63  */
    63  */
    64 class WlanWizardPage
    64 class WlanWizardPage
    65 {
    65 {
    66 public:
    66 public:
       
    67     //! default value for previousTriggered(), step one step.
       
    68     static const int OneStepBackwards = 1;
       
    69     static const int SingleResult = 1;
       
    70     
    67     /*!
    71     /*!
    68        Defines common page ids for wizard and page id pools for wizard plugins.
    72        Defines common page ids for wizard and page id pools for wizard plugins.
    69        
    73        
    70        Remember to update trace.properties file upon changes.
    74        Remember to update trace.properties file upon changes.
    71      */
    75      */
   151        "next" toolbar button or WlanWizardHelper::nextPage() is called.
   155        "next" toolbar button or WlanWizardHelper::nextPage() is called.
   152        
   156        
   153        In case the wizard page does not want to make any movement forwards
   157        In case the wizard page does not want to make any movement forwards
   154        WlanWizardPage::PageNone MUST be returned.
   158        WlanWizardPage::PageNone MUST be returned.
   155        
   159        
       
   160        Default implementation: Page ID WlanWizardPage::PageNone is retuned and
       
   161        removeFromStack is false.
       
   162        
   156        @param [out] removeFromStack return value to the caller, if this page
   163        @param [out] removeFromStack return value to the caller, if this page
   157        needs to be removed from the stack, which means that this page cannot be
   164        needs to be removed from the stack, which means that this page cannot be
   158        accessible from the next page using "previous" toolbar button. 
   165        accessible from the next page using "previous" toolbar button. 
   159        
   166        
   160        @return page identifier of next wizard page
   167        @return page identifier of next wizard page
   161      */
   168      */
   162     virtual int nextId(bool &removeFromStack) const = 0;
   169     virtual int nextId(bool &removeFromStack) const
       
   170     {
       
   171         removeFromStack = false;
       
   172         return WlanWizardPage::PageNone;
       
   173     }
   163 
   174 
   164     /*!
   175     /*!
   165        This method is called when "previous" button has been pressed.
   176        This method is called when "previous" button has been pressed.
   166      
   177      
   167        Default implementation: one page backwards
   178        Default implementation: one page backwards
   183 signals:
   194 signals:
   184     
   195     
   185 public slots:
   196 public slots:
   186     
   197     
   187 protected:
   198 protected:
   188     //! default value for previousTriggered(), step one step.
       
   189     static const int OneStepBackwards = 1;
       
   190     
   199     
   191 protected slots:
   200 protected slots:
   192 
   201 
   193 private:
   202 private:
   194 
   203