libzypp 17.32.5
zyppng::repo::RefreshContext< ZyppContextRefType > Class Template Reference

#include <zypp/ng/repo/refresh.h>

Inheritance diagram for zyppng::repo::RefreshContext< ZyppContextRefType >:

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
 
- Public Types inherited from zyppng::Base
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::PathnamerawCachePath () const
 
zypp::Pathname targetDir () const
 
const ZyppContextRefType & zyppContext () const
 
const zypp::RepoInforepoInfo () const
 
zypp::RepoInforepoInfo ()
 
const zypp::RepoManagerOptionsrepoManagerOptions () 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 ()
 
- Public Member Functions inherited from zyppng::Base
 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 >, connectionconnectFunc (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)
 
- Static Public Member Functions inherited from zyppng::Base
template<typename Obj , typename Functor >
static decltype(automake_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

- Protected Member Functions inherited from zyppng::Base
 Base (BasePrivate &dd)
 
- Protected Attributes inherited from zyppng::Base
std::unique_ptr< BasePrivated_ptr
 

Detailed Description

template<typename ZyppContextRefType>
class zyppng::repo::RefreshContext< ZyppContextRefType >

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

Definition at line 53 of file refresh.h.

Member Typedef Documentation

◆ ContextRefType

template<typename ZyppContextRefType >
using zyppng::repo::RefreshContext< ZyppContextRefType >::ContextRefType = ZyppContextRefType

Definition at line 56 of file refresh.h.

◆ ContextType

template<typename ZyppContextRefType >
using zyppng::repo::RefreshContext< ZyppContextRefType >::ContextType = typename ZyppContextRefType::element_type

Definition at line 57 of file refresh.h.

◆ ProvideType

template<typename ZyppContextRefType >
using zyppng::repo::RefreshContext< ZyppContextRefType >::ProvideType = typename ContextType::ProvideType

Definition at line 58 of file refresh.h.

◆ MediaHandle

template<typename ZyppContextRefType >
using zyppng::repo::RefreshContext< ZyppContextRefType >::MediaHandle = typename ProvideType::MediaHandle

Definition at line 59 of file refresh.h.

◆ PluginRepoverification

template<typename ZyppContextRefType >
using zyppng::repo::RefreshContext< ZyppContextRefType >::PluginRepoverification = zypp_private::repo::PluginRepoverification

Definition at line 60 of file refresh.h.

Constructor & Destructor Documentation

◆ ~RefreshContext()

template<typename ZyppContextRefType >
zyppng::repo::RefreshContext< ZyppContextRefType >::~RefreshContext ( )
override

Definition at line 56 of file refresh.cc.

Member Function Documentation

◆ ZYPP_ADD_PRIVATE_CONSTR_HELPER()

template<typename ZyppContextRefType >
zyppng::repo::RefreshContext< ZyppContextRefType >::ZYPP_ADD_PRIVATE_CONSTR_HELPER ( )
private

◆ create()

template<typename ZyppContextRefType >
expected< RefreshContextRef< ZyppContextRefType > > zyppng::repo::RefreshContext< ZyppContextRefType >::create ( ZyppContextRefType zyppContext,
zypp::RepoInfo info,
zypp::RepoManagerOptions opts )
static

Definition at line 28 of file refresh.cc.

◆ ZYPP_DECL_PRIVATE_CONSTR_ARGS()

template<typename ZyppContextRefType >
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 )

◆ saveToRawCache()

template<typename ZyppContextRefType >
void zyppng::repo::RefreshContext< ZyppContextRefType >::saveToRawCache ( )

Definition at line 62 of file refresh.cc.

◆ rawCachePath()

template<typename ZyppContextRefType >
const zypp::Pathname & zyppng::repo::RefreshContext< ZyppContextRefType >::rawCachePath ( ) const

Definition at line 77 of file refresh.cc.

◆ targetDir()

template<typename ZyppContextRefType >
zypp::Pathname zyppng::repo::RefreshContext< ZyppContextRefType >::targetDir ( ) const

Definition at line 83 of file refresh.cc.

◆ zyppContext()

template<typename ZyppContextRefType >
const ZyppContextRefType & zyppng::repo::RefreshContext< ZyppContextRefType >::zyppContext ( ) const

Definition at line 89 of file refresh.cc.

◆ repoInfo() [1/2]

template<typename ZyppContextRefType >
const zypp::RepoInfo & zyppng::repo::RefreshContext< ZyppContextRefType >::repoInfo ( ) const

Definition at line 95 of file refresh.cc.

◆ repoInfo() [2/2]

template<typename ZyppContextRefType >
zypp::RepoInfo & zyppng::repo::RefreshContext< ZyppContextRefType >::repoInfo ( )

Definition at line 101 of file refresh.cc.

◆ repoManagerOptions()

template<typename ZyppContextRefType >
const zypp::RepoManagerOptions & zyppng::repo::RefreshContext< ZyppContextRefType >::repoManagerOptions ( ) const

Definition at line 107 of file refresh.cc.

◆ policy()

template<typename ZyppContextRefType >
repo::RawMetadataRefreshPolicy zyppng::repo::RefreshContext< ZyppContextRefType >::policy ( ) const

Definition at line 113 of file refresh.cc.

◆ setPolicy()

template<typename ZyppContextRefType >
void zyppng::repo::RefreshContext< ZyppContextRefType >::setPolicy ( repo::RawMetadataRefreshPolicy newPolicy)

Definition at line 119 of file refresh.cc.

◆ pluginRepoverification()

template<typename ZyppContextRefType >
const std::optional< typename RefreshContext< ZyppContextRefType >::PluginRepoverification > & zyppng::repo::RefreshContext< ZyppContextRefType >::pluginRepoverification ( ) const

Definition at line 125 of file refresh.cc.

◆ setPluginRepoverification()

template<typename ZyppContextRefType >
void zyppng::repo::RefreshContext< ZyppContextRefType >::setPluginRepoverification ( std::optional< PluginRepoverification > pluginRepoverification_r)
inline

Definition at line 81 of file refresh.h.

◆ setNoPluginRepoverification()

template<typename ZyppContextRefType >
void zyppng::repo::RefreshContext< ZyppContextRefType >::setNoPluginRepoverification ( )
inline

Definition at line 84 of file refresh.h.

◆ setProbedType()

template<typename ZyppContextRefType >
void zyppng::repo::RefreshContext< ZyppContextRefType >::setProbedType ( zypp::repo::RepoType rType)

Definition at line 131 of file refresh.cc.

◆ probedType()

template<typename ZyppContextRefType >
const std::optional< zypp::repo::RepoType > & zyppng::repo::RefreshContext< ZyppContextRefType >::probedType ( ) const

Definition at line 141 of file refresh.cc.

◆ sigProbedTypeChanged()

template<typename ZyppContextRefType >
SignalProxy< void(zypp::repo::RepoType)> zyppng::repo::RefreshContext< ZyppContextRefType >::sigProbedTypeChanged ( )

Definition at line 147 of file refresh.cc.

Member Data Documentation

◆ _zyppContext

template<typename ZyppContextRefType >
ZyppContextRefType zyppng::repo::RefreshContext< ZyppContextRefType >::_zyppContext
private

Definition at line 92 of file refresh.h.

◆ _repoInfo

template<typename ZyppContextRefType >
zypp::RepoInfo zyppng::repo::RefreshContext< ZyppContextRefType >::_repoInfo
private

Definition at line 93 of file refresh.h.

◆ _rawCachePath

template<typename ZyppContextRefType >
zypp::Pathname zyppng::repo::RefreshContext< ZyppContextRefType >::_rawCachePath
private

Definition at line 94 of file refresh.h.

◆ _tmpDir

template<typename ZyppContextRefType >
zypp::filesystem::TmpDir zyppng::repo::RefreshContext< ZyppContextRefType >::_tmpDir
private

Definition at line 95 of file refresh.h.

◆ _policy

template<typename ZyppContextRefType >
repo::RawMetadataRefreshPolicy zyppng::repo::RefreshContext< ZyppContextRefType >::_policy = repo::RefreshIfNeeded
private

Definition at line 96 of file refresh.h.

◆ _pluginRepoverification

template<typename ZyppContextRefType >
std::optional<PluginRepoverification> zyppng::repo::RefreshContext< ZyppContextRefType >::_pluginRepoverification
private
See also
plugin-repoverification

Definition at line 97 of file refresh.h.

◆ _repoManagerOptions

template<typename ZyppContextRefType >
zypp::RepoManagerOptions zyppng::repo::RefreshContext< ZyppContextRefType >::_repoManagerOptions
private

Definition at line 98 of file refresh.h.

◆ _probedType

template<typename ZyppContextRefType >
std::optional<zypp::repo::RepoType> zyppng::repo::RefreshContext< ZyppContextRefType >::_probedType
private

Definition at line 100 of file refresh.h.

◆ _sigProbedTypeChanged

template<typename ZyppContextRefType >
Signal<void(zypp::repo::RepoType)> zyppng::repo::RefreshContext< ZyppContextRefType >::_sigProbedTypeChanged
private

Definition at line 101 of file refresh.h.


The documentation for this class was generated from the following files: