libzypp  13.10.6
WebpinResult.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
12 #ifndef ZYPP_WEBPINRESULT_H
13 #define ZYPP_WEBPINRESULT_H
14 
15 #include <iosfwd>
16 #include <list>
17 #include <set>
18 #include "zypp/base/PtrTypes.h"
19 #include "zypp/base/Iterator.h"
20 #include "zypp/APIConfig.h"
21 
22 #include "zypp/CheckSum.h"
23 #include "zypp/Edition.h"
24 #include "zypp/Pathname.h"
25 #include "zypp/Url.h"
26 #include "zypp/repo/RepoType.h"
28 
29 namespace zypp
30 {
31 namespace ws
32 {
40  {
41  friend std::ostream & operator<<( std::ostream & str, const WebpinResult & obj );
42 
43  public:
44  WebpinResult();
45  ~WebpinResult();
46 
50  std::string name() const;
51 
56  WebpinResult & setName( const std::string &name );
57 
61  zypp::Edition edition() const;
62 
67  WebpinResult & setEdition( const zypp::Edition &name );
68 
74  zypp::Url repositoryUrl() const;
75 
82 
86  int priority() const;
87 
92  WebpinResult & setPriority( int priority );
93 
94 
98  std::string summary() const;
99 
104  WebpinResult & setSummary( const std::string &summary );
105 
110  std::string distribution() const;
111 
116  WebpinResult & setDistribution( const std::string &distribution );
117 
122  zypp::CheckSum checksum() const;
123 
128  WebpinResult & setChecksum( const zypp::CheckSum &checksum );
129 
130 
131  std::ostream & dumpOn( std::ostream & str ) const;
132 
133  class Impl;
134  private:
137  };
139 
141  std::ostream & operator<<( std::ostream & str, const WebpinResult & obj );
142 
143 } // namespace ws
144 } // namespace zypp
145 
146 
147 #endif // ZYPP_WEBPINRESULT_H
WebpinResult & setName(const std::string &name)
set the package name
Definition: WebpinResult.cc:71
Represents a result from http://api.opensuse-community.org/searchservice/Search web service...
Definition: WebpinResult.h:39
std::string summary() const
package summary
std::string name() const
package name
Definition: WebpinResult.cc:77
Edition represents [epoch:]version[-release]
Definition: Edition.h:60
WebpinResult & setPriority(int priority)
set the package priority
friend std::ostream & operator<<(std::ostream &str, const WebpinResult &obj)
std::ostream & dumpOn(std::ostream &str) const
WebpinResult & setChecksum(const zypp::CheckSum &checksum)
set the package checksum
Provides API related macros.
WebpinResult & setEdition(const zypp::Edition &name)
set the package edition
zypp::Url url
Definition: MediaCurl.cc:193
zypp::Edition edition() const
package edition
zypp::CheckSum checksum() const
package checksum Example: a md5sum or sha1sum
WebpinResult implementation.
Definition: WebpinResult.cc:30
WebpinResult & setSummary(const std::string &summary)
set the package summary
int priority() const
package priority
zypp::Url repositoryUrl() const
repository&#39;s url The url of the repository where this package is located
Definition: WebpinResult.cc:83
std::string distribution() const
package distribution Example: openSUSE 10.3
WebpinResult & setDistribution(const std::string &distribution)
set the package distribution
Definition: WebpinResult.cc:94
RWCOW_pointer< Impl > _pimpl
Pointer to implementation.
Definition: WebpinResult.h:133
WebpinResult & setRepositoryUrl(const zypp::Url &url)
set the repository url where this package comes from
Definition: WebpinResult.cc:88
Url manipulation class.
Definition: Url.h:87
std::ostream & operator<<(std::ostream &str, const WebpinResult &obj)
RW_pointer supporting &#39;copy on write&#39; functionality.
Definition: PtrTypes.h:438