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;
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.
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
~RefreshContext() override
const RepoManagerRef< SyncContextRef > & repoManager() const
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
RawMetadataRefreshPolicy policy() const
ZYPP_ENABLE_MAYBE_ASYNC_MIXIN((std::is_same_v< ZyppContextRefType, ContextRef >))
typename ContextType::ProvideType ProvideType
const std::optional< PluginRepoverification > & pluginRepoverification() const
static expected< repo::RefreshContextRef< ZyppContextRefType > > create(ZyppContextRefType zyppContext, zypp::RepoInfo info, RepoManagerRef< ContextRefType > repoManager)
ZYPP_ADD_PRIVATE_CONSTR_HELPER()
void setPluginRepoverification(std::optional< PluginRepoverification > pluginRepoverification_r)
void setPolicy(RawMetadataRefreshPolicy newPolicy)
const SyncContextRef & zyppContext() const
repo::RawMetadataRefreshPolicy _policy
SyncContextRef _zyppContext
const zypp::RepoInfo & repoInfo() const
RepoManagerRef< ContextRefType > _repoManager
const zypp::Pathname & rawCachePath() const
zypp_private::repo::PluginRepoverification PluginRepoverification
Signal< void(zypp::repo::RepoType)> _sigProbedTypeChanged
void setNoPluginRepoverification()
zypp::RepoInfo & repoInfo()
zypp::Pathname _rawCachePath
SignalProxy< void(zypp::repo::RepoType)> sigProbedTypeChanged()
typename ProvideType::MediaHandle MediaHandle
ZyppContextRefType ContextRefType
RefreshCheckStatus
Possibly return state of RepoManager::checkIfToRefreshMetadata function.
RefreshContext< ContextRef > AsyncRefreshContext
RefreshContext< SyncContextRef > SyncRefreshContext
zypp::RepoManagerFlags::RefreshCheckStatus RefreshCheckStatus
zypp::RepoManagerFlags::RawMetadataRefreshPolicy RawMetadataRefreshPolicy
Repository type enumeration.
#define ZYPP_FWD_DECL_REFS(T)
#define ZYPP_FWD_DECL_TEMPL_TYPE_WITH_REFS_ARG1(T, TArg1)
#define ZYPP_FWD_DECL_TYPE_WITH_REFS(T)