]> git.saurik.com Git - apt.git/blame - apt-private/private-output.h
store Release files data in the Cache
[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>
d9e518c6 9#include <iostream>
b9179170 10
b9179170
MV
11// forward declaration
12class pkgCacheFile;
13class CacheFile;
b9179170
MV
14class pkgDepCache;
15class pkgRecords;
16
17
63ff4208
DK
18APT_PUBLIC extern std::ostream c0out;
19APT_PUBLIC extern std::ostream c1out;
20APT_PUBLIC extern std::ostream c2out;
21APT_PUBLIC extern std::ofstream devnull;
22APT_PUBLIC extern unsigned int ScreenWidth;
b9179170 23
d9e518c6 24APT_PUBLIC bool InitOutput(std::basic_streambuf<char> * const out = std::cout.rdbuf());
63ff4208
DK
25
26void ListSingleVersion(pkgCacheFile &CacheFile, pkgRecords &records,
1a68655d
DK
27 pkgCache::VerIterator const &V, std::ostream &out,
28 std::string const &format);
b9179170
MV
29
30
0c8b6001 31// helper to describe global state
d39d7f88
DK
32APT_PUBLIC void ShowBroken(std::ostream &out, CacheFile &Cache, bool const Now);
33APT_PUBLIC void ShowBroken(std::ostream &out, pkgCacheFile &Cache, bool const Now);
63ff4208
DK
34
35APT_PUBLIC bool ShowList(std::ostream &out, std::string Title, std::string List,
b9179170 36 std::string VersionsList);
b9179170
MV
37void ShowNew(std::ostream &out,CacheFile &Cache);
38void ShowDel(std::ostream &out,CacheFile &Cache);
39void ShowKept(std::ostream &out,CacheFile &Cache);
40void ShowUpgraded(std::ostream &out,CacheFile &Cache);
41bool ShowDowngraded(std::ostream &out,CacheFile &Cache);
42bool ShowHold(std::ostream &out,CacheFile &Cache);
43
44bool ShowEssential(std::ostream &out,CacheFile &Cache);
45
46void Stats(std::ostream &out, pkgDepCache &Dep);
47
48// prompting
49bool YnPrompt(bool Default=true);
50bool AnalPrompt(const char *Text);
51
52#endif