debmetaindex.h 1.3 KB

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