libzypp
17.34.1
|
#include <zypp/ng/repo/refresh.h>
Public Types | |
using | ContextRefType = ZyppContextRefType |
using | ContextType = typename ZyppContextRefType::element_type |
using | ProvideType = typename ContextType::ProvideType |
using | MediaHandle = typename ProvideType::MediaHandle |
using | PluginRepoverification = zypp_private::repo::PluginRepoverification |
![]() | |
using | Ptr = std::shared_ptr< Base > |
using | WeakPtr = std::weak_ptr< Base > |
Public Member Functions | |
ZYPP_DECL_PRIVATE_CONSTR_ARGS (RefreshContext, ZyppContextRefType &&zyppContext, zypp::RepoInfo &&info, zypp::Pathname &&rawCachePath, zypp::filesystem::TmpDir &&tempDir, zypp::RepoManagerOptions &&opts) | |
~RefreshContext () override | |
void | saveToRawCache () |
const zypp::Pathname & | rawCachePath () const |
zypp::Pathname | targetDir () const |
const ZyppContextRefType & | zyppContext () const |
const zypp::RepoInfo & | repoInfo () const |
zypp::RepoInfo & | repoInfo () |
const zypp::RepoManagerOptions & | repoManagerOptions () const |
repo::RawMetadataRefreshPolicy | policy () const |
void | setPolicy (repo::RawMetadataRefreshPolicy newPolicy) |
const std::optional< PluginRepoverification > & | pluginRepoverification () const |
void | setPluginRepoverification (std::optional< PluginRepoverification > pluginRepoverification_r) |
void | setNoPluginRepoverification () |
void | setProbedType (zypp::repo::RepoType rType) |
const std::optional< zypp::repo::RepoType > & | probedType () const |
SignalProxy< void(zypp::repo::RepoType)> | sigProbedTypeChanged () |
![]() | |
Base () | |
virtual | ~Base () |
WeakPtr | parent () const |
void | addChild (const Base::Ptr &child) |
void | removeChild (const Ptr &child) |
const std::unordered_set< Ptr > & | children () const |
std::thread::id | threadId () const |
template<typename T > | |
std::vector< std::weak_ptr< T > > | findChildren () const |
template<typename T > | |
std::shared_ptr< T > | shared_this () const |
template<typename T > | |
std::shared_ptr< T > | shared_this () |
template<typename T > | |
std::weak_ptr< T > | weak_this () const |
template<typename T > | |
std::weak_ptr< T > | weak_this () |
template<typename SenderFunc , typename ReceiverFunc > | |
auto | connect (SenderFunc &&sFun, typename internal::MemberFunction< ReceiverFunc >::ClassType &recv, ReceiverFunc &&rFunc) |
template<typename SenderFunc , typename ReceiverFunc , typename ... Tracker> | |
std::enable_if_t< std::is_member_function_pointer_v< SenderFunc >, connection > | connectFunc (SenderFunc &&sFun, ReceiverFunc &&rFunc, const Tracker &...trackers) |
Static Public Member Functions | |
static expected< repo::RefreshContextRef< ZyppContextRefType > > | create (ZyppContextRefType zyppContext, zypp::RepoInfo info, zypp::RepoManagerOptions opts) |
![]() | |
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) |
Private Member Functions | |
ZYPP_ADD_PRIVATE_CONSTR_HELPER () | |
Private Attributes | |
ZyppContextRefType | _zyppContext |
zypp::RepoInfo | _repoInfo |
zypp::Pathname | _rawCachePath |
zypp::filesystem::TmpDir | _tmpDir |
repo::RawMetadataRefreshPolicy | _policy = repo::RefreshIfNeeded |
std::optional< PluginRepoverification > | _pluginRepoverification |
zypp::RepoManagerOptions | _repoManagerOptions |
std::optional< zypp::repo::RepoType > | _probedType |
Signal< void(zypp::repo::RepoType)> | _sigProbedTypeChanged |
Additional Inherited Members | |
![]() | |
Base (BasePrivate &dd) | |
![]() | |
std::unique_ptr< BasePrivate > | d_ptr |
Context class for all refresh workflow operations of a repo, operating on a local cache and a remote repository, as defined by the zypp::RepoInfo
using zyppng::repo::RefreshContext< ZyppContextRefType >::ContextRefType = ZyppContextRefType |
using zyppng::repo::RefreshContext< ZyppContextRefType >::ContextType = typename ZyppContextRefType::element_type |
using zyppng::repo::RefreshContext< ZyppContextRefType >::ProvideType = typename ContextType::ProvideType |
using zyppng::repo::RefreshContext< ZyppContextRefType >::MediaHandle = typename ProvideType::MediaHandle |
using zyppng::repo::RefreshContext< ZyppContextRefType >::PluginRepoverification = zypp_private::repo::PluginRepoverification |
|
override |
Definition at line 51 of file refresh.cc.
|
private |
|
static |
Definition at line 28 of file refresh.cc.
zyppng::repo::RefreshContext< ZyppContextRefType >::ZYPP_DECL_PRIVATE_CONSTR_ARGS | ( | RefreshContext< ZyppContextRefType > | , |
ZyppContextRefType && | zyppContext, | ||
zypp::RepoInfo && | info, | ||
zypp::Pathname && | rawCachePath, | ||
zypp::filesystem::TmpDir && | tempDir, | ||
zypp::RepoManagerOptions && | opts | ||
) |
void zyppng::repo::RefreshContext< ZyppContextRefType >::saveToRawCache | ( | ) |
Definition at line 57 of file refresh.cc.
const zypp::Pathname & zyppng::repo::RefreshContext< ZyppContextRefType >::rawCachePath | ( | ) | const |
Definition at line 63 of file refresh.cc.
zypp::Pathname zyppng::repo::RefreshContext< ZyppContextRefType >::targetDir | ( | ) | const |
Definition at line 69 of file refresh.cc.
const ZyppContextRefType & zyppng::repo::RefreshContext< ZyppContextRefType >::zyppContext | ( | ) | const |
Definition at line 75 of file refresh.cc.
const zypp::RepoInfo & zyppng::repo::RefreshContext< ZyppContextRefType >::repoInfo | ( | ) | const |
Definition at line 81 of file refresh.cc.
zypp::RepoInfo & zyppng::repo::RefreshContext< ZyppContextRefType >::repoInfo | ( | ) |
Definition at line 87 of file refresh.cc.
const zypp::RepoManagerOptions & zyppng::repo::RefreshContext< ZyppContextRefType >::repoManagerOptions | ( | ) | const |
Definition at line 93 of file refresh.cc.
repo::RawMetadataRefreshPolicy zyppng::repo::RefreshContext< ZyppContextRefType >::policy | ( | ) | const |
Definition at line 99 of file refresh.cc.
void zyppng::repo::RefreshContext< ZyppContextRefType >::setPolicy | ( | repo::RawMetadataRefreshPolicy | newPolicy | ) |
Definition at line 105 of file refresh.cc.
const std::optional< typename RefreshContext< ZyppContextRefType >::PluginRepoverification > & zyppng::repo::RefreshContext< ZyppContextRefType >::pluginRepoverification | ( | ) | const |
Definition at line 111 of file refresh.cc.
|
inline |
|
inline |
void zyppng::repo::RefreshContext< ZyppContextRefType >::setProbedType | ( | zypp::repo::RepoType | rType | ) |
Definition at line 117 of file refresh.cc.
const std::optional< zypp::repo::RepoType > & zyppng::repo::RefreshContext< ZyppContextRefType >::probedType | ( | ) | const |
Definition at line 127 of file refresh.cc.
SignalProxy< void(zypp::repo::RepoType)> zyppng::repo::RefreshContext< ZyppContextRefType >::sigProbedTypeChanged | ( | ) |
Definition at line 133 of file refresh.cc.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |