1 /*---------------------------------------------------------------------\
3 | __ __ ____ _____ ____ |
4 | \ \ / /_ _/ ___|_ _|___ \ |
5 | \ V / _` \___ \ | | __) | |
6 | | | (_| |___) || | / __/ |
7 | |_|\__,_|____/ |_| |_____| |
11 \----------------------------------------------------------------------/
13 File: YQPkgTechnicalDetailsView.h
15 Author: Stefan Hundhammer <sh@suse.de>
20 #ifndef YQPkgTechnicalDetailsView_h
21 #define YQPkgTechnicalDetailsView_h
23 #include "YQPkgGenericDetailsView.h"
27 * @short Display technical details (very much like 'rpm -qi') for a ZYPP
28 * object - the installed instance, the candidate instance or both ( in two
29 * columns ) if both exist. All other available instances are ignored.
31 class YQPkgTechnicalDetailsView : public YQPkgGenericDetailsView
40 YQPkgTechnicalDetailsView( QWidget * parent );
46 virtual ~YQPkgTechnicalDetailsView();
52 * Show details for the specified zypp::ResObject:
53 * In this case technical data, very much like "rpm -qi".
54 * Overwritten from YQPkgGenericDetailsView.
56 virtual void showDetails( ZyppSel selectable );
59 * Returns a string containing a HTML table for technical details for one
62 QString simpleTable( ZyppSel selectable,
67 * Returns a string containing a HTML table for technical details for two
68 * package instances: The installed instance and an alternate instance.
69 * ( usually the candidate instance ).
71 QString complexTable( ZyppSel selectable,
73 ZyppPkg candidatePkg );
76 * Returns a string containing HTML code for a package's authors list.
78 QString authorsListCell( ZyppPkg pkg ) const;
81 * Format an RPM group. Retrieves the translated ( ! ) version.
83 QString formatRpmGroup( ZyppPkg pkg ) const;
87 #endif // ifndef YQPkgTechnicalDetailsView_h