]> git.saurik.com Git - apt.git/blob - apt-private/private-output.h
cleanup headers and especially #includes everywhere
[apt.git] / apt-private / private-output.h
1 #ifndef APT_PRIVATE_OUTPUT_H
2 #define APT_PRIVATE_OUTPUT_H
3
4 #include <apt-pkg/pkgcache.h>
5
6 #include <fstream>
7 #include <string>
8
9 // forward declaration
10 class pkgCacheFile;
11 class CacheFile;
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,
24 pkgCache::VerIterator V, std::ostream &out,
25 bool include_summary=true);
26
27
28 // helper to describe global state
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