]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/clean.h
ensure FileFd doesn't try to open /dev/null as atomic and co
[apt.git] / apt-pkg / clean.h
index ee65fcb61a2d36ef62d15594f1ee4fb5efb362b6..6cedae0869a7811426273c9bca57e51cbddc21a7 100644 (file)
 #ifndef APTPKG_CLEAN_H
 #define APTPKG_CLEAN_H
 
 #ifndef APTPKG_CLEAN_H
 #define APTPKG_CLEAN_H
 
-#ifdef __GNUG__
-#pragma interface "apt-pkg/clean.h"
-#endif 
-
+#ifndef APT_10_CLEANER_HEADERS
 #include <apt-pkg/pkgcache.h>
 #include <apt-pkg/pkgcache.h>
+#endif
+
+#include <string>
+
+class pkgCache;
 
 class pkgArchiveCleaner
 {
 
 class pkgArchiveCleaner
 {
+   /** \brief dpointer placeholder (for later in case we need it) */
+   void * const d;
+
    protected:
    protected:
-   
-   virtual void Erase(const char * /*File*/,string /*Pkg*/,string /*Ver*/,struct stat & /*St*/) {};
 
 
-   public:   
-   
-   bool Go(string Dir,pkgCache &Cache);
+   virtual void Erase(const char * /*File*/,std::string /*Pkg*/,std::string /*Ver*/,struct stat & /*St*/) {};
+
+   public:
+
+   bool Go(std::string Dir,pkgCache &Cache);
+
+   pkgArchiveCleaner();
+   virtual ~pkgArchiveCleaner();
 };
 
 #endif
 };
 
 #endif