libyui-qt-pkg
Loading...
Searching...
No Matches
YQPkgDependenciesView.h
1/*
2 Copyright (c) 2000 - 2010 Novell, Inc.
3 Copyright (c) 2021 SUSE LLC
4
5 This library is free software; you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as
7 published by the Free Software Foundation; either version 2.1 of the
8 License, or (at your option) version 3.0 of the License. This library
9 is distributed in the hope that it will be useful, but WITHOUT ANY
10 WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
12 License for more details. You should have received a copy of the GNU
13 Lesser General Public License along with this library; if not, write
14 to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
15 Floor, Boston, MA 02110-1301 USA
16*/
17
18
19/*
20 File: YQPkgDependenciesView.h
21 Author: Stefan Hundhammer <shundhammer.de>
22*/
23
24
25#ifndef YQPkgDependenciesView_h
26#define YQPkgDependenciesView_h
27
28#include "YQZypp.h"
29#include "YQPkgGenericDetailsView.h"
30
31using std::string;
32
33
40{
41 Q_OBJECT
42
43public:
44
48 YQPkgDependenciesView( QWidget * parent );
49
50
54 virtual ~YQPkgDependenciesView();
55
56
57protected:
58
64 virtual void showDetails( ZyppSel selectable );
65
70 QString simpleTable( ZyppObj pkg );
71
72
78 QString complexTable( ZyppObj installed,
79 ZyppObj candidate );
80
87 static QString row( const QString & heading,
88 const zypp::Capabilities & capSet );
89
90
97 static QString row( const QString & heading,
98 const zypp::Capabilities & capSet1,
99 const zypp::Capabilities & capSet2 );
100
106 static QString row( const QString & contents )
107 { return YQPkgGenericDetailsView::row( contents ); }
108
114 static QString htmlLines( const zypp::Capabilities & capSet );
115};
116
117
118#endif // ifndef YQPkgDependenciesView_h
Display technical details ( very much like 'rpm -qi' ) for a zypp::Package object - the installed ins...
Definition YQPkgDependenciesView.h:40
virtual ~YQPkgDependenciesView()
Definition YQPkgDependenciesView.cc:45
YQPkgDependenciesView(QWidget *parent)
Definition YQPkgDependenciesView.cc:39
static QString htmlLines(const zypp::Capabilities &capSet)
Definition YQPkgDependenciesView.cc:175
QString simpleTable(ZyppObj pkg)
Definition YQPkgDependenciesView.cc:88
QString complexTable(ZyppObj installed, ZyppObj candidate)
Definition YQPkgDependenciesView.cc:110
static QString row(const QString &contents)
Definition YQPkgDependenciesView.h:106
virtual void showDetails(ZyppSel selectable)
Definition YQPkgDependenciesView.cc:52
static QString row(const QString &heading, const zypp::Capabilities &capSet)
Definition YQPkgDependenciesView.cc:140
Abstract base class for details views. Handles generic stuff like HTML formatting,...
Definition YQPkgGenericDetailsView.h:43
static QString row(const QString &contents)
Definition YQPkgGenericDetailsView.cc:209