diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2005-04-08 11:55:14 +0000 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2005-04-08 11:55:14 +0000 |
| commit | 08ea34d6a28b4b17d0146535e85d61ab7bda341d (patch) | |
| tree | 468c9348b1ee62208fdc60be8ad23a769e02e2b7 /python/progress.h | |
| parent | 8f914ef267ab1bbcbda1c6694edd2e4c9b6401ec (diff) | |
| download | python-apt-08ea34d6a28b4b17d0146535e85d61ab7bda341d.tar.gz | |
* simple InstallProgress interface added
Diffstat (limited to 'python/progress.h')
| -rw-r--r-- | python/progress.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/python/progress.h b/python/progress.h index a39ae41a..2514623a 100644 --- a/python/progress.h +++ b/python/progress.h @@ -11,6 +11,7 @@ #include <apt-pkg/progress.h> #include <apt-pkg/acquire.h> +#include <apt-pkg/packagemanager.h> #include <Python.h> class PyCallbackObj { @@ -58,6 +59,15 @@ struct PyFetchProgress : public pkgAcquireStatus, public PyCallbackObj }; +struct PyInstallProgress : public PyCallbackObj +{ + void StartUpdate(); + void UpdateInterface(); + void FinishUpdate(); + + pkgPackageManager::OrderResult Run(pkgPackageManager *pm); + PyInstallProgress() : PyCallbackObj() {}; +}; #endif |
