clean.h 720 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. #ifdef __GNUG__
  11. #pragma interface "apt-pkg/clean.h"
  12. #endif
  13. #include <apt-pkg/pkgcache.h>
  14. class pkgArchiveCleaner
  15. {
  16. protected:
  17. virtual void Erase(const char * /*File*/,string /*Pkg*/,string /*Ver*/,struct stat & /*St*/) {};
  18. public:
  19. bool Go(string Dir,pkgCache &Cache);
  20. virtual ~pkgArchiveCleaner() {};
  21. };
  22. #endif