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