libzypp 17.37.17
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
21
22namespace zypp::media {
23 class TransferSettings;
24}
25
26namespace zypp::internal
27{
28
36 {
37 public:
38
40 void executeRequest(zyppng::NetworkRequestRef &req, callback::SendReport<media::DownloadProgressReport> *report = nullptr );
41
42 zyppng::SignalProxy<void( const zypp::Url &url, media::TransferSettings &settings, const std::string &availAuthTypes, bool firstTry, bool &canContinue )> sigAuthRequired() {
43 return _sigAuthRequired;
44 }
45
46 protected:
47 zyppng::Signal<void( const zypp::Url &url, media::TransferSettings &settings, const std::string &availAuthTypes, bool firstTry, bool &canContinue )> _sigAuthRequired;
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
Url manipulation class.
Definition Url.h:93
void executeRequest(zyppng::NetworkRequestRef &req, callback::SendReport< media::DownloadProgressReport > *report=nullptr)
zyppng::NetworkRequestDispatcherRef _nwDispatcher
zyppng::Signal< void(const zypp::Url &url, media::TransferSettings &settings, const std::string &availAuthTypes, bool firstTry, bool &canContinue)> _sigAuthRequired
zyppng::SignalProxy< void(const zypp::Url &url, media::TransferSettings &settings, const std::string &availAuthTypes, bool firstTry, bool &canContinue)> sigAuthRequired()
Holds transfer setting.
Url details namespace.
Definition UrlBase.cc:58
#define ZYPP_FWD_DECL_TYPE_WITH_REFS(T)
Definition zyppglobal.h:126