diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2005-10-20 14:16:10 +0000 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2005-10-20 14:16:10 +0000 |
| commit | dbab2dd1c1360837ebd524bcc1bb378534210426 (patch) | |
| tree | 3da5c5c476e0ced5e2ee1a14cd53c4734c65262d /python/progress.h | |
| parent | e608d6106a75a678fe121afd8020073b9ba80836 (diff) | |
| download | python-apt-dbab2dd1c1360837ebd524bcc1bb378534210426.tar.gz | |
* progress interface fully working now, commit interface too
Diffstat (limited to 'python/progress.h')
| -rw-r--r-- | python/progress.h | 6 |
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 |
