.TH "KNewStuffGeneric" kde3 "11 Jun 2005" "Version Version 3.4.1" "knewstuff Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KNewStuffGeneric \- Basic \fBKNewStuff\fP class with predefined actions.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <knewstuffgeneric.h>\fP
.PP
Inherits \fBKNewStuff\fP.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKNewStuffGeneric\fP (const \fBQString\fP &type, \fBQWidget\fP *parent=0)"
.br
.ti -1c
.RI "bool \fBinstall\fP (const \fBQString\fP &fileName)"
.br
.ti -1c
.RI "bool \fBcreateUploadFile\fP (const \fBQString\fP &fileName)"
.br
.ti -1c
.RI "\fBQString\fP \fBdownloadDestination\fP (\fBKNS::Entry\fP *entry)"
.br
.in -1c
.SH "Detailed Description"
.PP 
Basic \fBKNewStuff\fP class with predefined actions. 

This class is used for data uploads and installation. 
.PP
.nf
 QString payload, preview;
 KNewStuffGeneric *ns = new KNewStuffGeneric('kamikaze/level', this);
 ns->upload(payload, preview);

.fi
.PP
.PP
\fBAuthor:\fP
.RS 4
Cornelius Schumacher (schumacher@kde.org) 
.RE
.PP
\fBMaintainer:\fP.RS 4
Josef Spillner (spillner@kde.org) 
.RE
.PP

.PP
Definition at line 42 of file knewstuffgeneric.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KNewStuffGeneric::KNewStuffGeneric (const \fBQString\fP & type, \fBQWidget\fP * parent = \fC0\fP)"
.PP
Constructor. 
.PP
\fBParameters:\fP
.RS 4
\fItype\fP a Hotstuff data type such as 'korganizer/calendar' 
.br
\fIparent\fP the parent window. 
.RE
.PP

.PP
Definition at line 40 of file knewstuffgeneric.cpp.
.SH "Member Function Documentation"
.PP 
.SS "bool KNewStuffGeneric::install (const \fBQString\fP & fileName)\fC [virtual]\fP"
.PP
Installs a downloaded file according to the application's configuration. 
.PP
\fBParameters:\fP
.RS 4
\fIfileName\fP filename of the donwloaded file 
.RE
.PP
\fBReturns:\fP
.RS 4
\fCtrue\fP in case of installation success, \fCfalse\fP otherwise 
.RE
.PP

.PP
Implements \fBKNewStuff\fP.
.PP
Definition at line 50 of file knewstuffgeneric.cpp.
.PP
References QString::isEmpty(), QFile::remove(), and QStringList::split().
.SS "bool KNewStuffGeneric::createUploadFile (const \fBQString\fP & fileName)\fC [virtual]\fP"
.PP
Creates a file suitable for upload. 
.PP
Note that this method always fails, since using KNewStuffGeneric means that the provided file must already be in a usable format.
.PP
\fBParameters:\fP
.RS 4
\fIfileName\fP the name of the file to upload after its creation 
.RE
.PP
\fBReturns:\fP
.RS 4
\fCtrue\fP in case of creation success, \fCfalse\fP otherwise 
.RE
.PP

.PP
Implements \fBKNewStuff\fP.
.PP
Definition at line 83 of file knewstuffgeneric.cpp.
.SS "\fBQString\fP KNewStuffGeneric::downloadDestination (\fBKNS::Entry\fP * entry)\fC [virtual]\fP"
.PP
Queries the preferred destination file for a download. 
.PP
\fBParameters:\fP
.RS 4
\fIentry\fP a Hotstuff data entry 
.RE
.PP
\fBReturns:\fP
.RS 4
destination filename, or 0 to return directory only 
.RE
.PP

.PP
Reimplemented from \fBKNewStuff\fP.
.PP
Definition at line 127 of file knewstuffgeneric.cpp.
.PP
References KNewStuff::parentWidget().

.SH "Author"
.PP 
Generated automatically by Doxygen for knewstuff Library from the source code.
