|
yast2-storage
|
#include <OutputProcessor.h>
Public Member Functions | |
| ProgressBar (const string &id, CallbackProgressBar callback) | |
| virtual | ~ProgressBar () |
| virtual void | reset () |
| virtual void | finish () |
| virtual void | process (const string &txt, bool stderr) |
| void | setMaxValue (unsigned val) |
| unsigned | getMaxValue () const |
| void | setCurValue (unsigned val) |
| unsigned | getCurValue () const |
Protected Attributes | |
| const string | id |
| const CallbackProgressBar | callback |
| bool | first |
Private Attributes | |
| unsigned long | max |
| unsigned long | cur |
| storage::ProgressBar::ProgressBar | ( | const string & | id, |
| CallbackProgressBar | callback | ||
| ) | [inline] |
| virtual storage::ProgressBar::~ProgressBar | ( | ) | [inline, virtual] |
| virtual void storage::ProgressBar::finish | ( | ) | [inline, virtual] |
Implements storage::OutputProcessor.
References max, and setCurValue().
| unsigned storage::ProgressBar::getCurValue | ( | ) | const [inline] |
References cur.
| unsigned storage::ProgressBar::getMaxValue | ( | ) | const [inline] |
References max.
| virtual void storage::ProgressBar::process | ( | const string & | txt, |
| bool | stderr | ||
| ) | [inline, virtual] |
Implements storage::OutputProcessor.
Reimplemented in storage::Mke2fsProgressBar, storage::ReiserProgressBar, and storage::DasdfmtProgressBar.
| virtual void storage::ProgressBar::reset | ( | ) | [inline, virtual] |
Implements storage::OutputProcessor.
| void storage::ProgressBar::setMaxValue | ( | unsigned | val | ) | [inline] |
const CallbackProgressBar storage::ProgressBar::callback [protected] |
unsigned long storage::ProgressBar::cur [private] |
Referenced by getCurValue(), and reset().
bool storage::ProgressBar::first [protected] |
Referenced by reset().
const string storage::ProgressBar::id [protected] |
unsigned long storage::ProgressBar::max [private] |
Referenced by finish(), getMaxValue(), and setMaxValue().
1.7.3