]>
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 |
63ff4208 | 13 | APT_PUBLIC 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 | |
9112f777 | 17 | APT_PUBLIC 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 | |
9c81f8de DK |
21 | APT_PUBLIC bool CheckFreeSpaceBeforeDownload(std::string const &Dir, unsigned long long FetchBytes); |
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 |