summaryrefslogtreecommitdiff
path: root/python/progress.h
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2005-04-08 11:55:14 +0000
committerMichael Vogt <michael.vogt@ubuntu.com>2005-04-08 11:55:14 +0000
commit08ea34d6a28b4b17d0146535e85d61ab7bda341d (patch)
tree468c9348b1ee62208fdc60be8ad23a769e02e2b7 /python/progress.h
parent8f914ef267ab1bbcbda1c6694edd2e4c9b6401ec (diff)
downloadpython-apt-08ea34d6a28b4b17d0146535e85d61ab7bda341d.tar.gz
* simple InstallProgress interface added
Diffstat (limited to 'python/progress.h')
-rw-r--r--python/progress.h10
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