]>
git.saurik.com Git - apt.git/blob - apt-pkg/metaindex.h
1d2140799ba792b9b9c980c9a7f5576ba965e729
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>
15 class pkgCacheGenerator
;
21 vector
<pkgIndexFile
*> *Indexes
;
31 virtual string
GetURI() const {return URI
;}
32 virtual string
GetDist() const {return Dist
;}
33 virtual const char* GetType() const {return Type
;}
35 // Interface for acquire
36 virtual string
ArchiveURI(string
const& /*File*/) const = 0;
37 virtual bool GetIndexes(pkgAcquire
*Owner
, bool const &GetAll
=false) const = 0;
39 virtual vector
<pkgIndexFile
*> *GetIndexFiles() = 0;
40 virtual bool IsTrusted() const = 0;
42 virtual ~metaIndex() {
45 for (vector
<pkgIndexFile
*>::iterator I
= (*Indexes
).begin(); I
!= (*Indexes
).end(); ++I
)