libzypp  17.37.5
MediaNetworkRequestExecutor.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
9 #ifndef ZYPP_MEDIA_DETAIL_MEDIANETWORKREQUEST_EXECUTOR_INCLUDED
10 #define ZYPP_MEDIA_DETAIL_MEDIANETWORKREQUEST_EXECUTOR_INCLUDED
11 
12 #include <zypp/ZYppCallbacks.h>
15 
16 namespace zyppng {
18  ZYPP_FWD_DECL_TYPE_WITH_REFS(NetworkRequestDispatcher);
20 }
21 
22 namespace zypp::media {
23  class TransferSettings;
24 }
25 
26 namespace zypp::internal
27 {
28 
36  {
37  public:
38 
40  void executeRequest(zyppng::NetworkRequestRef &req, callback::SendReport<media::DownloadProgressReport> *report = nullptr );
41 
43  return _sigAuthRequired;
44  }
45 
46  protected:
48  zyppng::EventDispatcherRef _evDispatcher; //< keep the ev dispatcher alive as long as MediaCurl2 is
49  zyppng::NetworkRequestDispatcherRef _nwDispatcher; //< keep the dispatcher alive as well
50  };
51 
52 }
53 
54 
55 #endif
zyppng::Signal< void(const zypp::Url &url, media::TransferSettings &settings, const std::string &availAuthTypes, bool firstTry, bool &canContinue)> _sigAuthRequired
Holds transfer setting.
zyppng::SignalProxy< void(const zypp::Url &url, media::TransferSettings &settings, const std::string &availAuthTypes, bool firstTry, bool &canContinue)> sigAuthRequired()
void executeRequest(zyppng::NetworkRequestRef &req, callback::SendReport< media::DownloadProgressReport > *report=nullptr)
zyppng::NetworkRequestDispatcherRef _nwDispatcher
ZYPP_FWD_DECL_TYPE_WITH_REFS(EventDispatcher)