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