]> icculus.org git repositories - duncan/yast2-qt4.git/blob - src/pkg/YQPkgSelDescriptionView.h
don't create QObjects in ycp thread - make timeouts work
[duncan/yast2-qt4.git] / src / pkg / YQPkgSelDescriptionView.h
1 /*---------------------------------------------------------------------\
2 |                                                                      |
3 |                      __   __    ____ _____ ____                      |
4 |                      \ \ / /_ _/ ___|_   _|___ \                     |
5 |                       \ V / _` \___ \ | |   __) |                    |
6 |                        | | (_| |___) || |  / __/                     |
7 |                        |_|\__,_|____/ |_| |_____|                    |
8 |                                                                      |
9 |                               core system                            |
10 |                                                        (C) SuSE GmbH |
11 \----------------------------------------------------------------------/
12
13   File:       YQPkgSelDescriptionView.h
14
15   Author:     Stefan Hundhammer <sh@suse.de>
16
17 /-*/
18
19
20 #ifndef YQPkgSelDescriptionView_h
21 #define YQPkgSelDescriptionView_h
22
23 #include "YQPkgDescriptionView.h"
24
25
26 /**
27  * @short Display the description of a zypp::ResObject derived object along with its
28  * name and summary.
29  **/
30 class YQPkgSelDescriptionView : public YQPkgDescriptionView
31 {
32     Q_OBJECT
33
34 public:
35
36     /**
37      * Constructor
38      **/
39     YQPkgSelDescriptionView( QWidget * parent );
40
41     /**
42      * Destructor
43      **/
44     virtual ~YQPkgSelDescriptionView();
45
46     /**
47      * Show details for the specified package:
48      * In this case the package description.
49      * Overwritten from YQPkgGenericDetailsView.
50      **/
51     virtual void showDetails( ZyppSel selectable );
52
53 protected:
54
55     /**
56      * Format the heading in HTML
57      **/
58     QString htmlHeading( ZyppSel selectable );
59
60     /**
61      * Check if 'icon' exists. Returns 'icon' if it exists and an empty string
62      * if it doesn't exist. 
63      **/
64     QString findIcon( const QString & icon ) const;
65 };
66
67
68 #endif // ifndef YQPkgSelDescriptionView_h