TestNewStuff Class Reference
Inheritance diagram for TestNewStuff:

Public Member Functions | |
TestNewStuff () | |
bool | install (const QString &fileName) |
bool | createUploadFile (const QString &fileName) |
Detailed Description
Definition at line 33 of file testnewstuff.h.
Member Function Documentation
|
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.
Implements KNewStuff. Definition at line 40 of file testnewstuff.cpp. References QFile::open(), and QTextStream::read(). |
|
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.
Implements KNewStuff. Definition at line 55 of file testnewstuff.cpp. |
The documentation for this class was generated from the following files: