debmetaindex.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. ~debReleaseIndex();
  20. virtual string ArchiveURI(string File) const {return URI + File;};
  21. virtual bool GetIndexes(pkgAcquire *Owner, bool GetAll=false) const;
  22. vector <struct IndexTarget *>* ComputeIndexTargets() const;
  23. string Info(const char *Type, const string Section) const;
  24. string MetaIndexInfo(const char *Type) const;
  25. string MetaIndexFile(const char *Types) const;
  26. string MetaIndexURI(const char *Type) const;
  27. string IndexURI(const char *Type, const string Section) const;
  28. string IndexURISuffix(const char *Type, const string Section) const;
  29. string SourceIndexURI(const char *Type, const string Section) const;
  30. string SourceIndexURISuffix(const char *Type, const string Section) const;
  31. virtual vector <pkgIndexFile *> *GetIndexFiles();
  32. virtual bool IsTrusted() const;
  33. void PushSectionEntry(const debSectionEntry *Entry);
  34. };
  35. #endif