libyui-qt-pkg
2.47.2
YQPkgFileListView.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: YQPkgFileListView.h
35
36
Author: Stefan Hundhammer <sh@suse.de>
37
38
/-*/
39
40
41
#ifndef YQPkgFileListView_h
42
#define YQPkgFileListView_h
43
44
#include "YQPkgGenericDetailsView.h"
45
46
47
using
std::list;
48
using
std::string;
49
50
51
/**
52
* @short Display a pkg's file list
53
**/
54
class
YQPkgFileListView
:
public
YQPkgGenericDetailsView
55
{
56
Q_OBJECT
57
58
public
:
59
60
/**
61
* Constructor
62
**/
63
YQPkgFileListView
( QWidget * parent );
64
65
/**
66
* Destructor
67
**/
68
virtual
~YQPkgFileListView
();
69
70
/**
71
* Show details for the specified package:
72
* In this case the package description.
73
* Overwritten from YQPkgGenericDetailsView.
74
**/
75
virtual
void
showDetails
( ZyppSel selectable );
76
77
protected
:
78
79
/**
80
* Format a file list in HTML
81
**/
82
QString
formatFileList
(
const
list<string> & fileList )
const
;
83
};
84
85
86
#endif // ifndef YQPkgFileListView_h
YQPkgFileListView::showDetails
virtual void showDetails(ZyppSel selectable)
Show details for the specified package: In this case the package description.
Definition:
YQPkgFileListView.cc:67
YQPkgGenericDetailsView
Abstract base class for details views.
Definition:
YQPkgGenericDetailsView.h:57
YQPkgFileListView::YQPkgFileListView
YQPkgFileListView(QWidget *parent)
Constructor.
Definition:
YQPkgFileListView.cc:54
YQPkgFileListView
Display a pkg's file list.
Definition:
YQPkgFileListView.h:53
YQPkgFileListView::formatFileList
QString formatFileList(const list< string > &fileList) const
Format a file list in HTML.
Definition:
YQPkgFileListView.cc:101
YQPkgFileListView::~YQPkgFileListView
virtual ~YQPkgFileListView()
Destructor.
Definition:
YQPkgFileListView.cc:60
src
YQPkgFileListView.h
Generated by
1.8.16