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

tdenewstuff

Public Member Functions | List of all members
TDENewStuffGeneric Class Reference

#include <knewstuffgeneric.h>

Inheritance diagram for TDENewStuffGeneric:
TDENewStuff

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)
 
- Public Member Functions inherited from TDENewStuff
 TDENewStuff (const TQString &type, TQWidget *parentWidget=0)
 
 TDENewStuff (const TQString &type, const TQString &providerList, TQWidget *parentWidget=0)
 
TQString type () const
 
TQWidget * parentWidget () const
 
void download ()
 
void upload ()
 
void upload (const TQString &fileName, const TQString previewName)
 
virtual bool install (const TQString &fileName)=0
 
virtual bool createUploadFile (const TQString &fileName)=0
 
virtual TQString downloadDestination (KNS::Entry *entry)
 

Additional Inherited Members

- Protected Member Functions inherited from TDENewStuff
KNS::Engine * engine ()
 

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);
TDENewStuffGeneric
Basic TDENewStuff class with predefined actions.
Definition: knewstuffgeneric.h:43
TDENewStuffGeneric::TDENewStuffGeneric
TDENewStuffGeneric(const TQString &type, TQWidget *parent=0)
Constructor.
Definition: knewstuffgeneric.cpp:41
TDENewStuff::upload
void upload()
Start upload process.
Definition: knewstuff.cpp:82
Author
Cornelius Schumacher (schum.nosp@m.ache.nosp@m.r@kde.nosp@m..org)
Maintainer:
Josef Spillner (spill.nosp@m.ner@.nosp@m.kde.o.nosp@m.rg)

Definition at line 42 of file knewstuffgeneric.h.

Constructor & Destructor Documentation

◆ TDENewStuffGeneric()

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

Constructor.

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

Definition at line 41 of file knewstuffgeneric.cpp.

◆ ~TDENewStuffGeneric()

TDENewStuffGeneric::~TDENewStuffGeneric ( )

Definition at line 47 of file knewstuffgeneric.cpp.

Member Function Documentation

◆ createUploadFile()

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
fileNamethe 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.

◆ downloadDestination()

TQString TDENewStuffGeneric::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 TDENewStuff.

Definition at line 146 of file knewstuffgeneric.cpp.

◆ install()

bool TDENewStuffGeneric::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 TDENewStuff.

Definition at line 51 of file knewstuffgeneric.cpp.


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

tdenewstuff

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

tdenewstuff

Skip menu "tdenewstuff"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdenewstuff by doxygen 1.9.4
This website is maintained by Timothy Pearson.