• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

KNewStuff

TestNewStuff Class Reference

#include <testnewstuff.h>

Inheritance diagram for TestNewStuff:

Inheritance graph
[legend]

List of all members.


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

bool TestNewStuff::createUploadFile ( const QString &  fileName  )  [virtual]

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.

bool TestNewStuff::install ( const QString &  fileName  )  [virtual]

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:
  • testnewstuff.h
  • testnewstuff.cpp

KNewStuff

Skip menu "KNewStuff"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal