File: progresscallback.h

package info (click to toggle)
libept 1.0.12.1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 14,292 kB
  • ctags: 787
  • sloc: cpp: 4,449; sh: 28; makefile: 17
file content (28 lines) | stat: -rw-r--r-- 568 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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