debmetaindex.h 1.4 KB

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