libzypp
11.13.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
Todo List
Deprecated List
Modules
Namespaces
Classes
Files
File List
zypp
base
media
misc
parser
pool
repo
sat
solver
target
thread
ui
url
ws
WebpinResult.cc
WebpinResult.h
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
WebpinResult.cc
Go to the documentation of this file.
1
/*---------------------------------------------------------------------\
2
| ____ _ __ __ ___ |
3
| |__ / \ / / . \ . \ |
4
| / / \ V /| _/ _/ |
5
| / /__ | | | | | | |
6
| /_____||_| |_| |_| |
7
| |
8
\---------------------------------------------------------------------*/
12
#include <iostream>
13
14
#include "
zypp/base/Logger.h
"
15
#include "
zypp/ws/WebpinResult.h
"
16
17
using namespace
std;
18
20
namespace
zypp
21
{
22
namespace
ws
23
{
24
26
//
27
// CLASS NAME : WebpinResult::Impl
28
//
30
struct
WebpinResult::Impl
31
{
32
Impl
()
33
: priority(0)
34
{}
35
36
~
Impl
()
37
{
38
//MIL << std::endl;
39
}
40
public
:
41
std::string
name
;
42
Edition
edition
;
43
CheckSum
checksum
;
44
Url
repourl
;
45
string
summary
;
46
string
distro
;
47
int
priority
;
48
49
private
:
50
friend
Impl
* rwcowClone<Impl>(
const
Impl
* rhs );
52
Impl
* clone()
const
53
{
return
new
Impl
( *
this
); }
54
};
55
57
inline
std::ostream &
operator<<
( std::ostream & str,
const
WebpinResult::Impl
& obj )
58
{
59
return
str <<
"WebpinResult::Impl"
;
60
}
61
62
WebpinResult::WebpinResult()
63
: _pimpl( new
Impl
() )
64
{}
65
66
WebpinResult::~WebpinResult
()
67
{
68
//MIL << std::endl;
69
}
70
71
WebpinResult
&
WebpinResult::setName
(
const
std::string &name )
72
{
73
_pimpl
->
name
=
name
;
74
return
*
this
;
75
}
76
77
std::string
WebpinResult::name
()
const
78
{
79
return
_pimpl
->
name
;
80
}
81
82
83
zypp::Url
WebpinResult::repositoryUrl
()
const
84
{
85
return
_pimpl
->
repourl
;
86
}
87
88
WebpinResult
&
WebpinResult::setRepositoryUrl
(
const
zypp::Url
&
url
)
89
{
90
_pimpl
->
repourl
=
url
;
91
return
*
this
;
92
}
93
94
WebpinResult
&
WebpinResult::setDistribution
(
const
std::string &distro )
95
{
96
_pimpl
->
distro
= distro;
97
return
*
this
;
98
}
99
100
std::string
WebpinResult::distribution
()
const
101
{
102
return
_pimpl
->
distro
;
103
}
104
105
WebpinResult
&
WebpinResult::setSummary
(
const
std::string &summary )
106
{
107
_pimpl
->
summary
=
summary
;
108
return
*
this
;
109
}
110
111
std::string
WebpinResult::summary
()
const
112
{
113
return
_pimpl
->
summary
;
114
}
115
116
WebpinResult
&
WebpinResult::setPriority
(
int
priority )
117
{
118
_pimpl
->
priority
=
priority
;
119
return
*
this
;
120
}
121
122
int
WebpinResult::priority
()
const
123
{
124
return
_pimpl
->
priority
;
125
}
126
127
128
WebpinResult
&
WebpinResult::setEdition
(
const
Edition
&edition )
129
{
130
_pimpl
->
edition
=
edition
;
131
return
*
this
;
132
}
133
134
Edition
WebpinResult::edition
()
const
135
{
136
return
_pimpl
->
edition
;
137
}
138
139
WebpinResult
&
WebpinResult::setChecksum
(
const
CheckSum
&
checksum
)
140
{
141
_pimpl
->
checksum
=
checksum
;
142
return
*
this
;
143
}
144
145
CheckSum
WebpinResult::checksum
()
const
146
{
147
return
_pimpl
->
checksum
;
148
}
149
150
151
std::ostream &
WebpinResult::dumpOn
( std::ostream & str )
const
152
{
153
str <<
"- name : "
<<
name
() << std::endl;
154
return
str;
155
}
156
157
std::ostream &
operator<<
( std::ostream & str,
const
WebpinResult
& obj )
158
{
159
return
obj.
dumpOn
(str);
160
}
161
162
}
// namespace ws
163
165
}
// namespace zypp
zypp
ws
WebpinResult.cc
Generated by
1.8.1