KNewStuffGeneric Class Reference
Basic KNewStuff class with predefined actions. More...
#include <knewstuffgeneric.h>
Inheritance diagram for KNewStuffGeneric:


Public Member Functions | |
KNewStuffGeneric (const QString &type, QWidget *parent=0) | |
bool | install (const QString &fileName) |
bool | createUploadFile (const QString &fileName) |
QString | downloadDestination (KNS::Entry *entry) |
Detailed Description
Basic KNewStuff class with predefined actions.This class is used for data uploads and installation.
QString payload, preview; KNewStuffGeneric *ns = new KNewStuffGeneric("kamikaze/level", this); ns->upload(payload, preview);
- Author:
- Cornelius Schumacher (schumacher@kde.org)
- Maintainer:
- Josef Spillner (spillner@kde.org)
Definition at line 42 of file knewstuffgeneric.h.
Constructor & Destructor Documentation
|
Constructor.
Definition at line 40 of file knewstuffgeneric.cpp. References KNewStuffGeneric(). Referenced by KNewStuffGeneric(). |
Member Function Documentation
|
Installs a downloaded file according to the application's configuration.
Implements KNewStuff. Definition at line 50 of file knewstuffgeneric.cpp. References install(). Referenced by install(). |
|
Creates a file suitable for upload. Note that this method always fails, since using KNewStuffGeneric means that the provided file must already be in a usable format.
Implements KNewStuff. Definition at line 83 of file knewstuffgeneric.cpp. References createUploadFile(). Referenced by createUploadFile(). |
|
Queries the preferred destination file for a download.
Reimplemented from KNewStuff. Definition at line 127 of file knewstuffgeneric.cpp. References downloadDestination(), and KNewStuff::parentWidget(). Referenced by downloadDestination(). |
The documentation for this class was generated from the following files: