41 #ifndef YQPkgDescriptionView_h
42 #define YQPkgDescriptionView_h
45 #include "YQPkgGenericDetailsView.h"
84 virtual void setSource(
const QUrl & name );
112 QMap<QString, QString>
readDesktopFile(
const QString & fileName )
const;
125 QString langWithCountry;
127 bool _showSupportability;
132 #endif // ifndef YQPkgDescriptionView_h
Display the description of a ZyppObj derived object along with its name and summary.
QStringList findDesktopFiles(const list< string > &fileList) const
Search for all desktop files in a file list.
QString simpleHtmlParagraphs(QString text)
Format a multi-line text into paragraphs.
YQPkgDescriptionView(QWidget *parent, bool showSupportability=true)
Constructor.
virtual void setSource(const QUrl &name)
Get the document pointed to by a hyperlink.
Abstract base class for details views.
QString findDesktopIcon(const QString &iconName) const
Find absolute file name (incl.
void initLang()
Initialize the language code (lang).
QMap< QString, QString > readDesktopFile(const QString &fileName) const
Extract name, icon and exec attributes from a desktop file.
void showLink(const QUrl &url)
Show information for a hyperlinked object, e.g., a "pkg:somepkg" link to another package.
virtual ~YQPkgDescriptionView()
Destructor.
virtual void showDetails(ZyppSel selectable)
Show details for the specified package: In this case the package description.
QString applicationIconList(const list< string > &fileList) const
Return html text that contains a list of application icons.