libzypp
12.16.5
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
libzypp
Welcome to libzypp
Code Pitfalls - Frequently made mistakes
Code Snippets
Environment Variables
Testing for provided features.
Notes on revisions
Extending ZYpp: Plugins and Hooks
Services
Solver - Vendor protection
Writing and tunning testcases
Libzypp and threads
User data as transaction id
Todo List
Deprecated List
Modules
Namespaces
Classes
Files
File List
zypp
base
media
misc
parser
pool
repo
sat
solver
target
thread
ui
url
ws
zypp_detail
APIConfig.h
Arch.cc
Arch.h
AutoDispose.h
Bit.h
ByteCount.cc
ByteCount.h
Callback.h
Capabilities.cc
Capabilities.h
Capability.cc
Capability.h
CapMatch.cc
CapMatch.h
Changelog.cc
Changelog.h
CheckSum.cc
CheckSum.h
CountryCode.cc
CountryCode.h
Date.cc
Date.h
Dep.cc
Dep.h
Digest.cc
Digest.h
DiskUsage.cc
DiskUsage.h
DiskUsageCounter.cc
DiskUsageCounter.h
DownloadMode.cc
DownloadMode.h
Edition.cc
Edition.h
ExternalProgram.cc
ExternalProgram.h
Fetcher.cc
Fetcher.h
FileChecker.cc
FileChecker.h
Filter.h
Glob.cc
Glob.h
HistoryLog.cc
HistoryLog.h
HistoryLogData.cc
HistoryLogData.h
IdString.cc
IdString.h
IdStringType.h
InstanceId.cc
InstanceId.h
KeyContext.h
KeyRing.cc
KeyRing.h
KVMap.h
LanguageCode.cc
LanguageCode.h
Locale.cc
Locale.h
Locks.cc
Locks.h
ManagedFile.h
MediaProducts.cc
MediaProducts.h
MediaSetAccess.cc
MediaSetAccess.h
Misc.h
OnMediaLocation.cc
OnMediaLocation.h
Package.cc
Package.h
PackageKeyword.h
Patch.cc
Patch.h
PathInfo.cc
PathInfo.h
Pathname.cc
Pathname.h
Pattern.cc
Pattern.h
PluginFrame.cc
PluginFrame.h
PluginFrameException.cc
PluginFrameException.h
PluginScript.cc
PluginScript.h
PluginScriptException.cc
PluginScriptException.h
PoolItem.cc
PoolItem.h
PoolItemBest.cc
PoolItemBest.h
PoolQuery.cc
PoolQuery.h
PoolQueryResult.cc
PoolQueryResult.h
PoolQueryUtil.tcc
ProblemSolution.cc
ProblemSolution.h
ProblemTypes.h
Product.cc
Product.h
ProgressData.cc
ProgressData.h
ProvideFilePolicy.cc
ProvideFilePolicy.h
PublicKey.cc
PublicKey.h
Range.cc
Range.h
Rel.cc
Rel.h
RelCompare.h
RepoInfo.cc
RepoInfo.h
RepoManager.cc
RepoManager.h
Repository.cc
Repository.h
RepoStatus.cc
RepoStatus.h
ResFilters.h
ResKind.cc
ResKind.h
ResObject.cc
ResObject.h
ResObjects.h
Resolvable.cc
Resolvable.h
Resolver.cc
Resolver.h
ResolverProblem.cc
ResolverProblem.h
ResPool.cc
ResPool.h
ResPoolProxy.cc
ResPoolProxy.h
ResStatus.cc
ResStatus.h
ResTraits.h
ServiceInfo.cc
ServiceInfo.h
Signature.cc
Signature.h
SrcPackage.cc
SrcPackage.h
SysContent.cc
SysContent.h
Target.cc
Target.h
TmpPath.cc
TmpPath.h
TriBool.h
Url.cc
Url.h
Vendor.h
VendorAttr.cc
VendorAttr.h
VendorSupportOptions.cc
VendorSupportOptions.h
ZConfig.cc
ZConfig.h
ZYpp.cc
ZYpp.h
ZYppCallbacks.h
ZYppCommit.h
ZYppCommitPolicy.cc
ZYppCommitPolicy.h
ZYppCommitResult.cc
ZYppCommitResult.h
ZYppFactory.cc
ZYppFactory.h
File Members
ZConfig.h
Go to the documentation of this file.
1
/*---------------------------------------------------------------------\
2
| ____ _ __ __ ___ |
3
| |__ / \ / / . \ . \ |
4
| / / \ V /| _/ _/ |
5
| / /__ | | | | | | |
6
| /_____||_| |_| |_| |
7
| |
8
\---------------------------------------------------------------------*/
12
#ifndef ZYPP_ZCONFIG_H
13
#define ZYPP_ZCONFIG_H
14
15
#include <iosfwd>
16
#include <set>
17
#include <string>
18
19
#include "
zypp/APIConfig.h
"
20
#include "
zypp/base/NonCopyable.h
"
21
#include "
zypp/base/PtrTypes.h
"
22
23
#include "
zypp/Arch.h
"
24
#include "
zypp/Locale.h
"
25
#include "
zypp/Pathname.h
"
26
#include "
zypp/IdString.h
"
27
28
#include "
zypp/DownloadMode.h
"
29
#include "
zypp/target/rpm/RpmFlags.h
"
30
32
namespace
zypp
33
{
34
36
//
37
// CLASS NAME : ZConfig
38
//
58
class
ZConfig
:
private
base::NonCopyable
59
{
60
public
:
61
63
static
ZConfig
&
instance
();
64
66
std::ostream &
about
( std::ostream & str )
const
;
67
68
public
:
69
73
Pathname
systemRoot
()
const
;
74
75
public
:
76
78
static
Arch
defaultSystemArchitecture
();
79
81
Arch
systemArchitecture
()
const
;
82
89
void
setSystemArchitecture
(
const
Arch
& arch_r );
90
92
void
resetSystemArchitecture
()
93
{
setSystemArchitecture
(
defaultSystemArchitecture
() ); }
94
95
public
:
98
static
Locale
defaultTextLocale
();
99
102
Locale
textLocale
()
const
;
103
105
void
setTextLocale
(
const
Locale
& locale_r );
106
108
void
resetTextLocale
()
109
{
setTextLocale
(
defaultTextLocale
() ); }
110
111
public
:
117
bool
hasUserData
()
const
;
118
120
std::string
userData
()
const
;
121
126
bool
setUserData
(
const
std::string & str_r );
128
129
public
:
134
Pathname
repoCachePath
()
const
;
135
140
Pathname
repoMetadataPath
()
const
;
141
146
Pathname
repoSolvfilesPath
()
const
;
147
152
Pathname
repoPackagesPath
()
const
;
153
158
Pathname
configPath
()
const
;
159
164
Pathname
knownReposPath
()
const
;
165
170
Pathname
knownServicesPath
()
const
;
171
177
bool
repo_add_probe
()
const
;
178
182
unsigned
repo_refresh_delay
()
const
;
183
187
LocaleSet
repoRefreshLocales
()
const
;
188
194
bool
repoLabelIsAlias
()
const
;
195
203
void
repoLabelIsAlias
(
bool
yesno_r );
204
208
long
download_max_concurrent_connections
()
const
;
209
214
long
download_min_download_speed
()
const
;
215
219
long
download_max_download_speed
()
const
;
220
224
long
download_max_silent_tries
()
const
;
225
229
long
download_transfer_timeout
()
const
;
230
231
235
bool
download_use_deltarpm
()
const
;
236
241
bool
download_use_deltarpm_always
()
const
;
242
247
bool
download_media_prefer_download
()
const
;
249
bool
download_media_prefer_volatile
()
const
250
{
return
!
download_media_prefer_download
(); }
254
void
set_download_media_prefer_download
(
bool
yesno_r );
258
void
set_default_download_media_prefer_download
();
259
263
DownloadMode
commit_downloadMode
()
const
;
264
269
Pathname
vendorPath
()
const
;
270
274
bool
solver_onlyRequires
()
const
;
275
280
Pathname
solver_checkSystemFile
()
const
;
281
285
bool
solver_allowVendorChange
()
const
;
286
290
bool
solver_cleandepsOnRemove
()
const
;
291
299
unsigned
solver_upgradeTestcasesToKeep
()
const
;
300
314
bool
solverUpgradeRemoveDroppedPackages
()
const
;
316
void
setSolverUpgradeRemoveDroppedPackages
(
bool
val_r );
318
void
resetSolverUpgradeRemoveDroppedPackages
();
319
326
const
std::set<std::string> &
multiversionSpec
()
const
;
327
void
addMultiversionSpec
(
const
std::string & name_r );
328
void
removeMultiversionSpec
(
const
std::string & name_r );
330
335
Pathname
locksFile
()
const
;
336
340
bool
apply_locks_file
()
const
;
341
345
Pathname
update_dataPath
()
const
;
346
351
Pathname
update_scriptsPath
()
const
;
352
357
Pathname
update_messagesPath
()
const
;
358
362
std::string
updateMessagesNotify
()
const
;
364
void
setUpdateMessagesNotify
(
const
std::string & val_r );
366
void
resetUpdateMessagesNotify
();
368
377
target::rpm::RpmInstFlags
rpmInstallFlags
()
const
;
379
386
Pathname
historyLogFile
()
const
;
387
391
Pathname
credentialsGlobalDir
()
const
;
392
396
Pathname
credentialsGlobalFile
()
const
;
397
406
std::string
distroverpkg
()
const
;
407
413
Pathname
pluginsPath
()
const
;
414
416
public
:
417
class
Impl
;
419
~ZConfig
();
420
private
:
421
friend
class
Impl
;
423
ZConfig
();
425
RW_pointer<Impl, rw_pointer::Scoped<Impl>
>
_pimpl
;
426
};
428
430
}
// namespace zypp
432
#endif // ZYPP_ZCONFIG_H
zypp
ZConfig.h
Generated by
1.8.2