]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/acquire-worker.h
add more dpointer placeholders
[apt.git] / apt-pkg / acquire-worker.h
index 1f6bcc05f6fed0904373ea67f6f66981853a59bd..62545829a264d28a9618c5d16c321e05557c5048 100644 (file)
 #define PKGLIB_ACQUIRE_WORKER_H
 
 #include <apt-pkg/acquire.h>
+#include <apt-pkg/weakptr.h>
 
-#ifdef __GNUG__
-#pragma interface "apt-pkg/acquire-worker.h"
-#endif 
 
 /** \brief A fetch subprocess.
  *
  *
  *  \sa pkgAcqMethod, pkgAcquire::Item, pkgAcquire
  */
-class pkgAcquire::Worker
+class pkgAcquire::Worker : public WeakPointable
 {
+   /** \brief dpointer placeholder (for later in case we need it) */
+   void *d;
+  
    friend class pkgAcquire;
    
    protected:
@@ -316,7 +317,7 @@ class pkgAcquire::Worker
     *  Closes the file descriptors; if MethodConfig::NeedsCleanup is
     *  \b false, also rudely interrupts the worker with a SIGINT.
     */
-   ~Worker();
+   virtual ~Worker();
 };
 
 /** @} */