]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/progress.h
* doc/external-dependency-solver-protocol.txt:
[apt.git] / apt-pkg / contrib / progress.h
index f095451560cebcc3a4202aeed90320b2daa25afd..3a914d17f6aca935059a30a56834875b85d745ea 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: progress.h,v 1.5 1999/01/18 06:20:08 jgg Exp $
+// $Id: progress.h,v 1.6 2001/05/07 05:06:52 jgg Exp $
 /* ######################################################################
    
    OpProgress - Operation Progress
 #ifndef PKGLIB_PROGRESS_H
 #define PKGLIB_PROGRESS_H
 
-#ifdef __GNUG__
-#pragma interface "apt-pkg/progress.h"
-#endif 
 
 #include <string>
 #include <sys/time.h>
 
+using std::string;
+
 class Configuration;
 class OpProgress
 {
@@ -56,10 +55,9 @@ class OpProgress
    public:
    
    void Progress(unsigned long Current);
-   void SubProgress(unsigned long SubTotal);
-   void SubProgress(unsigned long SubTotal,string Op);
+   void SubProgress(unsigned long SubTotal, const string &Op = "", float const Percent = -1);
    void OverallProgress(unsigned long Current,unsigned long Total,
-                       unsigned long Size,string Op);
+                       unsigned long Size,const string &Op);
    virtual void Done() {};
    
    OpProgress();