]>
git.saurik.com Git - apt.git/blob - apt-pkg/metaindex.h
1 #ifndef PKGLIB_METAINDEX_H
2 #define PKGLIB_METAINDEX_H
5 /* #pragma interface "apt-pkg/metaindex.h" */
9 #include <apt-pkg/pkgcache.h>
10 #include <apt-pkg/srcrecords.h>
11 #include <apt-pkg/pkgrecords.h>
12 #include <apt-pkg/indexfile.h>
13 #include <apt-pkg/vendor.h>
18 class pkgCacheGenerator
;
24 vector
<pkgIndexFile
*> *Indexes
;
34 virtual string
GetURI() const {return URI
;}
35 virtual string
GetDist() const {return Dist
;}
36 virtual const char* GetType() const {return Type
;}
38 // Interface for acquire
39 virtual string
ArchiveURI(string
/*File*/) const = 0;
40 virtual bool GetIndexes(pkgAcquire
*Owner
, bool GetAll
=false) const = 0;
42 virtual vector
<pkgIndexFile
*> *GetIndexFiles() = 0;
43 virtual bool IsTrusted() const = 0;
45 virtual ~metaIndex() {};