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

Implements storage::OutputProcessor.

References cur, and first.

virtual void storage::ProgressBar::finish (  )  [inline, virtual]

Implements storage::OutputProcessor.

References max, and setCurValue().

virtual void storage::ProgressBar::process ( const string &  txt,
bool  stderr 
) [inline, virtual]

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

unsigned storage::ProgressBar::getMaxValue (  )  const [inline]

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

unsigned storage::ProgressBar::getCurValue (  )  const [inline]

References cur.


Member Data Documentation

const string storage::ProgressBar::id [protected]

Referenced by setCurValue().

Referenced by setCurValue().

bool storage::ProgressBar::first [protected]

unsigned long storage::ProgressBar::max [private]

unsigned long storage::ProgressBar::cur [private]

Referenced by getCurValue(), reset(), and setCurValue().


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

Generated on Mon Feb 6 10:42:58 2012 for yast2-storage by  doxygen 1.5.6