2 #ifndef PKGLIB_DEBMETAINDEX_H
3 #define PKGLIB_DEBMETAINDEX_H
5 #include <apt-pkg/metaindex.h>
11 #ifndef APT_8_CLEANER_HEADERS
12 #include <apt-pkg/sourcelist.h>
22 std::string
const Section;
29 std::map<std::string, std::vector<debSectionEntry const*> > ArchEntries;
30 enum { ALWAYS_TRUSTED, NEVER_TRUSTED, CHECK_TRUST } Trusted;
38 virtual std::string ArchiveURI(std::string
const &File)
const {
return URI + File;};
39 virtual bool GetIndexes(
pkgAcquire *Owner,
bool const &GetAll=
false)
const;
40 std::vector <struct IndexTarget *>* ComputeIndexTargets()
const;
41 std::string Info(
const char *Type, std::string
const &Section, std::string
const &Arch=
"")
const;
42 std::string MetaIndexInfo(
const char *Type)
const;
43 std::string MetaIndexFile(
const char *Types)
const;
44 std::string MetaIndexURI(
const char *Type)
const;
45 std::string IndexURI(
const char *Type, std::string
const &Section, std::string
const &Arch=
"native")
const;
46 std::string IndexURISuffix(
const char *Type, std::string
const &Section, std::string
const &Arch=
"native")
const;
47 std::string SourceIndexURI(
const char *Type,
const std::string &Section)
const;
48 std::string SourceIndexURISuffix(
const char *Type,
const std::string &Section)
const;
49 std::string TranslationIndexURI(
const char *Type,
const std::string &Section)
const;
50 std::string TranslationIndexURISuffix(
const char *Type,
const std::string &Section)
const;
51 virtual std::vector <pkgIndexFile *> *GetIndexFiles();
53 void SetTrusted(
bool const Trusted);
54 virtual bool IsTrusted()
const;
56 void PushSectionEntry(std::vector<std::string>
const &Archs,
const debSectionEntry *Entry);
57 void PushSectionEntry(std::string
const &Arch,
const debSectionEntry *Entry);
58 void PushSectionEntry(
const debSectionEntry *Entry);