diff options
Diffstat (limited to 'ept/progresscallback.h')
-rw-r--r-- | ept/progresscallback.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/ept/progresscallback.h b/ept/progresscallback.h new file mode 100644 index 0000000..a5dbd6a --- /dev/null +++ b/ept/progresscallback.h @@ -0,0 +1,28 @@ +/** -*- C++ -*- + @file progresscallback.h + @author Michael Vogt <mvo@debian.org> +*/ + +#ifndef EPT_PROGRESSCALLBACK_H +#define EPT_PROGRESSCALLBACK_H + +#include <apt-pkg/acquire.h> + +namespace ept { + +class ProgressCallback : public pkgAcquireStatus +{ +protected: + virtual bool Pulse(pkgAcquire *Owner); +public: + ProgressCallback() {}; + virtual ~ProgressCallback() {}; + virtual bool MediaChange( string, string ) { return false; } // bah + + // override this to get periodic updates + virtual void UpdatePulse( double, double, unsigned long ) {} +}; + +} + +#endif |