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