]>
git.saurik.com Git - apt.git/blob - apt-pkg/metaindex.h
0f95257e07ee41e116acef75e7ba3134db3df7d2
1 #ifndef PKGLIB_METAINDEX_H
2 #define PKGLIB_METAINDEX_H
6 #include <apt-pkg/pkgcache.h>
7 #include <apt-pkg/indexfile.h>
9 #ifndef APT_8_CLEANER_HEADERS
14 class pkgCacheGenerator
;
20 std::vector
<pkgIndexFile
*> *Indexes
;
30 virtual std::string
GetURI() const {return URI
;}
31 virtual std::string
GetDist() const {return Dist
;}
32 virtual const char* GetType() const {return Type
;}
34 // Interface for acquire
35 virtual std::string
ArchiveURI(std::string
const& /*File*/) const = 0;
36 virtual bool GetIndexes(pkgAcquire
*Owner
, bool const &GetAll
=false) const = 0;
38 virtual std::vector
<pkgIndexFile
*> *GetIndexFiles() = 0;
39 virtual bool IsTrusted() const = 0;
41 metaIndex(std::string
const &URI
, std::string
const &Dist
, char const * const Type
) :
42 Indexes(NULL
), Type(Type
), URI(URI
), Dist(Dist
) {
45 virtual ~metaIndex() {
48 for (std::vector
<pkgIndexFile
*>::iterator I
= (*Indexes
).begin(); I
!= (*Indexes
).end(); ++I
)