X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/1a7c9eba99a9521a7722be37d6bafe5fa4936630..ddc1d8d08eaff6c71c6062654ddd9d8981799ae9:/apt-pkg/contrib/progress.h diff --git a/apt-pkg/contrib/progress.h b/apt-pkg/contrib/progress.h index e3530cdcb..f09545156 100644 --- a/apt-pkg/contrib/progress.h +++ b/apt-pkg/contrib/progress.h @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: progress.h,v 1.2 1998/08/23 03:52:23 jgg Exp $ +// $Id: progress.h,v 1.5 1999/01/18 06:20:08 jgg Exp $ /* ###################################################################### OpProgress - Operation Progress @@ -18,7 +18,6 @@ ##################################################################### */ /*}}}*/ -// Header section: pkglib #ifndef PKGLIB_PROGRESS_H #define PKGLIB_PROGRESS_H @@ -29,6 +28,7 @@ #include #include +class Configuration; class OpProgress { unsigned long Current; @@ -56,6 +56,7 @@ class OpProgress public: void Progress(unsigned long Current); + void SubProgress(unsigned long SubTotal); void SubProgress(unsigned long SubTotal,string Op); void OverallProgress(unsigned long Current,unsigned long Total, unsigned long Size,string Op); @@ -71,6 +72,7 @@ class OpTextProgress : public OpProgress string OldOp; bool NoUpdate; + bool NoDisplay; unsigned long LastLen; virtual void Update(); void Write(const char *S); @@ -79,7 +81,9 @@ class OpTextProgress : public OpProgress virtual void Done(); - OpTextProgress(bool NoUpdate = false) : NoUpdate(NoUpdate), LastLen(0) {}; + OpTextProgress(bool NoUpdate = false) : NoUpdate(NoUpdate), + NoDisplay(false), LastLen(0) {}; + OpTextProgress(Configuration &Config); virtual ~OpTextProgress() {Done();}; };