KNewStuff
KNS::DownloadDialog Class Reference
#include <downloaddialog.h>

Detailed Description
KNewStuff download dialog.The download dialog will present several categories of items to the user for installation, uninstallation and updates. Preview images as well as other meta information can be seen. If the GHNS provider supports DXS, then the dialog will offer an extended popup menu with collaborative interactions such as ratings, removal requests, comments and translation suggestions.
Please remember when changing this class that it has to render untrusted data. Do not let scripts run, make sure that data is properly escaped etc.
This class is used internally by the Engine class as part of the download workflow.
Definition at line 70 of file downloaddialog.h.
Public Types | |
enum | EntryAction { kViewInfo, kComments, kChanges, kContactEmail, kContactJabber, kCollabTranslate, kCollabRemoval, kCollabSubscribe, kUninstall, kInstall, kCollabComment, kCollabRate } |
Public Member Functions | |
void | displayMessage (const QString &msg, KTitleWidget::MessageType type=KTitleWidget::PlainMessage, int timeOutMs=0) |
DownloadDialog (DxsEngine *engine, QWidget *parent) | |
void | installItem (Entry *entry) |
void | refresh () |
void | removeItem (Entry *entry) |
~DownloadDialog () | |
Protected Member Functions | |
virtual void | hideEvent (QHideEvent *event) |
Member Enumeration Documentation
- Enumerator:
-
kViewInfo kComments kChanges kContactEmail kContactJabber kCollabTranslate kCollabRemoval kCollabSubscribe kUninstall kInstall kCollabComment kCollabRate
Definition at line 78 of file downloaddialog.h.
Constructor & Destructor Documentation
Definition at line 57 of file downloaddialog.cpp.
DownloadDialog::~DownloadDialog | ( | ) |
Definition at line 157 of file downloaddialog.cpp.
Member Function Documentation
void DownloadDialog::displayMessage | ( | const QString & | msg, | |
KTitleWidget::MessageType | type = KTitleWidget::PlainMessage , |
|||
int | timeOutMs = 0 | |||
) |
Definition at line 258 of file downloaddialog.cpp.
void DownloadDialog::hideEvent | ( | QHideEvent * | event | ) | [protected, virtual] |
void DownloadDialog::installItem | ( | Entry * | entry | ) |
Definition at line 273 of file downloaddialog.cpp.
void DownloadDialog::refresh | ( | ) |
Definition at line 432 of file downloaddialog.cpp.
void DownloadDialog::removeItem | ( | Entry * | entry | ) |
Definition at line 286 of file downloaddialog.cpp.
The documentation for this class was generated from the following files: