summaryrefslogtreecommitdiff
path: root/python/progress.h
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2005-10-20 14:16:10 +0000
committerMichael Vogt <michael.vogt@ubuntu.com>2005-10-20 14:16:10 +0000
commitdbab2dd1c1360837ebd524bcc1bb378534210426 (patch)
tree3da5c5c476e0ced5e2ee1a14cd53c4734c65262d /python/progress.h
parente608d6106a75a678fe121afd8020073b9ba80836 (diff)
downloadpython-apt-dbab2dd1c1360837ebd524bcc1bb378534210426.tar.gz
* progress interface fully working now, commit interface too
Diffstat (limited to 'python/progress.h')
-rw-r--r--python/progress.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/python/progress.h b/python/progress.h
index f116c811..f04bd683 100644
--- a/python/progress.h
+++ b/python/progress.h
@@ -15,6 +15,7 @@
#include <apt-pkg/cdrom.h>
#include <Python.h>
+
class PyCallbackObj {
protected:
PyObject *callbackInst;
@@ -44,6 +45,10 @@ struct PyOpProgress : public OpProgress, public PyCallbackObj
struct PyFetchProgress : public pkgAcquireStatus, public PyCallbackObj
{
+ enum {
+ DLDone, DLQueued, DLFailed, DLHit, DLIgnored
+ };
+
void UpdateStatus(pkgAcquire::ItemDesc & Itm, int status);
virtual bool MediaChange(string Media, string Drive);
@@ -58,7 +63,6 @@ struct PyFetchProgress : public pkgAcquireStatus, public PyCallbackObj
bool Pulse(pkgAcquire * Owner);
PyFetchProgress() : PyCallbackObj() {};
-
};
struct PyInstallProgress : public PyCallbackObj