1 : /** -*- C++ -*-
2 : @file progresscallback.h
3 : @author Michael Vogt <mvo@debian.org>
4 : */
5 :
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:
18 : ProgressCallback() {};
19 0 : virtual ~ProgressCallback() {};
20 0 : virtual bool MediaChange( string, string ) { return false; } // bah
21 :
22 : // override this to get periodic updates
23 0 : virtual void UpdatePulse( double, double, unsigned long ) {}
24 : };
25 :
26 : }
27 :
28 : #endif
|