libzypp
17.14.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
ZYppImpl.h
Go to the documentation of this file.
1
/*---------------------------------------------------------------------\
2
| ____ _ __ __ ___ |
3
| |__ / \ / / . \ . \ |
4
| / / \ V /| _/ _/ |
5
| / /__ | | | | | | |
6
| /_____||_| |_| |_| |
7
| |
8
\---------------------------------------------------------------------*/
12
#ifndef ZYPP_ZYPP_DETAIL_ZYPPIMPL_H
13
#define ZYPP_ZYPP_DETAIL_ZYPPIMPL_H
14
15
#include <iosfwd>
16
17
#include "
zypp/TmpPath.h
"
18
#include "
zypp/Target.h
"
19
#include "
zypp/Resolver.h
"
20
#include "
zypp/KeyRing.h
"
21
#include "
zypp/ZYppCommit.h
"
22
#include "
zypp/ResTraits.h
"
23
#include "
zypp/DiskUsageCounter.h
"
24
#include "
zypp/ManagedFile.h
"
25
27
namespace
zypp
28
{
29
30
namespace
zypp_detail
31
{
32
34
//
35
// CLASS NAME : ZYppImpl
36
//
38
class
ZYppImpl
39
{
40
friend
std::ostream &
operator<<
( std::ostream & str,
const
ZYppImpl
& obj );
41
42
public
:
44
ZYppImpl
();
46
~ZYppImpl
();
47
48
public
:
50
ResPool
pool
()
const
51
{
return
ResPool::instance
(); }
52
53
ResPoolProxy
poolProxy
()
const
54
{
return
ResPool::instance
().
proxy
(); }
55
57
KeyRing_Ptr
keyRing
()
const
58
{
return
_keyring
; }
59
60
61
Resolver_Ptr
resolver
()
const
62
{
return
_resolver
; }
63
64
public
:
69
Target_Ptr
target
()
const
;
70
74
Target_Ptr
getTarget
()
const
75
{
return
_target
; }
76
81
void
initializeTarget
(
const
Pathname & root,
bool
doRebuild_r );
82
86
void
finishTarget
();
87
89
ZYppCommitResult
commit
(
const
ZYppCommitPolicy
& policy_r );
90
92
void
installSrcPackage
(
const
SrcPackage_constPtr & srcPackage_r );
93
95
ManagedFile
provideSrcPackage
(
const
SrcPackage_constPtr & srcPackage_r );
96
97
public
:
99
Pathname
homePath
()
const
;
100
102
Pathname
tmpPath
()
const
;
103
105
void
setHomePath
(
const
Pathname & path );
106
107
public
:
108
DiskUsageCounter::MountPointSet
diskUsage
();
109
void
setPartitions
(
const
DiskUsageCounter::MountPointSet
&mp);
110
DiskUsageCounter::MountPointSet
getPartitions
()
const
;
111
112
private
:
114
Target_Ptr
_target
;
116
Resolver_Ptr
_resolver
;
117
118
KeyRing_Ptr
_keyring
;
120
Pathname
_home_path
;
122
shared_ptr<DiskUsageCounter>
_disk_usage
;
123
};
125
127
std::ostream &
operator<<
( std::ostream & str,
const
ZYppImpl
& obj );
128
130
}
// namespace zypp_detail
133
}
// namespace zypp
135
#endif // ZYPP_ZYPP_DETAIL_ZYPPIMPL_H
zypp
zypp_detail
ZYppImpl.h
Generated by
1.8.2