]>
Commit | Line | Data |
---|---|---|
1 | // ijones, walters | |
2 | #ifndef PKGLIB_DEBMETAINDEX_H | |
3 | #define PKGLIB_DEBMETAINDEX_H | |
4 | ||
5 | #include <apt-pkg/metaindex.h> | |
6 | #include <apt-pkg/sourcelist.h> | |
7 | ||
8 | class debReleaseIndex : public metaIndex { | |
9 | public: | |
10 | ||
11 | class debSectionEntry | |
12 | { | |
13 | public: | |
14 | debSectionEntry (string Section, bool IsSrc); | |
15 | bool IsSrc; | |
16 | string Section; | |
17 | }; | |
18 | ||
19 | private: | |
20 | vector <const debSectionEntry *> SectionEntries; | |
21 | ||
22 | public: | |
23 | ||
24 | debReleaseIndex(string URI, string Dist); | |
25 | ~debReleaseIndex(); | |
26 | ||
27 | virtual string ArchiveURI(string File) const {return URI + File;}; | |
28 | virtual bool GetIndexes(pkgAcquire *Owner, bool GetAll=false) const; | |
29 | vector <struct IndexTarget *>* ComputeIndexTargets() const; | |
30 | string Info(const char *Type, const string Section) const; | |
31 | string MetaIndexInfo(const char *Type) const; | |
32 | string MetaIndexFile(const char *Types) const; | |
33 | string MetaIndexURI(const char *Type) const; | |
34 | string IndexURI(const char *Type, const string Section) const; | |
35 | string IndexURISuffix(const char *Type, const string Section) const; | |
36 | string SourceIndexURI(const char *Type, const string Section) const; | |
37 | string SourceIndexURISuffix(const char *Type, const string Section) const; | |
38 | virtual vector <pkgIndexFile *> *GetIndexFiles(); | |
39 | ||
40 | virtual bool IsTrusted() const; | |
41 | ||
42 | void PushSectionEntry(const debSectionEntry *Entry); | |
43 | }; | |
44 | ||
45 | #endif |