"Fossies" - the Fresh Open Source Software Archive

Member "apt-1.9.4/apt-private/private-download.h" (19 Sep 2019, 1061 Bytes) of package /linux/misc/apt-1.9.4.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "private-download.h" see the Fossies "Dox" file reference documentation.

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