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>
15#include <zypp-core/fs/TmpPath.h>
52 template<
typename ZyppContextRefType>
57 using ContextType =
typename ZyppContextRefType::element_type;
88 const std::optional<zypp::repo::RepoType> &
probedType()
const;
What is known about a repository.
Provide a new empty temporary directory and recursively delete it when no longer needed.
Repository metadata verification beyond GPG.
typename ZyppContextRefType::element_type ContextType
const zypp::RepoManagerOptions & repoManagerOptions() const
static expected< repo::RefreshContextRef< ZyppContextRefType > > create(ZyppContextRefType zyppContext, zypp::RepoInfo info, zypp::RepoManagerOptions opts)
~RefreshContext() override
void setProbedType(zypp::repo::RepoType rType)
const std::optional< zypp::repo::RepoType > & probedType() const
zypp::Pathname targetDir() const
std::optional< PluginRepoverification > _pluginRepoverification
std::optional< zypp::repo::RepoType > _probedType
zypp::filesystem::TmpDir _tmpDir
repo::RawMetadataRefreshPolicy policy() const
typename ContextType::ProvideType ProvideType
const std::optional< PluginRepoverification > & pluginRepoverification() const
ZYPP_ADD_PRIVATE_CONSTR_HELPER()
void setPolicy(repo::RawMetadataRefreshPolicy newPolicy)
ZYPP_DECL_PRIVATE_CONSTR_ARGS(RefreshContext, ZyppContextRefType &&zyppContext, zypp::RepoInfo &&info, zypp::Pathname &&rawCachePath, zypp::filesystem::TmpDir &&tempDir, zypp::RepoManagerOptions &&opts)
void setPluginRepoverification(std::optional< PluginRepoverification > pluginRepoverification_r)
const ZyppContextRefType & zyppContext() const
repo::RawMetadataRefreshPolicy _policy
ZyppContextRefType _zyppContext
const zypp::RepoInfo & repoInfo() const
const zypp::Pathname & rawCachePath() const
Signal< void(zypp::repo::RepoType)> _sigProbedTypeChanged
void setNoPluginRepoverification()
zypp::Pathname _rawCachePath
SignalProxy< void(zypp::repo::RepoType)> sigProbedTypeChanged()
zypp::RepoManagerOptions _repoManagerOptions
typename ProvideType::MediaHandle MediaHandle
ZyppContextRefType ContextRefType
RefreshCheckStatus
Possibly return state of checkIfRefreshMEtadata function.
@ REFRESH_NEEDED
refresh is needed
@ REPO_CHECK_DELAYED
refresh is delayed due to settings
@ REPO_UP_TO_DATE
repository not changed
ZYPP_FWD_DECL_REFS(SyncDownloadContext)
@ RefreshIfNeededIgnoreDelay
ZYPP_FWD_DECL_TEMPL_TYPE_WITH_REFS_ARG1(RefreshContext, ZyppContextRefType)
ZYPP_FWD_DECL_TYPE_WITH_REFS(Context)
Repository type enumeration.