libzypp
12.16.5
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
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