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
ProgressCallback()
Definition: progresscallback.h:18
virtual ~ProgressCallback()
Definition: progresscallback.h:19
String functions.
Definition: apt.cc:38
virtual bool MediaChange(string, string)
Definition: progresscallback.h:20
virtual bool Pulse(pkgAcquire *Owner)
Definition: progresscallback.cpp:5
virtual void UpdatePulse(double, double, unsigned long)
Definition: progresscallback.h:23
Definition: progresscallback.h:13