refactor key removal code to reuse it in next step
[apt.git] / apt-private / private-output.h
CommitLineData
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
11class pkgCacheFile;
12class CacheFile;
b9179170
MV
13class pkgDepCache;
14class pkgRecords;
15
16
63ff4208
DK
17APT_PUBLIC extern std::ostream c0out;
18APT_PUBLIC extern std::ostream c1out;
19APT_PUBLIC extern std::ostream c2out;
20APT_PUBLIC extern std::ofstream devnull;
21APT_PUBLIC extern unsigned int ScreenWidth;
b9179170 22
63ff4208
DK
23APT_PUBLIC bool InitOutput();
24
25void 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
31APT_PUBLIC void ShowBroken(std::ostream &out, CacheFile &Cache, bool const Now);
32APT_PUBLIC void ShowBroken(std::ostream &out, pkgCacheFile &Cache, bool const Now);
63ff4208
DK
33
34APT_PUBLIC bool ShowList(std::ostream &out, std::string Title, std::string List,
b9179170 35 std::string VersionsList);
b9179170
MV
36void ShowNew(std::ostream &out,CacheFile &Cache);
37void ShowDel(std::ostream &out,CacheFile &Cache);
38void ShowKept(std::ostream &out,CacheFile &Cache);
39void ShowUpgraded(std::ostream &out,CacheFile &Cache);
40bool ShowDowngraded(std::ostream &out,CacheFile &Cache);
41bool ShowHold(std::ostream &out,CacheFile &Cache);
42
43bool ShowEssential(std::ostream &out,CacheFile &Cache);
44
45void Stats(std::ostream &out, pkgDepCache &Dep);
46
47// prompting
48bool YnPrompt(bool Default=true);
49bool AnalPrompt(const char *Text);
50
51#endif