]> git.saurik.com Git - apt.git/blame - apt-private/private-output.h
Merge remote-tracking branch 'mvo/feature/apt-update-info' into debian/sid
[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,
500347df
MV
26 pkgCache::VerIterator V, std::ostream &out,
27 bool include_summary=true);
b9179170
MV
28
29
0c8b6001 30// helper to describe global state
63ff4208
DK
31APT_PUBLIC void ShowBroken(std::ostream &out,CacheFile &Cache,bool Now);
32
33APT_PUBLIC bool ShowList(std::ostream &out, std::string Title, std::string List,
b9179170 34 std::string VersionsList);
b9179170
MV
35void ShowNew(std::ostream &out,CacheFile &Cache);
36void ShowDel(std::ostream &out,CacheFile &Cache);
37void ShowKept(std::ostream &out,CacheFile &Cache);
38void ShowUpgraded(std::ostream &out,CacheFile &Cache);
39bool ShowDowngraded(std::ostream &out,CacheFile &Cache);
40bool ShowHold(std::ostream &out,CacheFile &Cache);
41
42bool ShowEssential(std::ostream &out,CacheFile &Cache);
43
44void Stats(std::ostream &out, pkgDepCache &Dep);
45
46// prompting
47bool YnPrompt(bool Default=true);
48bool AnalPrompt(const char *Text);
49
50#endif