1 #ifndef PKGLIB_METAINDEX_H
2 #define PKGLIB_METAINDEX_H
7 #include <apt-pkg/indexfile.h>
9 #ifndef APT_8_CLEANER_HEADERS
10 #include <apt-pkg/srcrecords.h>
11 #include <apt-pkg/pkgrecords.h>
12 #include <apt-pkg/vendor.h>
23 std::vector <pkgIndexFile *> *Indexes;
33 virtual std::string GetURI()
const {
return URI;}
34 virtual std::string GetDist()
const {
return Dist;}
35 virtual const char* GetType()
const {
return Type;}
38 virtual std::string ArchiveURI(std::string
const& )
const = 0;
39 virtual bool GetIndexes(
pkgAcquire *Owner,
bool const &GetAll=
false)
const = 0;
41 virtual std::vector<pkgIndexFile *> *GetIndexFiles() = 0;
42 virtual bool IsTrusted()
const = 0;
44 metaIndex(std::string
const &
URI, std::string
const &Dist,
char const *
const Type) :
45 Indexes(NULL), Type(Type), URI(URI), Dist(Dist) {
51 for (std::vector<pkgIndexFile *>::iterator I = (*Indexes).begin(); I != (*Indexes).end(); ++I)