libzypp  10.5.0
WebpinResult.h
Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00012 #ifndef ZYPP_WEBPINRESULT_H
00013 #define ZYPP_WEBPINRESULT_H
00014 
00015 #include <iosfwd>
00016 #include <list>
00017 #include <set>
00018 #include "zypp/base/PtrTypes.h"
00019 #include "zypp/base/Iterator.h"
00020 #include "zypp/base/Deprecated.h"
00021 
00022 #include "zypp/CheckSum.h"
00023 #include "zypp/Edition.h"
00024 #include "zypp/Pathname.h"
00025 #include "zypp/Url.h"
00026 #include "zypp/repo/RepoType.h"
00027 #include "zypp/repo/RepoVariables.h"
00028 
00029 namespace zypp
00030 { 
00031 namespace ws
00032 {
00039   class WebpinResult
00040   {
00041     friend std::ostream & operator<<( std::ostream & str, const WebpinResult & obj );
00042 
00043     public:
00044     WebpinResult();
00045     ~WebpinResult();
00046 
00050     std::string name() const;
00051 
00056     WebpinResult & setName( const std::string &name );
00057 
00061     zypp::Edition edition() const;
00062 
00067     WebpinResult & setEdition( const zypp::Edition &name );
00068 
00074     zypp::Url repositoryUrl() const;
00075 
00081     WebpinResult & setRepositoryUrl( const zypp::Url &url );
00082       
00086     int priority() const;
00087 
00092     WebpinResult & setPriority( int priority );
00093 
00094 
00098     std::string summary() const;
00099 
00104     WebpinResult & setSummary( const std::string &summary );
00105 
00110     std::string distribution() const;
00111 
00116     WebpinResult & setDistribution( const std::string &distribution );
00117 
00122     zypp::CheckSum checksum() const;
00123 
00128     WebpinResult & setChecksum( const zypp::CheckSum &checksum );
00129 
00130 
00131     std::ostream & dumpOn( std::ostream & str ) const;
00132 
00133     class Impl;
00134   private:
00136     RWCOW_pointer<Impl> _pimpl;
00137   };
00139 
00141   std::ostream & operator<<( std::ostream & str, const WebpinResult & obj );
00142 
00143 } // namespace ws
00144 } // namespace zypp
00145 
00146 
00147 #endif // ZYPP_WEBPINRESULT_H