Author: mlandres Date: Thu Jun 19 18:15:17 2008 New Revision: 10412 URL: http://svn.opensuse.org/viewcvs/zypp?rev=10412&view=rev Log: - update message attribute required to show messages in the user interface Modified: trunk/libzypp/zypp/Patch.cc trunk/libzypp/zypp/Patch.h trunk/libzypp/zypp/sat/SolvAttr.cc trunk/libzypp/zypp/sat/SolvAttr.h Modified: trunk/libzypp/zypp/Patch.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/Patch.cc?rev=10412&r1=10411&r2=10412&view=diff ============================================================================== --- trunk/libzypp/zypp/Patch.cc (original) +++ trunk/libzypp/zypp/Patch.cc Thu Jun 19 18:15:17 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: trunk/libzypp/zypp/Patch.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/Patch.h?rev=10412&r1=10411&r2=10412&view=diff ============================================================================== --- trunk/libzypp/zypp/Patch.h (original) +++ trunk/libzypp/zypp/Patch.h Thu Jun 19 18:15:17 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: trunk/libzypp/zypp/sat/SolvAttr.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/sat/SolvAttr.cc?rev=10412&r1=10411&r2=10412&view=diff ============================================================================== --- trunk/libzypp/zypp/sat/SolvAttr.cc (original) +++ trunk/libzypp/zypp/sat/SolvAttr.cc Thu Jun 19 18:15:17 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: trunk/libzypp/zypp/sat/SolvAttr.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/sat/SolvAttr.h?rev=10412&r1=10411&r2=10412&view=diff ============================================================================== --- trunk/libzypp/zypp/sat/SolvAttr.h (original) +++ trunk/libzypp/zypp/sat/SolvAttr.h Thu Jun 19 18:15:17 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