9 #ifndef ZYPP_NG_REPO_REFRESH_INCLUDED 10 #define ZYPP_NG_REPO_REFRESH_INCLUDED 12 #include <zypp-core/zyppng/pipelines/AsyncResult> 13 #include <zypp-core/zyppng/pipelines/Expected> 14 #include <zypp-core/zyppng/base/Signals> 42 template<
typename ZyppContextRefType>
48 using ContextType =
typename ZyppContextRefType::element_type;
94 const RepoManagerRef<ZyppContextRefType> &
repoManager()
const;
122 const std::optional<zypp::repo::RepoType> &
probedType()
const;
RepoManagerRef< ContextRefType > _repoManager
ZYPP_ADD_PRIVATE_CONSTR_HELPER()
Repository metadata verification beyond GPG.
zypp::Pathname targetDir() const
ZYPP_FWD_DECL_TEMPL_TYPE_WITH_REFS_ARG1(RefreshContext, ZyppContextRefType)
void setPluginRepoverification(std::optional< PluginRepoverification > pluginRepoverification_r)
SignalProxy< void(zypp::repo::RepoType)> sigProbedTypeChanged()
const ZyppContextRefType & zyppContext() const
ZyppContextRefType ContextRefType
What is known about a repository.
typename ProvideType::MediaHandle MediaHandle
std::optional< zypp::repo::RepoType > _probedType
const zypp::RepoInfo & repoInfo() const
ZYPP_DECL_PRIVATE_CONSTR_ARGS(RefreshContext, ZyppContextRefType &&zyppContext, zypp::RepoInfo &&info, zypp::Pathname &&rawCachePath, zypp::filesystem::TmpDir &&tempDir, RepoManagerRef< ContextRefType > &&repoManager)
typename ZyppContextRefType::element_type ContextType
const zypp::RepoManagerOptions & repoManagerOptions() const
static expected< repo::RefreshContextRef< ZyppContextRefType > > create(ZyppContextRefType zyppContext, zypp::RepoInfo info, RepoManagerRef< ContextRefType > repoManager)
const zypp::Pathname & rawCachePath() const
zypp::filesystem::TmpDir _tmpDir
std::optional< PluginRepoverification > _pluginRepoverification
ZYPP_FWD_DECL_TYPE_WITH_REFS(Context)
zypp::Pathname _rawCachePath
Provide a new empty temporary directory and recursively delete it when no longer needed.
RawMetadataRefreshPolicy policy() const
ZYPP_FWD_DECL_REFS(SyncDownloadContext)
typename ContextType::ProvideType ProvideType
Signal< void(zypp::repo::RepoType)> _sigProbedTypeChanged
~RefreshContext() override
const std::optional< zypp::repo::RepoType > & probedType() const
void setProbedType(zypp::repo::RepoType rType)
void setNoPluginRepoverification()
repo::RawMetadataRefreshPolicy _policy
zypp_private::repo::PluginRepoverification PluginRepoverification
RefreshCheckStatus
Possibly return state of RepoManager::checkIfToRefreshMetadata function.
ZyppContextRefType _zyppContext
ZYPP_ENABLE_MAYBE_ASYNC_MIXIN((std::is_same_v< ZyppContextRefType, ContextRef >))
const RepoManagerRef< ZyppContextRefType > & repoManager() const
void setPolicy(RawMetadataRefreshPolicy newPolicy)
Repository type enumeration.
const std::optional< PluginRepoverification > & pluginRepoverification() const