]> git.saurik.com Git - apt.git/blame - apt-private/private-download.h
remove duplicated 'the' from guides doc-base abstract
[apt.git] / apt-private / private-download.h
CommitLineData
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 13bool 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 17bool AuthPrompt(std::vector<std::string> const &UntrustedList, bool const PromptUser);
a3f1d60c 18
63ff4208 19APT_PUBLIC bool AcquireRun(pkgAcquire &Fetcher, int const PulseInterval, bool * const Failure, bool * const TransientNetworkFailure);
866893a6 20
f6777222 21bool CheckFreeSpaceBeforeDownload(std::string const &Dir, unsigned long long FetchBytes);
9c81f8de 22
2b0660b5
DK
23class APT_PUBLIC aptAcquireWithTextStatus : public pkgAcquire
24{
25 AcqTextStatus Stat;
26public:
27 aptAcquireWithTextStatus();
28};
29
9055d5e6
DK
30class CommandLine;
31
32APT_PUBLIC bool DoDownload(CommandLine &CmdL);
33APT_PUBLIC bool DoChangelog(CommandLine &CmdL);
34
35APT_PUBLIC bool DoClean(CommandLine &CmdL);
36APT_PUBLIC bool DoAutoClean(CommandLine &CmdL);
37
866893a6 38#endif