Author: dmacvicar Date: Mon Jun 2 17:48:04 2008 New Revision: 10315 URL: http://svn.opensuse.org/viewcvs/zypp?rev=10315&view=rev Log: - update message attribute required to show messages in the user interface Modified: branches/SuSE-Linux-11_0-Branch/libzypp/zypp/Patch.cc branches/SuSE-Linux-11_0-Branch/libzypp/zypp/Patch.h branches/SuSE-Linux-11_0-Branch/libzypp/zypp/sat/SolvAttr.cc branches/SuSE-Linux-11_0-Branch/libzypp/zypp/sat/SolvAttr.h Modified: branches/SuSE-Linux-11_0-Branch/libzypp/zypp/Patch.cc URL: http://svn.opensuse.org/viewcvs/zypp/branches/SuSE-Linux-11_0-Branch/libzypp/zypp/Patch.cc?rev=10315&r1=10314&r2=10315&view=diff ============================================================================== --- branches/SuSE-Linux-11_0-Branch/libzypp/zypp/Patch.cc (original) +++ branches/SuSE-Linux-11_0-Branch/libzypp/zypp/Patch.cc Mon Jun 2 17:48:04 2008 @@ -69,6 +69,9 @@ return CAT_OTHER; } + std::string Patch::message( const Locale & lang_r ) const + { return lookupStrAttribute( sat::SolvAttr::message, lang_r ); } + std::string Patch::category() const { return lookupStrAttribute( sat::SolvAttr::patchcategory ); } Modified: branches/SuSE-Linux-11_0-Branch/libzypp/zypp/Patch.h URL: http://svn.opensuse.org/viewcvs/zypp/branches/SuSE-Linux-11_0-Branch/libzypp/zypp/Patch.h?rev=10315&r1=10314&r2=10315&view=diff ============================================================================== --- branches/SuSE-Linux-11_0-Branch/libzypp/zypp/Patch.h (original) +++ branches/SuSE-Linux-11_0-Branch/libzypp/zypp/Patch.h Mon Jun 2 17:48:04 2008 @@ -82,6 +82,11 @@ bool restartSuggested() const; /** + * \short Information or warning to be displayed to the user + */ + std::string message( const Locale & lang_r = Locale() ) const; + + /** * Use \ref rebootSuggested() */ ZYPP_DEPRECATED bool reboot_needed() const Modified: branches/SuSE-Linux-11_0-Branch/libzypp/zypp/sat/SolvAttr.cc URL: http://svn.opensuse.org/viewcvs/zypp/branches/SuSE-Linux-11_0-Branch/libzypp/zypp/sat/SolvAttr.cc?rev=10315&r1=10314&r2=10315&view=diff ============================================================================== --- branches/SuSE-Linux-11_0-Branch/libzypp/zypp/sat/SolvAttr.cc (original) +++ branches/SuSE-Linux-11_0-Branch/libzypp/zypp/sat/SolvAttr.cc Mon Jun 2 17:48:04 2008 @@ -73,6 +73,8 @@ const SolvAttr SolvAttr::patchcategory ( SOLVABLE_PATCHCATEGORY ); const SolvAttr SolvAttr::rebootSuggested ( UPDATE_REBOOT ); const SolvAttr SolvAttr::restartSuggested ( UPDATE_RESTART ); + const SolvAttr SolvAttr::message ( UPDATE_MESSAGE ); + const SolvAttr SolvAttr::updateCollectionName ( UPDATE_COLLECTION_NAME ); const SolvAttr SolvAttr::updateCollectionEvr ( UPDATE_COLLECTION_EVR ); const SolvAttr SolvAttr::updateCollectionArch ( UPDATE_COLLECTION_ARCH ); Modified: branches/SuSE-Linux-11_0-Branch/libzypp/zypp/sat/SolvAttr.h URL: http://svn.opensuse.org/viewcvs/zypp/branches/SuSE-Linux-11_0-Branch/libzypp/zypp/sat/SolvAttr.h?rev=10315&r1=10314&r2=10315&view=diff ============================================================================== --- branches/SuSE-Linux-11_0-Branch/libzypp/zypp/sat/SolvAttr.h (original) +++ branches/SuSE-Linux-11_0-Branch/libzypp/zypp/sat/SolvAttr.h Mon Jun 2 17:48:04 2008 @@ -94,6 +94,7 @@ static const SolvAttr patchcategory; static const SolvAttr rebootSuggested; static const SolvAttr restartSuggested; + static const SolvAttr message; static const SolvAttr updateCollectionName; static const SolvAttr updateCollectionEvr; static const SolvAttr updateCollectionArch; -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org