]> icculus.org git repositories - duncan/yast2-qt4.git/blob - src/pkg/YQPkgTechnicalDetailsView.h
don't create QObjects in ycp thread - make timeouts work
[duncan/yast2-qt4.git] / src / pkg / YQPkgTechnicalDetailsView.h
1 /*---------------------------------------------------------------------\
2 |                                                                      |
3 |                      __   __    ____ _____ ____                      |
4 |                      \ \ / /_ _/ ___|_   _|___ \                     |
5 |                       \ V / _` \___ \ | |   __) |                    |
6 |                        | | (_| |___) || |  / __/                     |
7 |                        |_|\__,_|____/ |_| |_____|                    |
8 |                                                                      |
9 |                               core system                            |
10 |                                                        (C) SuSE GmbH |
11 \----------------------------------------------------------------------/
12
13   File:       YQPkgTechnicalDetailsView.h
14
15   Author:     Stefan Hundhammer <sh@suse.de>
16
17 /-*/
18
19
20 #ifndef YQPkgTechnicalDetailsView_h
21 #define YQPkgTechnicalDetailsView_h
22
23 #include "YQPkgGenericDetailsView.h"
24
25
26 /**
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.
30  **/
31 class YQPkgTechnicalDetailsView : public YQPkgGenericDetailsView
32 {
33     Q_OBJECT
34
35 public:
36
37     /**
38      * Constructor
39      **/
40     YQPkgTechnicalDetailsView( QWidget * parent );
41
42
43     /**
44      * Destructor
45      **/
46     virtual ~YQPkgTechnicalDetailsView();
47
48
49 protected:
50
51     /**
52      * Show details for the specified zypp::ResObject:
53      * In this case technical data, very much like "rpm -qi".
54      * Overwritten from YQPkgGenericDetailsView.
55      **/
56     virtual void showDetails( ZyppSel selectable );
57
58     /**
59      * Returns a string containing a HTML table for technical details for one
60      * package.
61      **/
62     QString simpleTable( ZyppSel        selectable,
63                          ZyppPkg        pkg );
64
65
66     /**
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 ).
70      **/
71     QString complexTable( ZyppSel       selectable,
72                           ZyppPkg       installedPkg,
73                           ZyppPkg       candidatePkg );
74
75     /**
76      * Returns a string containing HTML code for a package's authors list.
77      **/
78     QString authorsListCell( ZyppPkg pkg ) const;
79
80     /**
81      * Format an RPM group. Retrieves the translated ( ! ) version.
82      **/
83     QString formatRpmGroup( ZyppPkg pkg ) const;
84 };
85
86
87 #endif // ifndef YQPkgTechnicalDetailsView_h