clean.h 850 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. // -*- mode: cpp; mode: fold -*-
  2. // Description /*{{{*/
  3. // $Id: clean.h,v 1.2 1999/07/20 05:53:33 jgg Exp $
  4. /* ######################################################################
  5. Clean - Clean out downloaded directories
  6. ##################################################################### */
  7. /*}}}*/
  8. #ifndef APTPKG_CLEAN_H
  9. #define APTPKG_CLEAN_H
  10. #ifndef APT_10_CLEANER_HEADERS
  11. #include <apt-pkg/pkgcache.h>
  12. #endif
  13. #include <string>
  14. class pkgCache;
  15. class pkgArchiveCleaner
  16. {
  17. /** \brief dpointer placeholder (for later in case we need it) */
  18. void * const d;
  19. protected:
  20. virtual void Erase(const char * /*File*/,std::string /*Pkg*/,std::string /*Ver*/,struct stat & /*St*/) {};
  21. public:
  22. bool Go(std::string Dir,pkgCache &Cache);
  23. pkgArchiveCleaner();
  24. virtual ~pkgArchiveCleaner();
  25. };
  26. #endif