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