]> git.saurik.com Git - apt.git/blobdiff - apt-inst/database.h
* test/libapt/globalerror_test.cc:
[apt.git] / apt-inst / database.h
index 854ba1fbb1ac7757d0688768783e2b9fd0ce2565..64e149f98c8b3cc980bed5ae57c2cd2995bae594 100644 (file)
 #ifndef PKGLIB_DATABASE_H
 #define PKGLIB_DATABASE_H
 
-#ifdef __GNUG__
-#endif
+#include <apt-pkg/pkgcachegen.h>
+
+#include <string>
 
+#ifndef APT_8_CLEANER_HEADERS
 #include <apt-pkg/filelist.h>
-#include <apt-pkg/pkgcachegen.h>
+#endif
+
+class pkgFLCache;
+class OpProgress;
 
 class pkgDataBase
 {
@@ -33,8 +38,8 @@ class pkgDataBase
    
    pkgCacheGenerator *Cache;
    pkgFLCache *FList;
-   string MetaDir;
-   virtual bool InitMetaTmp(string &Dir) = 0;
+   std::string MetaDir;
+   virtual bool InitMetaTmp(std::string &Dir) = 0;
    
    public:
 
@@ -43,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