apt
@VERSION@
|
00001 // -*- mode: cpp; mode: fold -*- 00002 // Description /*{{{*/ 00003 // $Id: clean.h,v 1.2 1999/07/20 05:53:33 jgg Exp $ 00004 /* ###################################################################### 00005 00006 Clean - Clean out downloaded directories 00007 00008 ##################################################################### */ 00009 /*}}}*/ 00010 #ifndef APTPKG_CLEAN_H 00011 #define APTPKG_CLEAN_H 00012 00013 00014 #include <apt-pkg/pkgcache.h> 00015 00016 class pkgArchiveCleaner 00017 { 00019 void *d; 00020 00021 protected: 00022 00023 virtual void Erase(const char * /*File*/,std::string /*Pkg*/,std::string /*Ver*/,struct stat & /*St*/) {}; 00024 00025 public: 00026 00027 bool Go(std::string Dir,pkgCache &Cache); 00028 virtual ~pkgArchiveCleaner() {}; 00029 }; 00030 00031 #endif