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

Public Member Functions | |
| bool | createUploadFile (const QString &fileName) |
| QString | downloadDestination (KNS::Entry *entry) |
| bool | install (const QString &fileName) |
| KNewStuffGeneric (const QString &type, QWidget *parent=0) | |
| ~KNewStuffGeneric () | |
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);
- Maintainer:
- Josef Spillner (spillner@kde.org)
Definition at line 42 of file knewstuffgeneric.h.
Constructor & Destructor Documentation
Constructor.
- Parameters:
-
type a Hotstuff data type such as "korganizer/calendar" parent the parent window.
Definition at line 40 of file knewstuffgeneric.cpp.
| KNewStuffGeneric::~KNewStuffGeneric | ( | ) |
Definition at line 46 of file knewstuffgeneric.cpp.
Member Function Documentation
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.
- Parameters:
-
fileName the name of the file to upload after its creation
- Returns:
truein case of creation success,falseotherwise
Implements KNewStuff.
Definition at line 83 of file knewstuffgeneric.cpp.
| QString KNewStuffGeneric::downloadDestination | ( | KNS::Entry * | entry | ) | [virtual] |
Queries the preferred destination file for a download.
- Parameters:
-
entry a Hotstuff data entry
- Returns:
- destination filename, or 0 to return directory only
Reimplemented from KNewStuff.
Definition at line 133 of file knewstuffgeneric.cpp.
Installs a downloaded file according to the application's configuration.
- Parameters:
-
fileName filename of the donwloaded file
- Returns:
truein case of installation success,falseotherwise
Implements KNewStuff.
Definition at line 50 of file knewstuffgeneric.cpp.
The documentation for this class was generated from the following files:
KDE 3.5 API Reference