1 #ifndef APT_PRIVATE_DOWNLOAD_H
2 #define APT_PRIVATE_DOWNLOAD_H
4 #include <apt-pkg/acquire.h>
5 #include <apt-pkg/macros.h>
7 #include <apt-private/acqprogress.h>
12 // Check if all files in the fetcher are authenticated
13 APT_PUBLIC
bool CheckAuth(pkgAcquire
& Fetcher
, bool const PromptUser
);
15 // show a authentication warning prompt and return true if the system
17 APT_PUBLIC
bool AuthPrompt(std::vector
<std::string
> const &UntrustedList
, bool const PromptUser
);
19 APT_PUBLIC
bool AcquireRun(pkgAcquire
&Fetcher
, int const PulseInterval
, bool * const Failure
, bool * const TransientNetworkFailure
);
21 APT_PUBLIC
bool CheckFreeSpaceBeforeDownload(std::string
const &Dir
, unsigned long long FetchBytes
);
23 class APT_PUBLIC aptAcquireWithTextStatus
: public pkgAcquire
27 aptAcquireWithTextStatus();
32 APT_PUBLIC
bool DoDownload(CommandLine
&CmdL
);
33 APT_PUBLIC
bool DoChangelog(CommandLine
&CmdL
);
35 APT_PUBLIC
bool DoClean(CommandLine
&CmdL
);
36 APT_PUBLIC
bool DoAutoClean(CommandLine
&CmdL
);