]> git.saurik.com Git - apt.git/blame_incremental - apt-private/private-output.h
Merge remote-tracking branch 'mvo/feature/drop-rights' into debian/experimental
[apt.git] / apt-private / private-output.h
... / ...
CommitLineData
1#ifndef APT_PRIVATE_OUTPUT_H
2#define APT_PRIVATE_OUTPUT_H
3
4#include <apt-pkg/pkgcache.h>
5#include <apt-pkg/macros.h>
6
7#include <fstream>
8#include <string>
9
10// forward declaration
11class pkgCacheFile;
12class CacheFile;
13class pkgDepCache;
14class pkgRecords;
15
16
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;
22
23APT_PUBLIC bool InitOutput();
24
25void ListSingleVersion(pkgCacheFile &CacheFile, pkgRecords &records,
26 pkgCache::VerIterator V, std::ostream &out,
27 bool include_summary=true);
28
29
30// helper to describe global state
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,
34 std::string VersionsList);
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