]> git.saurik.com Git - apt.git/blob - apt-private/private-download.h
__deprecated is already defined by sys/cdefs.h :/.
[apt.git] / apt-private / private-download.h
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
13 bool CheckAuth(pkgAcquire& Fetcher, bool const PromptUser);
14
15 // show a authentication warning prompt and return true if the system
16 // should continue
17 bool AuthPrompt(std::vector<std::string> const &UntrustedList, bool const PromptUser);
18
19 APT_PUBLIC bool AcquireRun(pkgAcquire &Fetcher, int const PulseInterval, bool * const Failure, bool * const TransientNetworkFailure);
20
21 bool CheckFreeSpaceBeforeDownload(std::string const &Dir, unsigned long long FetchBytes);
22
23 class APT_PUBLIC aptAcquireWithTextStatus : public pkgAcquire
24 {
25 AcqTextStatus Stat;
26 public:
27 aptAcquireWithTextStatus();
28 };
29
30 class CommandLine;
31
32 APT_PUBLIC bool DoDownload(CommandLine &CmdL);
33 APT_PUBLIC bool DoChangelog(CommandLine &CmdL);
34
35 APT_PUBLIC bool DoClean(CommandLine &CmdL);
36 APT_PUBLIC bool DoAutoClean(CommandLine &CmdL);
37
38 #endif