50 friend Impl * rwcowClone<Impl>(
const Impl * rhs );
53 {
return new Impl( *
this ); }
59 return str <<
"WebpinResult::Impl";
62 WebpinResult::WebpinResult()
63 : _pimpl( new
Impl() )
153 str <<
"- name : " <<
name() << std::endl;
WebpinResult & setName(const std::string &name)
set the package name
Represents a result from http://api.opensuse-community.org/searchservice/Search web service...
std::ostream & operator<<(std::ostream &str, const WebpinResult::Impl &obj)
std::string summary() const
package summary
std::string name() const
package name
Edition represents [epoch:]version[-release]
WebpinResult & setPriority(int priority)
set the package priority
std::ostream & dumpOn(std::ostream &str) const
WebpinResult & setChecksum(const zypp::CheckSum &checksum)
set the package checksum
WebpinResult & setEdition(const zypp::Edition &name)
set the package edition
Impl * clone() const
clone for RWCOW_pointer
zypp::Edition edition() const
package edition
zypp::CheckSum checksum() const
package checksum Example: a md5sum or sha1sum
WebpinResult implementation.
WebpinResult & setSummary(const std::string &summary)
set the package summary
int priority() const
package priority
zypp::Url repositoryUrl() const
repository's url The url of the repository where this package is located
std::string distribution() const
package distribution Example: openSUSE 10.3
std::string checksum(const Pathname &file, const std::string &algorithm)
Compute a files checksum.
WebpinResult & setDistribution(const std::string &distribution)
set the package distribution
RWCOW_pointer< Impl > _pimpl
Pointer to implementation.
WebpinResult & setRepositoryUrl(const zypp::Url &url)
set the repository url where this package comes from
std::ostream & operator<<(std::ostream &str, const WebpinResult &obj)