libept
progresscallback.h
Go to the documentation of this file.
1 
6 #ifndef EPT_PROGRESSCALLBACK_H
7 #define EPT_PROGRESSCALLBACK_H
8 
9 #include <apt-pkg/acquire.h>
10 
11 namespace ept {
12 
13 class ProgressCallback : public pkgAcquireStatus
14 {
15 protected:
16  virtual bool Pulse(pkgAcquire *Owner);
17 public:
19  virtual ~ProgressCallback() {};
20  virtual bool MediaChange( string, string ) { return false; } // bah
21 
22  // override this to get periodic updates
23  virtual void UpdatePulse( double, double, unsigned long ) {}
24 };
25 
26 }
27 
28 #endif