+ ///////////////////////////////////////////////////////////////////
+
+ std::string ResObject::summary( const Locale & lang_r ) const
+ { return lookupStrAttribute( sat::SolvAttr::summary, lang_r ); }
+
+ std::string ResObject::description( const Locale & lang_r ) const
+ { return lookupStrAttribute( sat::SolvAttr::description, lang_r ); }
+
+ std::string ResObject::insnotify( const Locale & lang_r ) const
+ { return lookupStrAttribute( sat::SolvAttr::insnotify, lang_r ); }
+
+ std::string ResObject::delnotify( const Locale & lang_r ) const
+ { return lookupStrAttribute( sat::SolvAttr::delnotify, lang_r ); }
+
+ std::string ResObject::licenseToConfirm( const Locale & lang_r ) const
+ {
+ std::string ret = lookupStrAttribute( sat::SolvAttr::eula, lang_r );
+ if ( ret.empty() && isKind<Product>() )
+ {
+ const RepoInfo & ri( repoInfo() );
+ if ( ri.needToAcceptLicense() || ! ui::Selectable::get( *this )->hasInstalledObj() )
+ ret = ri.getLicense( lang_r ); // bnc#908976: suppress informal license upon update
+ }
+ return ret;
+ }
+
+ bool ResObject::needToAcceptLicense() const
+ {
+ if ( isKind<Product>() )
+ return repoInfo().needToAcceptLicense( );
+ return true;
+ }
+
+ std::string ResObject::distribution() const
+ { return lookupStrAttribute( sat::SolvAttr::distribution ); }
+
+ CpeId ResObject::cpeId() const
+ { return CpeId( lookupStrAttribute( sat::SolvAttr::cpeid ), CpeId::noThrow ); }
+
+ ByteCount ResObject::installSize() const
+ { return ByteCount( lookupNumAttribute( sat::SolvAttr::installsize ) ); }
+
+ ByteCount ResObject::downloadSize() const
+ { return ByteCount( lookupNumAttribute( sat::SolvAttr::downloadsize ) ); }
+
+ unsigned ResObject::mediaNr() const
+ { return lookupNumAttribute( sat::SolvAttr::medianr ); }
+
+ Date ResObject::buildtime() const
+ { return Date( lookupNumAttribute( sat::SolvAttr::buildtime ) ); }
+
+ Date ResObject::installtime() const
+ { return Date( lookupNumAttribute( sat::SolvAttr::installtime ) ); }
+
+ /////////////////////////////////////////////////////////////////