clean.h 757 B

1234567891011121314151617181920212223242526272829303132
  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. #include <apt-pkg/pkgcache.h>
  11. class pkgArchiveCleaner
  12. {
  13. /** \brief dpointer placeholder (for later in case we need it) */
  14. void *d;
  15. protected:
  16. virtual void Erase(const char * /*File*/,std::string /*Pkg*/,std::string /*Ver*/,struct stat & /*St*/) {};
  17. public:
  18. bool Go(std::string Dir,pkgCache &Cache);
  19. virtual ~pkgArchiveCleaner() {};
  20. };
  21. #endif