| 
    libpappsomspp
    
   Library for mass spectrometry 
   | 
 
#include <uimonitortext.h>
  
Public Member Functions | |
| UiMonitorText (QTextStream &output_stream) | |
| ~UiMonitorText () | |
| virtual bool | shouldIstop () override | 
| should the procces be stopped ? If true, then cancel process Use this function at strategic point of your process in order to interrupt it cleanly Implementation must take care of thread resistance if implemented   | |
| virtual void | count () override | 
| count steps report when a step is computed in an algorithm   | |
| virtual void | setTitle (const QString &title) override | 
| current kind of process running   | |
| virtual void | setStatus (const QString &status) override | 
| current status of the process   | |
| virtual void | appendText (const QString &text) override | 
| append a text to a long report   | |
| virtual void | setTotalSteps (std::size_t total_number_of_steps) | 
| use it if the number of steps is known in an algorithm the total number of steps is usefull to report to the user a progress message in percents or with a progress bar   | |
Protected Attributes | |
| QTextStream & | m_outputStream | 
| std::size_t | m_count = 0 | 
  Protected Attributes inherited from pappso::UiMonitorInterface | |
| std::size_t | m_totalSteps = 0 | 
Definition at line 41 of file uimonitortext.h.
| UiMonitorText::UiMonitorText | ( | QTextStream & | output_stream | ) | 
Default constructor
Definition at line 35 of file uimonitortext.cpp.
References m_outputStream.
Referenced by pappso::UiMonitorTextPercent::UiMonitorTextPercent().
| UiMonitorText::~UiMonitorText | ( | ) | 
      
  | 
  overridevirtual | 
append a text to a long report
| text | string to append in a long report | 
Implements pappso::UiMonitorInterface.
Definition at line 80 of file uimonitortext.cpp.
References m_outputStream.
      
  | 
  overridevirtual | 
count steps report when a step is computed in an algorithm
Implements pappso::UiMonitorInterface.
Reimplemented in pappso::UiMonitorTextPercent.
Definition at line 65 of file uimonitortext.cpp.
References m_count, m_outputStream, and pappso::UiMonitorInterface::m_totalSteps.
      
  | 
  overridevirtual | 
current status of the process
| status | status message | 
Implements pappso::UiMonitorInterface.
Definition at line 58 of file uimonitortext.cpp.
References m_outputStream.
      
  | 
  overridevirtual | 
current kind of process running
| title | process title | 
Implements pappso::UiMonitorInterface.
Definition at line 51 of file uimonitortext.cpp.
References m_outputStream.
      
  | 
  virtual | 
use it if the number of steps is known in an algorithm the total number of steps is usefull to report to the user a progress message in percents or with a progress bar
| total_number_of_steps | the total number of steps | 
Reimplemented from pappso::UiMonitorInterface.
Reimplemented in pappso::UiMonitorTextPercent.
Definition at line 87 of file uimonitortext.cpp.
References m_count, and pappso::UiMonitorInterface::setTotalSteps().
Referenced by pappso::UiMonitorTextPercent::setTotalSteps().
      
  | 
  overridevirtual | 
should the procces be stopped ? If true, then cancel process Use this function at strategic point of your process in order to interrupt it cleanly Implementation must take care of thread resistance if implemented
Implements pappso::UiMonitorInterface.
Definition at line 44 of file uimonitortext.cpp.
      
  | 
  protected | 
Definition at line 81 of file uimonitortext.h.
Referenced by count(), pappso::UiMonitorTextPercent::count(), setTotalSteps(), and pappso::UiMonitorTextPercent::setTotalSteps().
      
  | 
  protected | 
Definition at line 80 of file uimonitortext.h.
Referenced by UiMonitorText(), appendText(), count(), pappso::UiMonitorTextPercent::count(), setStatus(), setTitle(), and pappso::UiMonitorTextPercent::setTotalSteps().