tdenewstuff
TDENewStuffGeneric Class Reference
Basic TDENewStuff class with predefined actions. More...
#include <knewstuffgeneric.h>

Public Member Functions | |
TDENewStuffGeneric (const TQString &type, TQWidget *parent=0) | |
bool | install (const TQString &fileName) |
bool | createUploadFile (const TQString &fileName) |
TQString | downloadDestination (KNS::Entry *entry) |
Detailed Description
Basic TDENewStuff class with predefined actions.
This class is used for data uploads and installation.
TQString payload, preview; TDENewStuffGeneric *ns = new TDENewStuffGeneric("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 41 of file knewstuffgeneric.cpp.
Member Function Documentation
bool TDENewStuffGeneric::createUploadFile | ( | const TQString & | fileName | ) | [virtual] |
Creates a file suitable for upload.
Note that this method always fails, since using TDENewStuffGeneric 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:
true
in case of creation success,false
otherwise
Implements TDENewStuff.
Definition at line 96 of file knewstuffgeneric.cpp.
TQString TDENewStuffGeneric::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 TDENewStuff.
Definition at line 146 of file knewstuffgeneric.cpp.
bool TDENewStuffGeneric::install | ( | const TQString & | fileName | ) | [virtual] |
Installs a downloaded file according to the application's configuration.
- Parameters:
-
fileName filename of the donwloaded file
- Returns:
true
in case of installation success,false
otherwise
Implements TDENewStuff.
Definition at line 51 of file knewstuffgeneric.cpp.
The documentation for this class was generated from the following files: