21 #include <tdeaction.h>
22 #include <tdeapplication.h>
24 #include <tdelocale.h>
25 #include <kstandarddirs.h>
29 #include "knewstuff.h"
33 TDEAction* KNS::standardAction(
const TQString& what,
34 const TQObject *recvr,
35 const char *slot, TDEActionCollection* parent,
38 return new TDEAction(i18n(
"Download New %1").arg(what),
"knewstuff",
39 0, recvr, slot, parent, name);
44 mEngine =
new Engine(
this, type, parentWidget );
49 mEngine =
new Engine(
this, type, providerList, parentWidget );
54 return mEngine->type();
59 return mEngine->parentWidget();
62 TDENewStuff::~TDENewStuff()
74 return TDEGlobal::dirs()->saveLocation(
"tmp" ) +
75 TDEApplication::randomString( 10 );
85 mEngine->upload(fileName, previewName);
TDENewStuff(const TQString &type, TQWidget *parentWidget=0)
Constructor.
TQWidget * parentWidget() const
Return parent widget.
TDENewStuff data entry container.
Handles security releated issues, like signing, verifying.
virtual TQString downloadDestination(KNS::Entry *entry)
Return a filename which should be used as destination for downloading the specified new stuff entry...
void download()
Start download process.
void upload()
Start upload process.
Central class combining all possible TDENewStuff operations.
TQString type() const
Return type of data.