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