Merge remote-tracking branch 'mvo/feature/install-progress' into debian/sid
[ntk/apt.git] / apt-private / private-output.h
1 #ifndef APT_PRIVATE_OUTPUT_H
2 #define APT_PRIVATE_OUTPUT_H
3
4
5 #include <iostream>
6 #include <fstream>
7 #include <string>
8
9 #include "private-cachefile.h"
10
11 // forward declaration
12 class pkgCacheFile;
13 class CacheFile;
14 class pkgCache;
15 class pkgDepCache;
16 class pkgRecords;
17
18
19 extern std::ostream c0out;
20 extern std::ostream c1out;
21 extern std::ostream c2out;
22 extern std::ofstream devnull;
23 extern unsigned int ScreenWidth;
24
25 bool InitOutput();
26 void ListSingleVersion(pkgCacheFile &CacheFile, pkgRecords &records,
27 pkgCache::VerIterator V, std::ostream &out);
28
29
30
31 bool ShowList(std::ostream &out, std::string Title, std::string List,
32 std::string VersionsList);
33 void ShowBroken(std::ostream &out,CacheFile &Cache,bool Now);
34 void ShowNew(std::ostream &out,CacheFile &Cache);
35 void ShowDel(std::ostream &out,CacheFile &Cache);
36 void ShowKept(std::ostream &out,CacheFile &Cache);
37 void ShowUpgraded(std::ostream &out,CacheFile &Cache);
38 bool ShowDowngraded(std::ostream &out,CacheFile &Cache);
39 bool ShowHold(std::ostream &out,CacheFile &Cache);
40
41 bool ShowEssential(std::ostream &out,CacheFile &Cache);
42
43 void Stats(std::ostream &out, pkgDepCache &Dep);
44
45 // prompting
46 bool YnPrompt(bool Default=true);
47 bool AnalPrompt(const char *Text);
48
49 #endif