1 #ifndef PKGLIB_METAINDEX_H
2 #define PKGLIB_METAINDEX_H
7 #include <apt-pkg/indexfile.h>
8 #include <apt-pkg/init.h>
10 #ifndef APT_8_CLEANER_HEADERS
11 #include <apt-pkg/srcrecords.h>
12 #include <apt-pkg/pkgrecords.h>
13 #include <apt-pkg/vendor.h>
24 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 #if (APT_PKG_MAJOR >= 4 && APT_PKG_MINOR >= 13)
40 virtual std::string LocalFileName()
const {
return "";};
44 virtual std::string ArchiveURI(std::string
const& File)
const = 0;
45 virtual bool GetIndexes(
pkgAcquire *Owner,
bool const &GetAll=
false)
const = 0;
46 virtual std::vector<pkgIndexFile *> *GetIndexFiles() = 0;
47 virtual bool IsTrusted()
const = 0;
49 metaIndex(std::string
const &
URI, std::string
const &Dist,
50 char const *
const Type)
51 : Indexes(NULL), Type(Type), URI(URI), Dist(Dist)
60 for (std::vector<pkgIndexFile *>::iterator I = (*Indexes).begin();
61 I != (*Indexes).end(); ++I)
pkgCache - Structure definitions for the cache file
Definition: progress.h:33
The core download scheduler. {{{.
Definition: acquire.h:93
Definition: pkgcachegen.h:34