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

#include <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 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 ()
 

Static Public Member Functions

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

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
 

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 49 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 55 of file refresh.cc.

◆ rawCachePath()

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

Definition at line 61 of file refresh.cc.

◆ targetDir()

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

Definition at line 67 of file refresh.cc.

◆ zyppContext()

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

Definition at line 73 of file refresh.cc.

◆ repoInfo() [1/2]

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

Definition at line 79 of file refresh.cc.

◆ repoInfo() [2/2]

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

Definition at line 85 of file refresh.cc.

◆ repoManagerOptions()

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

Definition at line 91 of file refresh.cc.

◆ policy()

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

Definition at line 97 of file refresh.cc.

◆ setPolicy()

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

Definition at line 103 of file refresh.cc.

◆ pluginRepoverification()

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

Definition at line 109 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 115 of file refresh.cc.

◆ probedType()

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

Definition at line 125 of file refresh.cc.

◆ sigProbedTypeChanged()

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

Definition at line 131 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
Repository metadata verification plugin

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: