libzypp 17.36.1
|
#include <zypp-media/ng/provide.h>
Public Types | |
enum | Action { ABORT , RETRY , SKIP } |
using | MediaHandle = ProvideMediaHandle |
using | LazyMediaHandle = zyppng::LazyMediaHandle<Provide> |
using | Res = ProvideRes |
using | MediaChangeAction = std::optional<Action> |
![]() | |
using | Ptr = std::shared_ptr<Base> |
using | WeakPtr = std::weak_ptr<Base> |
Static Public Member Functions | |
static ProvideRef | create (const zypp::Pathname &workDir="") |
static auto | copyResultToDest (ProvideRef provider, const zypp::Pathname &targetPath) |
![]() | |
template<typename Obj , typename Functor > | |
static decltype(auto) | make_base_slot (Obj *o, Functor &&f) |
template<typename SenderFunc , typename ReceiverFunc > | |
static auto | connect (typename internal::MemberFunction< SenderFunc >::ClassType &s, SenderFunc &&sFun, typename internal::MemberFunction< ReceiverFunc >::ClassType &recv, ReceiverFunc &&rFunc) |
template<typename SenderFunc , typename ReceiverFunc , typename ... Tracker> | |
static auto | connectFunc (typename internal::MemberFunction< SenderFunc >::ClassType &s, SenderFunc &&sFun, ReceiverFunc &&rFunc, const Tracker &...trackers) |
Public Attributes | |
SignalProxy< MediaChangeAction(const std::string &queueRef, const std::string &label, const int32_t mediaNr, const std::vector< std::string > &devices, const std::optional< std::string > &desc) | sigMediaChangeRequested )() |
SignalProxy< std::optional< zypp::media::AuthData >(const zypp::Url &reqUrl, const std::string &triedUsername, const std::map< std::string, std::string > &extraValues) | sigAuthRequired )() |
Private Member Functions | |
Provide (const zypp::Pathname &workDir) | |
Friends | |
template<class T > | |
class | ProvidePromise |
class | ProvideItem |
class | ProvideMediaHandle |
class | ProvideStatus |
Additional Inherited Members | |
![]() | |
Base (BasePrivate &dd) | |
![]() | |
std::unique_ptr< BasePrivate > | d_ptr |
using zyppng::Provide::MediaChangeAction = std::optional<Action> |
|
private |
Definition at line 996 of file provide.cc.
|
static |
Definition at line 1002 of file provide.cc.
expected< Provide::LazyMediaHandle > zyppng::Provide::prepareMedia | ( | const std::vector< zypp::Url > & | urls, |
const ProvideMediaSpec & | request ) |
Prepares a lazy handle, that is attached only if a actual provide() is called onto it. Use this to delay a media attach until its used the first time
Definition at line 1007 of file provide.cc.
expected< Provide::LazyMediaHandle > zyppng::Provide::prepareMedia | ( | const zypp::Url & | url, |
const ProvideMediaSpec & | request ) |
Definition at line 1018 of file provide.cc.
AsyncOpRef< expected< Provide::MediaHandle > > zyppng::Provide::attachMediaIfNeeded | ( | LazyMediaHandle | lazyHandle | ) |
Definition at line 1023 of file provide.cc.
AsyncOpRef< expected< Provide::MediaHandle > > zyppng::Provide::attachMedia | ( | const std::vector< zypp::Url > & | urls, |
const ProvideMediaSpec & | request ) |
Definition at line 1043 of file provide.cc.
AsyncOpRef< expected< Provide::MediaHandle > > zyppng::Provide::attachMedia | ( | const zypp::Url & | url, |
const ProvideMediaSpec & | request ) |
Definition at line 1038 of file provide.cc.
AsyncOpRef< expected< ProvideRes > > zyppng::Provide::provide | ( | const std::vector< zypp::Url > & | urls, |
const ProvideFileSpec & | request ) |
Definition at line 1066 of file provide.cc.
AsyncOpRef< expected< ProvideRes > > zyppng::Provide::provide | ( | const zypp::Url & | url, |
const ProvideFileSpec & | request ) |
Definition at line 1074 of file provide.cc.
AsyncOpRef< expected< ProvideRes > > zyppng::Provide::provide | ( | const MediaHandle & | attachHandle, |
const zypp::Pathname & | fileName, | ||
const ProvideFileSpec & | request ) |
Definition at line 1079 of file provide.cc.
AsyncOpRef< expected< ProvideRes > > zyppng::Provide::provide | ( | const LazyMediaHandle & | attachHandle, |
const zypp::Pathname & | fileName, | ||
const ProvideFileSpec & | request ) |
Definition at line 1108 of file provide.cc.
zyppng::AsyncOpRef< zyppng::expected< zypp::CheckSum > > zyppng::Provide::checksumForFile | ( | const zypp::Pathname & | p, |
const std::string & | algorithm ) |
Schedules a job to calculate the checksum for the given file
Definition at line 1120 of file provide.cc.
AsyncOpRef< expected< zypp::ManagedFile > > zyppng::Provide::copyFile | ( | const zypp::Pathname & | source, |
const zypp::Pathname & | target ) |
Schedules a copy job to copy a file from source to target
Definition at line 1140 of file provide.cc.
AsyncOpRef< expected< zypp::ManagedFile > > zyppng::Provide::copyFile | ( | ProvideRes && | source, |
const zypp::Pathname & | target ) |
Definition at line 1153 of file provide.cc.
void zyppng::Provide::start | ( | ) |
Definition at line 1166 of file provide.cc.
void zyppng::Provide::setWorkerPath | ( | const zypp::Pathname & | path | ) |
Definition at line 1175 of file provide.cc.
bool zyppng::Provide::isRunning | ( | ) | const |
bool zyppng::Provide::ejectDevice | ( | const std::string & | queueRef, |
const std::string & | device ) |
Definition at line 1180 of file provide.cc.
void zyppng::Provide::setStatusTracker | ( | ProvideStatusRef | tracker | ) |
Definition at line 1188 of file provide.cc.
const zypp::Pathname & zyppng::Provide::providerWorkdir | ( | ) | const |
Definition at line 1193 of file provide.cc.
const zypp::media::CredManagerOptions & zyppng::Provide::credManangerOptions | ( | ) | const |
Definition at line 1198 of file provide.cc.
void zyppng::Provide::setCredManagerOptions | ( | const zypp::media::CredManagerOptions & | opt | ) |
Definition at line 1204 of file provide.cc.
SignalProxy< void()> zyppng::Provide::sigIdle | ( | ) |
Definition at line 1209 of file provide.cc.
|
inlinestatic |
|
friend |
|
friend |
|
friend |
|
friend |
SignalProxy< MediaChangeAction(const std::string &queueRef, const std::string &label, const int32_t mediaNr, const std::vector< std::string > &devices, const std::optional< std::string > &desc) zyppng::Provide::sigMediaChangeRequested) () |
Connect to this signal to handle media change requests
SignalProxy< std::optional< zypp::media::AuthData >(const zypp::Url &reqUrl, const std::string &triedUsername, const std::map< std::string, std::string > &extraValues) zyppng::Provide::sigAuthRequired) () |
This signal is emitted in case a request signaled a need to get Auth Info and nothing was found in the zypp::media::CredentialManager.