summaryrefslogtreecommitdiff
path: root/apt-inst/database.h
diff options
context:
space:
mode:
Diffstat (limited to 'apt-inst/database.h')
-rw-r--r--apt-inst/database.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/apt-inst/database.h b/apt-inst/database.h
index ef45bc2d6..64e149f98 100644
--- a/apt-inst/database.h
+++ b/apt-inst/database.h
@@ -21,17 +21,25 @@
#ifndef PKGLIB_DATABASE_H
#define PKGLIB_DATABASE_H
-#include <apt-pkg/filelist.h>
#include <apt-pkg/pkgcachegen.h>
+#include <string>
+
+#ifndef APT_8_CLEANER_HEADERS
+#include <apt-pkg/filelist.h>
+#endif
+
+class pkgFLCache;
+class OpProgress;
+
class pkgDataBase
{
protected:
pkgCacheGenerator *Cache;
pkgFLCache *FList;
- string MetaDir;
- virtual bool InitMetaTmp(string &Dir) = 0;
+ std::string MetaDir;
+ virtual bool InitMetaTmp(std::string &Dir) = 0;
public:
@@ -40,13 +48,13 @@ class pkgDataBase
inline pkgFLCache &GetFLCache() {return *FList;};
inline pkgCacheGenerator &GetGenerator() {return *Cache;};
- bool GetMetaTmp(string &Dir);
+ bool GetMetaTmp(std::string &Dir);
virtual bool ReadyFileList(OpProgress &Progress) = 0;
virtual bool ReadyPkgCache(OpProgress &Progress) = 0;
virtual bool LoadChanges() = 0;
pkgDataBase() : Cache(0), FList(0) {};
- virtual ~pkgDataBase() {delete Cache; delete FList;};
+ virtual ~pkgDataBase();
};
#endif