Author: dmacvicar Date: Mon Jul 9 14:57:21 2007 New Revision: 5933 URL: http://svn.opensuse.org/viewcvs/zypp?rev=5933&view=rev Log: provide numeric id on run time for RepoInfo, useful for YaST, useless for the rest of the world. Modified: branches/REFACTORING-10_3/libzypp/zypp/RepoInfo.cc branches/REFACTORING-10_3/libzypp/zypp/RepoInfo.h Modified: branches/REFACTORING-10_3/libzypp/zypp/RepoInfo.cc URL: http://svn.opensuse.org/viewcvs/zypp/branches/REFACTORING-10_3/libzypp/zypp/RepoInfo.cc?rev=5933&r1=5932&r2=5933&view=diff ============================================================================== --- branches/REFACTORING-10_3/libzypp/zypp/RepoInfo.cc (original) +++ branches/REFACTORING-10_3/libzypp/zypp/RepoInfo.cc Mon Jul 9 14:57:21 2007 @@ -12,6 +12,7 @@ #include <iostream> #include "zypp/base/Logger.h" +#include "zypp/base/ProvideNumericId.h" #include "zypp/RepoInfo.h" using namespace std; @@ -26,7 +27,7 @@ // CLASS NAME : RepoInfo::Impl // /** RepoInfo implementation. */ - struct RepoInfo::Impl + struct RepoInfo::Impl : public base::ProvideNumericIdRepoInfo::Impl,RepoInfo::NumericId { Impl() @@ -89,7 +90,10 @@ //MIL << std::endl; } - + RepoInfo::NumericId RepoInfo::numericId() const + { + return _pimpl->numericId(); + } RepoInfo & RepoInfo::setEnabled( boost::tribool enabled ) { Modified: branches/REFACTORING-10_3/libzypp/zypp/RepoInfo.h URL: http://svn.opensuse.org/viewcvs/zypp/branches/REFACTORING-10_3/libzypp/zypp/RepoInfo.h?rev=5933&r1=5932&r2=5933&view=diff ============================================================================== --- branches/REFACTORING-10_3/libzypp/zypp/RepoInfo.h (original) +++ branches/REFACTORING-10_3/libzypp/zypp/RepoInfo.h Mon Jul 9 14:57:21 2007 @@ -69,6 +69,13 @@ ~RepoInfo(); //RepoInfo( const Url & url, const Pathname & path, const std::string & alias = "", boost::tribool autorefresh = boost::indeterminate ); + typedef unsigned long NumericId; + + /** + * Runtime numeric Id + */ + NumericId numericId() const; + /** * unique identifier for this source. If not specified * It should be generated from the base url. -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org