]>
Commit | Line | Data |
---|---|---|
b3d44315 MV |
1 | // ijones, walters |
2 | #ifndef PKGLIB_DEBMETAINDEX_H | |
3 | #define PKGLIB_DEBMETAINDEX_H | |
4 | ||
b3d44315 MV |
5 | #include <apt-pkg/metaindex.h> |
6 | #include <apt-pkg/sourcelist.h> | |
7 | ||
5dd4c8b8 DK |
8 | #include <map> |
9 | ||
b3d44315 MV |
10 | class debReleaseIndex : public metaIndex { |
11 | public: | |
12 | ||
13 | class debSectionEntry | |
14 | { | |
15 | public: | |
5dd4c8b8 DK |
16 | debSectionEntry (string const &Section, bool const &IsSrc); |
17 | string const Section; | |
18 | bool const IsSrc; | |
b3d44315 MV |
19 | }; |
20 | ||
21 | private: | |
ff72bd0d MV |
22 | /** \brief dpointer placeholder (for later in case we need it) */ |
23 | void *d; | |
5dd4c8b8 | 24 | std::map<string, vector<debSectionEntry const*> > ArchEntries; |
b3d44315 MV |
25 | |
26 | public: | |
27 | ||
5dd4c8b8 | 28 | debReleaseIndex(string const &URI, string const &Dist); |
ff72bd0d | 29 | virtual ~debReleaseIndex(); |
b3d44315 | 30 | |
5dd4c8b8 DK |
31 | virtual string ArchiveURI(string const &File) const {return URI + File;}; |
32 | virtual bool GetIndexes(pkgAcquire *Owner, bool const &GetAll=false) const; | |
b3d44315 | 33 | vector <struct IndexTarget *>* ComputeIndexTargets() const; |
5dd4c8b8 | 34 | string Info(const char *Type, string const &Section, string const &Arch="") const; |
b3d44315 MV |
35 | string MetaIndexInfo(const char *Type) const; |
36 | string MetaIndexFile(const char *Types) const; | |
37 | string MetaIndexURI(const char *Type) const; | |
5dd4c8b8 DK |
38 | string IndexURI(const char *Type, string const &Section, string const &Arch="native") const; |
39 | string IndexURISuffix(const char *Type, string const &Section, string const &Arch="native") const; | |
40 | string SourceIndexURI(const char *Type, const string &Section) const; | |
41 | string SourceIndexURISuffix(const char *Type, const string &Section) const; | |
b3d44315 MV |
42 | virtual vector <pkgIndexFile *> *GetIndexFiles(); |
43 | ||
44 | virtual bool IsTrusted() const; | |
45 | ||
5dd4c8b8 DK |
46 | void PushSectionEntry(vector<string> const &Archs, const debSectionEntry *Entry); |
47 | void PushSectionEntry(string const &Arch, const debSectionEntry *Entry); | |
b3d44315 MV |
48 | void PushSectionEntry(const debSectionEntry *Entry); |
49 | }; | |
50 | ||
51 | #endif |