]> git.saurik.com Git - apt.git/blame_incremental - apt-private/private-download.h
support "install ./foo.changes"
[apt.git] / apt-private / private-download.h
... / ...
CommitLineData
1#ifndef APT_PRIVATE_DOWNLOAD_H
2#define APT_PRIVATE_DOWNLOAD_H
3
4#include <apt-pkg/acquire.h>
5#include <apt-pkg/macros.h>
6
7#include <apt-private/acqprogress.h>
8
9#include <string>
10#include <vector>
11
12// Check if all files in the fetcher are authenticated
13bool CheckAuth(pkgAcquire& Fetcher, bool const PromptUser);
14
15// show a authentication warning prompt and return true if the system
16// should continue
17bool AuthPrompt(std::vector<std::string> const &UntrustedList, bool const PromptUser);
18
19APT_PUBLIC bool AcquireRun(pkgAcquire &Fetcher, int const PulseInterval, bool * const Failure, bool * const TransientNetworkFailure);
20
21bool CheckFreeSpaceBeforeDownload(std::string const &Dir, unsigned long long FetchBytes);
22
23class APT_PUBLIC aptAcquireWithTextStatus : public pkgAcquire
24{
25 AcqTextStatus Stat;
26public:
27 aptAcquireWithTextStatus();
28};
29
30class CommandLine;
31
32APT_PUBLIC bool DoDownload(CommandLine &CmdL);
33APT_PUBLIC bool DoChangelog(CommandLine &CmdL);
34
35APT_PUBLIC bool DoClean(CommandLine &CmdL);
36APT_PUBLIC bool DoAutoClean(CommandLine &CmdL);
37
38#endif