]>
Commit | Line | Data |
---|---|---|
866893a6 DK |
1 | #ifndef APT_PRIVATE_DOWNLOAD_H |
2 | #define APT_PRIVATE_DOWNLOAD_H | |
3 | ||
63ff4208 DK |
4 | #include <apt-pkg/macros.h> |
5 | ||
460601d5 | 6 | #include <string> |
9112f777 | 7 | #include <vector> |
460601d5 | 8 | |
453b82a3 | 9 | class pkgAcquire; |
866893a6 | 10 | |
460601d5 DK |
11 | APT_PUBLIC bool CheckDropPrivsMustBeDisabled(pkgAcquire &Fetcher); |
12 | ||
a3f1d60c | 13 | // Check if all files in the fetcher are authenticated |
63ff4208 | 14 | APT_PUBLIC bool CheckAuth(pkgAcquire& Fetcher, bool const PromptUser); |
a3f1d60c MV |
15 | |
16 | // show a authentication warning prompt and return true if the system | |
17 | // should continue | |
9112f777 | 18 | APT_PUBLIC bool AuthPrompt(std::vector<std::string> const &UntrustedList, bool const PromptUser); |
a3f1d60c | 19 | |
63ff4208 | 20 | APT_PUBLIC bool AcquireRun(pkgAcquire &Fetcher, int const PulseInterval, bool * const Failure, bool * const TransientNetworkFailure); |
866893a6 | 21 | |
9c81f8de DK |
22 | APT_PUBLIC bool CheckFreeSpaceBeforeDownload(std::string const &Dir, unsigned long long FetchBytes); |
23 | ||
866893a6 | 24 | #endif |