]> git.saurik.com Git - apt.git/blame - apt-pkg/deb/debmetaindex.h
[ABI] merged the libudev-dlopen branch, this allows to pass
[apt.git] / apt-pkg / deb / debmetaindex.h
CommitLineData
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
8class 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);
7a9f09bd 25 ~debReleaseIndex();
b3d44315
MV
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