]> git.saurik.com Git - apt.git/blame - apt-private/private-output.h
introduce a vendor system to change sources.list
[apt.git] / apt-private / private-output.h
CommitLineData
b9179170
MV
1#ifndef APT_PRIVATE_OUTPUT_H
2#define APT_PRIVATE_OUTPUT_H
3
4
5#include <iostream>
6#include <fstream>
7#include <string>
8
9#include "private-cachefile.h"
10
11// forward declaration
12class pkgCacheFile;
13class CacheFile;
14class pkgCache;
15class pkgDepCache;
16class pkgRecords;
17
18
19extern std::ostream c0out;
20extern std::ostream c1out;
21extern std::ostream c2out;
22extern std::ofstream devnull;
23extern unsigned int ScreenWidth;
24
25bool InitOutput();
26void ListSingleVersion(pkgCacheFile &CacheFile, pkgRecords &records,
500347df
MV
27 pkgCache::VerIterator V, std::ostream &out,
28 bool include_summary=true);
b9179170
MV
29
30
31
32bool ShowList(std::ostream &out, std::string Title, std::string List,
33 std::string VersionsList);
34void ShowBroken(std::ostream &out,CacheFile &Cache,bool Now);
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