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