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