10 #ifndef ZYPP_SOURCE_YUM_REPOMDFILECOLLECTOR 11 #define ZYPP_SOURCE_YUM_REPOMDFILECOLLECTOR 14 #include <zypp-core/OnMediaLocation> 29 using FinalizeCb = std::function<void ( const OnMediaLocation &file )>;
std::function< void(const OnMediaLocation &file)> FinalizeCb
virtual const Pathname & deltaDir() const =0
Helper filtering the files offered by a RepomdFileReader.
std::unordered_set< Locale > LocaleSet
void addWantedLocale(Locale locale_r)
bool collect(const OnMediaLocation &loc_r, const std::string &typestr_r)
The callback invoked by the RepomdFileReader.
What is known about a repository.
LocaleSet _wantedLocales
Locales do download.
const Pathname & _destDir
virtual const RepoInfo & repoInfo() const =0
NON_COPYABLE(RepomdFileCollector)
NON_MOVABLE(RepomdFileCollector)
RepomdFileCollector(const Pathname &destDir_r)
'Language[_Country]' codes.
bool wantLocale(const Locale &locale_r) const
void finalize(const FinalizeCb &cb)
virtual ~RepomdFileCollector()
std::map< std::string, OnMediaLocation > _wantedFiles