]>
git.saurik.com Git - apt.git/blob - apt-pkg/metaindex.h
66c287c30fb711d2495ce83aff3fe45a0cd45fdb
1 #ifndef PKGLIB_METAINDEX_H
2 #define PKGLIB_METAINDEX_H
6 #include <apt-pkg/pkgcache.h>
7 #include <apt-pkg/srcrecords.h>
8 #include <apt-pkg/pkgrecords.h>
9 #include <apt-pkg/indexfile.h>
10 #include <apt-pkg/vendor.h>
13 class pkgCacheGenerator
;
19 std::vector
<pkgIndexFile
*> *Indexes
;
29 virtual std::string
GetURI() const {return URI
;}
30 virtual std::string
GetDist() const {return Dist
;}
31 virtual const char* GetType() const {return Type
;}
33 // Interface for acquire
34 virtual std::string
ArchiveURI(std::string
const& /*File*/) const = 0;
35 virtual bool GetIndexes(pkgAcquire
*Owner
, bool const &GetAll
=false) const = 0;
37 virtual std::vector
<pkgIndexFile
*> *GetIndexFiles() = 0;
38 virtual bool IsTrusted() const = 0;
40 metaIndex(std::string
const &URI
, std::string
const &Dist
, char const * const Type
) :
41 Indexes(NULL
), Type(Type
), URI(URI
), Dist(Dist
) {
44 virtual ~metaIndex() {
47 for (std::vector
<pkgIndexFile
*>::iterator I
= (*Indexes
).begin(); I
!= (*Indexes
).end(); ++I
)