KNewStuff
TestNewStuff Class Reference
#include <testnewstuff.h>
Public Member Functions | |
bool | createUploadFile (const QString &fileName) |
bool | install (const QString &fileName) |
TestNewStuff () |
Detailed Description
Definition at line 33 of file testnewstuff.h.
Constructor & Destructor Documentation
TestNewStuff::TestNewStuff | ( | ) | [inline] |
Definition at line 36 of file testnewstuff.h.
Member Function Documentation
Create a file to be uploaded to a "new stuff provider" and return the filename.
The format of the file is application specific. The only constraint is that the corresponding install() implementation is able to use the file.
- Parameters:
-
fileName name of the file to be written
- Returns:
true
on success,false
on error.
Implements KNewStuff.
Definition at line 55 of file testnewstuff.cpp.
Install file to application.
The given fileName points to the file downloaded by the KNewStuff engine. This is a temporary file by default. The application can do whatever is needed to handle the information contained in the file.
The function returns true, when the installation was successful and false if were errors.
- Parameters:
-
fileName name of downloaded file
Implements KNewStuff.
Definition at line 40 of file testnewstuff.cpp.
The documentation for this class was generated from the following files: