cleanup headers and especially #includes everywhere
[ntk/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>
b9179170 5
b9179170
MV
6#include <fstream>
7#include <string>
8
b9179170
MV
9// forward declaration
10class pkgCacheFile;
11class CacheFile;
b9179170
MV
12class pkgDepCache;
13class pkgRecords;
14
15
16extern std::ostream c0out;
17extern std::ostream c1out;
18extern std::ostream c2out;
19extern std::ofstream devnull;
20extern unsigned int ScreenWidth;
21
22bool InitOutput();
23void ListSingleVersion(pkgCacheFile &CacheFile, pkgRecords &records,
500347df
MV
24 pkgCache::VerIterator V, std::ostream &out,
25 bool include_summary=true);
b9179170
MV
26
27
0c8b6001 28// helper to describe global state
b9179170
MV
29bool ShowList(std::ostream &out, std::string Title, std::string List,
30 std::string VersionsList);
31void ShowBroken(std::ostream &out,CacheFile &Cache,bool Now);
32void ShowNew(std::ostream &out,CacheFile &Cache);
33void ShowDel(std::ostream &out,CacheFile &Cache);
34void ShowKept(std::ostream &out,CacheFile &Cache);
35void ShowUpgraded(std::ostream &out,CacheFile &Cache);
36bool ShowDowngraded(std::ostream &out,CacheFile &Cache);
37bool ShowHold(std::ostream &out,CacheFile &Cache);
38
39bool ShowEssential(std::ostream &out,CacheFile &Cache);
40
41void Stats(std::ostream &out, pkgDepCache &Dep);
42
43// prompting
44bool YnPrompt(bool Default=true);
45bool AnalPrompt(const char *Text);
46
47#endif