]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/install-progress.h
always cleanup patchfiles at the end of rred call
[apt.git] / apt-pkg / install-progress.h
index 010be82fd63aa9e1960e487e9b8254cc6214be98..8a5b68a8ff9335b55cd7c153f74630a135bc50e5 100644 (file)
@@ -4,6 +4,7 @@
 #include <string>
 #include <unistd.h>
 #include <signal.h>
+#include <vector>
 
 namespace APT {
 namespace Progress {
@@ -116,11 +117,17 @@ namespace Progress {
 
  class PackageManagerFancy : public PackageManager
  {
+ private:
+    static void staticSIGWINCH(int);
+    static std::vector<PackageManagerFancy*> instances;
+
  protected:
-    static void SetupTerminalScrollArea(int nr_rows);
-    static int GetNumberTerminalRows();
-    static void HandleSIGWINCH(int);
+    void SetupTerminalScrollArea(int nr_rows);
+    void HandleSIGWINCH(int);
+
+    int GetNumberTerminalRows();
     sighandler_t old_SIGWINCH;
+    int child_pty;
 
  public:
     PackageManagerFancy();