libzypp
11.13.5
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
ZYpp.h
Go to the documentation of this file.
1
/*---------------------------------------------------------------------\
2
| ____ _ __ __ ___ |
3
| |__ / \ / / . \ . \ |
4
| / / \ V /| _/ _/ |
5
| / /__ | | | | | | |
6
| /_____||_| |_| |_| |
7
| |
8
\---------------------------------------------------------------------*/
12
#ifndef ZYPP_ZYPP_H
13
#define ZYPP_ZYPP_H
14
15
#include <iosfwd>
16
17
#include "
zypp/base/ReferenceCounted.h
"
18
#include "
zypp/base/NonCopyable.h
"
19
#include "
zypp/base/PtrTypes.h
"
20
#include "
zypp/APIConfig.h
"
21
22
#include "
zypp/ZConfig.h
"
23
24
#include "
zypp/ZYppCommit.h
"
25
#include "
zypp/ResTraits.h
"
26
27
#include "
zypp/Target.h
"
28
#include "
zypp/Resolver.h
"
29
#include "
zypp/KeyRing.h
"
30
#include "
zypp/DiskUsageCounter.h
"
31
33
namespace
zypp
34
{
35
36
namespace
zypp_detail
37
{
38
class
ZYppImpl;
39
}
40
41
class
ZYppFactory;
42
class
ResPool;
43
class
ResPoolProxy;
44
class
KeyRing;
45
47
//
48
// CLASS NAME : ZYpp
49
//
54
class
ZYpp
:
public
base::ReferenceCounted
,
private
base::NonCopyable
55
{
56
public
:
57
58
typedef
intrusive_ptr<ZYpp>
Ptr
;
59
typedef
intrusive_ptr<const ZYpp>
constPtr
;
60
61
public
:
62
67
ResPool
pool
()
const
;
68
73
ResPoolProxy
poolProxy
()
const
;
74
75
DiskUsageCounter::MountPointSet
diskUsage
();
76
77
void
setPartitions
(
const
DiskUsageCounter::MountPointSet
&mp);
78
79
DiskUsageCounter::MountPointSet
getPartitions
()
const
;
80
81
public
:
85
Target_Ptr
target
()
const
;
86
90
Target_Ptr
getTarget
()
const
;
91
98
void
initializeTarget
(
const
Pathname & root,
bool
doRebuild_r =
false
);
99
103
void
finishTarget
();
104
105
106
public
:
107
typedef
ZYppCommitResult
CommitResult
;
108
114
ZYppCommitResult
commit
(
const
ZYppCommitPolicy
& policy_r );
115
119
void
installSrcPackage
(
const
SrcPackage_constPtr & srcPackage_r );
120
121
public
:
123
Resolver_Ptr
resolver
()
const
;
124
KeyRing_Ptr
keyRing
()
const
;
125
public
:
130
ZYPP_DEPRECATED
void
setTextLocale
(
const
Locale
& textLocale_r )
131
{
ZConfig::instance
().
setTextLocale
( textLocale_r ); }
133
ZYPP_DEPRECATED
Locale
getTextLocale
()
const
134
{
return
ZConfig::instance
().
textLocale
(); }
135
136
public
:
148
void
setRequestedLocales
(
const
LocaleSet
& locales_r )
ZYPP_DEPRECATED
;
149
151
const
LocaleSet
&
getRequestedLocales
() const
ZYPP_DEPRECATED
;
152
159
const
LocaleSet
&
getAvailableLocales
() const
ZYPP_DEPRECATED
;
161
162
public:
164
Pathname
homePath
() const;
165
167
Pathname
tmpPath
() const;
168
170
void
setHomePath
( const Pathname & path );
171
175
ZYPP_DEPRECATED
Arch
architecture
()
const
176
{
return
ZConfig::instance
().
systemArchitecture
(); }
182
ZYPP_DEPRECATED
void
setArchitecture
(
const
Arch
& arch )
183
{
ZConfig::instance
().
setSystemArchitecture
( arch ); }
184
185
public
:
186
191
ZYPP_DEPRECATED
int
applyLocks
()
192
{
return
0; }
193
194
protected
:
196
virtual
~ZYpp
();
198
virtual
std::ostream &
dumpOn
( std::ostream & str )
const
;
199
private
:
201
friend
class
ZYppFactory
;
202
204
typedef
zypp_detail::ZYppImpl
Impl
;
205
typedef
shared_ptr<Impl>
Impl_Ptr
;
207
explicit
208
ZYpp
(
const
Impl_Ptr
& impl_r );
209
private
:
211
RW_pointer<Impl>
_pimpl
;
212
};
214
216
}
// namespace zypp
218
#endif // ZYPP_ZYPP_H
zypp
ZYpp.h
Generated by
1.8.1