libyui-qt-pkg  2.44.7
 All Classes Functions Variables Enumerations
YQPkgTechnicalDetailsView.h
1 /**************************************************************************
2 Copyright (C) 2000 - 2010 Novell, Inc.
3 All Rights Reserved.
4 
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9 
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14 
15 You should have received a copy of the GNU General Public License along
16 with this program; if not, write to the Free Software Foundation, Inc.,
17 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 
19 **************************************************************************/
20 
21 
22 /*---------------------------------------------------------------------\
23 | |
24 | __ __ ____ _____ ____ |
25 | \ \ / /_ _/ ___|_ _|___ \ |
26 | \ V / _` \___ \ | | __) | |
27 | | | (_| |___) || | / __/ |
28 | |_|\__,_|____/ |_| |_____| |
29 | |
30 | core system |
31 | (C) SuSE GmbH |
32 \----------------------------------------------------------------------/
33 
34  File: YQPkgTechnicalDetailsView.h
35 
36  Author: Stefan Hundhammer <sh@suse.de>
37 
38 /-*/
39 
40 
41 #ifndef YQPkgTechnicalDetailsView_h
42 #define YQPkgTechnicalDetailsView_h
43 
44 #include "YQPkgGenericDetailsView.h"
45 
46 
47 /**
48  * @short Display technical details (very much like 'rpm -qi') for a ZYPP
49  * object - the installed instance, the candidate instance or both ( in two
50  * columns ) if both exist. All other available instances are ignored.
51  **/
53 {
54  Q_OBJECT
55 
56 public:
57 
58  /**
59  * Constructor
60  **/
61  YQPkgTechnicalDetailsView( QWidget * parent );
62 
63 
64  /**
65  * Destructor
66  **/
68 
69 
70 protected:
71 
72  /**
73  * Show details for the specified zypp::ResObject:
74  * In this case technical data, very much like "rpm -qi".
75  * Overwritten from YQPkgGenericDetailsView.
76  **/
77  virtual void showDetails( ZyppSel selectable );
78 
79  /**
80  * Returns a string containing a HTML table for technical details for one
81  * package.
82  **/
83  QString simpleTable( ZyppSel selectable,
84  ZyppPkg pkg );
85 
86 
87  /**
88  * Returns a string containing a HTML table for technical details for two
89  * package instances: The installed instance and an alternate instance.
90  * ( usually the candidate instance ).
91  **/
92  QString complexTable( ZyppSel selectable,
93  ZyppPkg installedPkg,
94  ZyppPkg candidatePkg );
95 
96  /**
97  * Returns a string containing HTML code for a package's authors list.
98  **/
99  QString authorsListCell( ZyppPkg pkg ) const;
100 
101  /**
102  * Format an RPM group. Retrieves the translated ( ! ) version.
103  **/
104  QString formatRpmGroup( ZyppPkg pkg ) const;
105 };
106 
107 
108 #endif // ifndef YQPkgTechnicalDetailsView_h
virtual ~YQPkgTechnicalDetailsView()
Destructor.
virtual void showDetails(ZyppSel selectable)
Show details for the specified zypp::ResObject: In this case technical data, very much like "rpm -qi"...
Abstract base class for details views.
QString complexTable(ZyppSel selectable, ZyppPkg installedPkg, ZyppPkg candidatePkg)
Returns a string containing a HTML table for technical details for two package instances: The install...
Display technical details (very much like 'rpm -qi') for a ZYPP object - the installed instance...
QString authorsListCell(ZyppPkg pkg) const
Returns a string containing HTML code for a package's authors list.
QString formatRpmGroup(ZyppPkg pkg) const
Format an RPM group.
YQPkgTechnicalDetailsView(QWidget *parent)
Constructor.
QString simpleTable(ZyppSel selectable, ZyppPkg pkg)
Returns a string containing a HTML table for technical details for one package.