• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • knewstuff
 

knewstuff

Public Member Functions
KNewStuffGeneric Class Reference

#include <knewstuffgeneric.h>

Inheritance diagram for KNewStuffGeneric:
KNewStuff

List of all members.

Public Member Functions

 KNewStuffGeneric (const TQString &type, TQWidget *parent=0)
bool install (const TQString &fileName)
bool createUploadFile (const TQString &fileName)
TQString downloadDestination (KNS::Entry *entry)

Detailed Description

Basic KNewStuff class with predefined actions.

This class is used for data uploads and installation.

 TQString payload, preview;
 KNewStuffGeneric *ns = new KNewStuffGeneric("kamikaze/level", this);
 ns->upload(payload, preview);
Author:
Cornelius Schumacher (schumacher@kde.org)
Maintainer:
Josef Spillner (spillner@kde.org)

Definition at line 42 of file knewstuffgeneric.h.


Constructor & Destructor Documentation

KNewStuffGeneric::KNewStuffGeneric ( const TQString &  type,
TQWidget *  parent = 0 
)

Constructor.

Parameters:
typea Hotstuff data type such as "korganizer/calendar"
parentthe parent window.

Definition at line 40 of file knewstuffgeneric.cpp.


Member Function Documentation

bool KNewStuffGeneric::createUploadFile ( const TQString &  fileName) [virtual]

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:
fileNamethe name of the file to upload after its creation
Returns:
true in case of creation success, false otherwise

Implements KNewStuff.

Definition at line 83 of file knewstuffgeneric.cpp.

TQString KNewStuffGeneric::downloadDestination ( KNS::Entry *  entry) [virtual]

Queries the preferred destination file for a download.

Parameters:
entrya Hotstuff data entry
Returns:
destination filename, or 0 to return directory only

Reimplemented from KNewStuff.

Definition at line 133 of file knewstuffgeneric.cpp.

bool KNewStuffGeneric::install ( const TQString &  fileName) [virtual]

Installs a downloaded file according to the application's configuration.

Parameters:
fileNamefilename of the donwloaded file
Returns:
true in case of installation success, false otherwise

Implements KNewStuff.

Definition at line 50 of file knewstuffgeneric.cpp.


The documentation for this class was generated from the following files:
  • knewstuffgeneric.h
  • knewstuffgeneric.cpp

knewstuff

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

knewstuff

Skip menu "knewstuff"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for knewstuff by doxygen 1.7.6.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |