libyui-qt-pkg  2.42.13
 All Classes Functions Variables Enumerations
YQPkgDependenciesView Class Reference

Display technical details ( very much like 'rpm -qi' ) for a zypp::Package object - the installed instance, the candidate instance or both ( in two columns ) if both exist. All other available instances are ignored. More...

#include <YQPkgDependenciesView.h>

Inheritance diagram for YQPkgDependenciesView:
Collaboration diagram for YQPkgDependenciesView:

Public Member Functions

 YQPkgDependenciesView (QWidget *parent)
 
virtual ~YQPkgDependenciesView ()
 
- Public Member Functions inherited from YQPkgGenericDetailsView
virtual QSize minimumSizeHint () const
 

Protected Member Functions

virtual void showDetails (ZyppSel selectable)
 
QString simpleTable (ZyppObj pkg)
 
QString complexTable (ZyppObj installed, ZyppObj candidate)
 
- Protected Member Functions inherited from YQPkgGenericDetailsView
 YQPkgGenericDetailsView (QWidget *parent)
 
virtual ~YQPkgGenericDetailsView ()
 

Static Protected Member Functions

static QString row (const QString &heading, const zypp::Capabilities &capSet)
 
static QString row (const QString &heading, const zypp::Capabilities &capSet1, const zypp::Capabilities &capSet2)
 
static QString row (const QString &contents)
 
static QString htmlLines (const zypp::Capabilities &capSet)
 

Additional Inherited Members

- Public Slots inherited from YQPkgGenericDetailsView
void showDetailsIfVisible (ZyppSel selectable)
 
- Static Public Member Functions inherited from YQPkgGenericDetailsView
static QString htmlStart ()
 
static QString htmlEnd ()
 
static QString htmlHeading (ZyppSel selectable, bool showVersion=false)
 
static QString htmlEscape (const QString &plainText)
 
static QString table (const QString &contents)
 
static QString row (const QString &contents)
 
static QString cell (QString contents)
 
static QString cell (int contents)
 
static QString cell (const string &contents)
 
static QString cell (const zypp::Date &date)
 
static QString hcell (QString contents)
 
- Protected Slots inherited from YQPkgGenericDetailsView
void reload (QWidget *newCurrent)
 
virtual void reload ()
 
- Protected Attributes inherited from YQPkgGenericDetailsView
QTabWidget * _parentTab
 
ZyppSel _selectable
 

Detailed Description

Display technical details ( very much like 'rpm -qi' ) for a zypp::Package object - the installed instance, the candidate instance or both ( in two columns ) if both exist. All other available instances are ignored.

Definition at line 55 of file YQPkgDependenciesView.h.

Constructor & Destructor Documentation

YQPkgDependenciesView::YQPkgDependenciesView ( QWidget *  parent)

Constructor

Definition at line 51 of file YQPkgDependenciesView.cc.

YQPkgDependenciesView::~YQPkgDependenciesView ( )
virtual

Destructor

Definition at line 57 of file YQPkgDependenciesView.cc.

Member Function Documentation

QString YQPkgDependenciesView::complexTable ( ZyppObj  installed,
ZyppObj  candidate 
)
protected

Returns a string containing a HTML table for technical details for two package instances: The installed instance and an alternate instance. (usually the candidate instance).

Definition at line 122 of file YQPkgDependenciesView.cc.

Here is the call graph for this function:

QString YQPkgDependenciesView::htmlLines ( const zypp::Capabilities &  capSet)
staticprotected

Format a zypp::Capabilities (describing zypp::Dep::REQUIRES etc.) in HTML lines, separated with
. Returns an empty string if capSet is empty.

Definition at line 187 of file YQPkgDependenciesView.cc.

Here is the call graph for this function:

QString YQPkgDependenciesView::row ( const QString &  heading,
const zypp::Capabilities &  capSet 
)
staticprotected

Format a zypp::CapSet (describing zypp::Dep::REQUIRES etc.) with a heading in HTML lines.

Returns an empty string if capSet is empty.

Definition at line 152 of file YQPkgDependenciesView.cc.

Here is the call graph for this function:

QString YQPkgDependenciesView::row ( const QString &  heading,
const zypp::Capabilities &  capSet1,
const zypp::Capabilities &  capSet2 
)
staticprotected

Format two zypp::Capabilities (describing zypp::Dep::REQUIRES etc.) with a heading in HTML lines.

Returns an empty string both capSets are empty.

Definition at line 168 of file YQPkgDependenciesView.cc.

Here is the call graph for this function:

static QString YQPkgDependenciesView::row ( const QString &  contents)
inlinestaticprotected

Returns a string containing a HTML table row with 'contents'.

Required here to avoid inheritance ambiguities.

Definition at line 122 of file YQPkgDependenciesView.h.

Here is the call graph for this function:

void YQPkgDependenciesView::showDetails ( ZyppSel  selectable)
protectedvirtual

Show details for the specified selectable: In this case technical data, very much like "rpm -qi". Overwritten from YQPkgGenericDetailsView.

Implements YQPkgGenericDetailsView.

Definition at line 64 of file YQPkgDependenciesView.cc.

Here is the call graph for this function:

QString YQPkgDependenciesView::simpleTable ( ZyppObj  pkg)
protected

Returns a string containing a HTML table for technical details for one package.

Definition at line 100 of file YQPkgDependenciesView.cc.

Here is the call graph for this function:


The documentation for this class was generated from the following files: