yast2-storage
Public Member Functions | Protected Attributes | Private Attributes

storage::ProgressBar Class Reference

#include <OutputProcessor.h>

Inheritance diagram for storage::ProgressBar:
storage::OutputProcessor storage::DasdfmtProgressBar storage::Mke2fsProgressBar storage::ReiserProgressBar

List of all members.

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

Constructor & Destructor Documentation

storage::ProgressBar::ProgressBar ( const string &  id,
CallbackProgressBar  callback 
) [inline]
virtual storage::ProgressBar::~ProgressBar ( ) [inline, virtual]

Member Function Documentation

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]
virtual void storage::ProgressBar::reset ( ) [inline, virtual]

Implements storage::OutputProcessor.

References cur, and first.

void storage::ProgressBar::setCurValue ( unsigned  val)

References y2mil.

Referenced by finish().

void storage::ProgressBar::setMaxValue ( unsigned  val) [inline]

Member Data Documentation

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().


The documentation for this class was generated from the following files: