private-output.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #ifndef APT_PRIVATE_OUTPUT_H
  2. #define APT_PRIVATE_OUTPUT_H
  3. #include <iostream>
  4. #include <fstream>
  5. #include <string>
  6. #include "private-cachefile.h"
  7. // forward declaration
  8. class pkgCacheFile;
  9. class CacheFile;
  10. class pkgCache;
  11. class pkgDepCache;
  12. class pkgRecords;
  13. extern std::ostream c0out;
  14. extern std::ostream c1out;
  15. extern std::ostream c2out;
  16. extern std::ofstream devnull;
  17. extern unsigned int ScreenWidth;
  18. bool InitOutput();
  19. void ListSingleVersion(pkgCacheFile &CacheFile, pkgRecords &records,
  20. pkgCache::VerIterator V, std::ostream &out,
  21. bool include_summary=true);
  22. bool ShowList(std::ostream &out, std::string Title, std::string List,
  23. std::string VersionsList);
  24. void ShowBroken(std::ostream &out,CacheFile &Cache,bool Now);
  25. void ShowNew(std::ostream &out,CacheFile &Cache);
  26. void ShowDel(std::ostream &out,CacheFile &Cache);
  27. void ShowKept(std::ostream &out,CacheFile &Cache);
  28. void ShowUpgraded(std::ostream &out,CacheFile &Cache);
  29. bool ShowDowngraded(std::ostream &out,CacheFile &Cache);
  30. bool ShowHold(std::ostream &out,CacheFile &Cache);
  31. bool ShowEssential(std::ostream &out,CacheFile &Cache);
  32. void Stats(std::ostream &out, pkgDepCache &Dep);
  33. // prompting
  34. bool YnPrompt(bool Default=true);
  35. bool AnalPrompt(const char *Text);
  36. #endif