12 #ifndef ZYPP_ZCONFIG_H 13 #define ZYPP_ZCONFIG_H 76 std::ostream & about( std::ostream &
str )
const;
80 long lockTimeout()
const;
97 void setRepoManagerRoot (
const Pathname &root );
104 void announceSystemRoot(
const Pathname & root_r );
109 static Arch defaultSystemArchitecture();
112 Arch systemArchitecture()
const;
120 void setSystemArchitecture(
const Arch & arch_r );
124 { setSystemArchitecture( defaultSystemArchitecture() ); }
129 static Locale defaultTextLocale();
133 Locale textLocale()
const;
136 void setTextLocale(
const Locale & locale_r );
140 { setTextLocale( defaultTextLocale() ); }
148 bool hasUserData()
const;
151 std::string userData()
const;
157 bool setUserData(
const std::string & str_r );
170 void setRepoCachePath (
const Pathname &path_r );
187 void setRepoMetadataPath (
const Pathname &path_r );
198 void setRepoSolvfilesPath (
const Pathname &path_r );
210 void setRepoPackagesPath (
const Pathname &path_r );
245 void setGeoipEnabled(
bool enable =
true );
250 bool geoipEnabled ()
const;
262 const std::vector<std::string> geoipHostnames ()
const;
276 bool repo_add_probe()
const;
281 unsigned repo_refresh_delay()
const;
293 bool repoLabelIsAlias()
const;
302 void repoLabelIsAlias(
bool yesno_r );
307 long download_max_concurrent_connections()
const;
313 long download_min_download_speed()
const;
318 long download_max_download_speed()
const;
323 long download_max_silent_tries()
const;
328 long download_transfer_timeout()
const;
334 bool download_use_deltarpm()
const;
340 bool download_use_deltarpm_always()
const;
346 bool download_media_prefer_download()
const;
349 {
return ! download_media_prefer_download(); }
353 void set_download_media_prefer_download(
bool yesno_r );
357 void set_default_download_media_prefer_download();
363 Pathname download_mediaMountdir()
const;
365 void set_download_mediaMountdir(
Pathname newval_r );
367 void set_default_download_mediaMountdir();
387 bool gpgCheck()
const;
391 void setGpgCheck(
bool val_r );
392 void setRepoGpgCheck(
TriBool val_r );
393 void setPkgGpgCheck(
TriBool val_r );
395 void resetGpgCheck();
396 void resetRepoGpgCheck();
397 void resetPkgGpgCheck();
414 bool solver_onlyRequires()
const;
420 Pathname solver_checkSystemFile()
const;
427 Pathname solver_checkSystemFileDir()
const;
432 bool solver_allowVendorChange()
const;
435 bool solver_dupAllowDowngrade()
const;
438 bool solver_dupAllowNameChange()
const;
441 bool solver_dupAllowArchChange()
const;
444 bool solver_dupAllowVendorChange()
const;
449 bool solver_cleandepsOnRemove()
const;
458 unsigned solver_upgradeTestcasesToKeep()
const;
473 bool solverUpgradeRemoveDroppedPackages()
const;
475 void setSolverUpgradeRemoveDroppedPackages(
bool val_r );
477 void resetSolverUpgradeRemoveDroppedPackages();
489 const std::set<std::string> & multiversionSpec()
const;
490 void multiversionSpec( std::set<std::string> new_r );
491 void clearMultiversionSpec();
492 void addMultiversionSpec(
const std::string & name_r );
493 void removeMultiversionSpec(
const std::string & name_r );
505 bool apply_locks_file()
const;
516 Pathname update_scriptsPath()
const;
521 Pathname update_messagesPath()
const;
531 static Pathname update_scriptsPath();
536 static Pathname update_messagesPath();
542 std::string updateMessagesNotify()
const;
544 void setUpdateMessagesNotify(
const std::string & val_r );
546 void resetUpdateMessagesNotify();
557 target::rpm::RpmInstFlags rpmInstallFlags()
const;
571 Pathname credentialsGlobalDir()
const;
576 Pathname credentialsGlobalFile()
const;
586 std::string distroverpkg()
const;
598 std::string multiversionKernels()
const;
612 void notifyTargetChanged();
618 Pathname builtinRepoCachePath()
const;
620 Pathname builtinRepoMetadataPath()
const;
622 Pathname builtinRepoSolvfilesPath()
const;
624 Pathname builtinRepoPackagesPath()
const;
638 #endif // ZYPP_ZCONFIG_H
boost::logic::tribool TriBool
3-state boolean logic (true, false and indeterminate).
void resetSystemArchitecture()
Reset the zypp system architecture to the default.
ResolverFocus
The resolver's general attitude.
std::unordered_set< Locale > LocaleSet
String related utilities and Regular expression matching.
Provides API related macros.
RW_pointer< Impl, rw_pointer::Scoped< Impl > > _pimpl
Pointer to implementation.
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
Interim helper class to collect global options and settings.
'Language[_Country]' codes.
bool download_media_prefer_volatile() const
Wrapper for const correct access via Smart pointer types.
void resetTextLocale()
Reset the locale for translated texts to the default.
The RepoManager class Provides knowledge and methods to maintain repo settings and metadata for a giv...
Easy-to use interface to the ZYPP dependency resolver.
boost::noncopyable NonCopyable
Ensure derived classes cannot be copied.
DownloadMode
Supported commit download policies.