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