Commit | Line | Data |
---|---|---|
b9179170 MV |
1 | #ifndef APT_PRIVATE_OUTPUT_H |
2 | #define APT_PRIVATE_OUTPUT_H | |
3 | ||
453b82a3 | 4 | #include <apt-pkg/pkgcache.h> |
b9179170 | 5 | |
b9179170 MV |
6 | #include <fstream> |
7 | #include <string> | |
8 | ||
b9179170 MV |
9 | // forward declaration |
10 | class pkgCacheFile; | |
11 | class CacheFile; | |
b9179170 MV |
12 | class pkgDepCache; |
13 | class pkgRecords; | |
14 | ||
15 | ||
16 | extern std::ostream c0out; | |
17 | extern std::ostream c1out; | |
18 | extern std::ostream c2out; | |
19 | extern std::ofstream devnull; | |
20 | extern unsigned int ScreenWidth; | |
21 | ||
22 | bool InitOutput(); | |
23 | void ListSingleVersion(pkgCacheFile &CacheFile, pkgRecords &records, | |
500347df MV |
24 | pkgCache::VerIterator V, std::ostream &out, |
25 | bool include_summary=true); | |
b9179170 MV |
26 | |
27 | ||
0c8b6001 | 28 | // helper to describe global state |
b9179170 MV |
29 | bool ShowList(std::ostream &out, std::string Title, std::string List, |
30 | std::string VersionsList); | |
31 | void ShowBroken(std::ostream &out,CacheFile &Cache,bool Now); | |
32 | void ShowNew(std::ostream &out,CacheFile &Cache); | |
33 | void ShowDel(std::ostream &out,CacheFile &Cache); | |
34 | void ShowKept(std::ostream &out,CacheFile &Cache); | |
35 | void ShowUpgraded(std::ostream &out,CacheFile &Cache); | |
36 | bool ShowDowngraded(std::ostream &out,CacheFile &Cache); | |
37 | bool ShowHold(std::ostream &out,CacheFile &Cache); | |
38 | ||
39 | bool ShowEssential(std::ostream &out,CacheFile &Cache); | |
40 | ||
41 | void Stats(std::ostream &out, pkgDepCache &Dep); | |
42 | ||
43 | // prompting | |
44 | bool YnPrompt(bool Default=true); | |
45 | bool AnalPrompt(const char *Text); | |
46 | ||
47 | #endif |