21 #ifndef KNEWSTUFF_ENGINE_H
22 #define KNEWSTUFF_ENGINE_H
31 namespace TDEIO {
class Job; }
52 class TDE_EXPORT
Engine :
public TQObject
64 Engine(
TDENewStuff *newStuff,
const TQString &type, TQWidget *parentWidget = 0 );
73 Engine(
TDENewStuff *newStuff,
const TQString &type,
const TQString &providerList, TQWidget *parentWidget = 0 );
85 TQString
type()
const {
return mType; }
107 void upload(
const TQString &fileName = TQString::null,
const TQString &previewName = TQString::null );
114 void download(
Entry *entry );
122 void requestMetaInformation(
Provider *provider );
129 void upload(
Entry *entry );
136 void ignoreInstallResult(
bool ignore);
144 void getMetaInformation( Provider::List *providers );
145 void selectUploadProvider( Provider::List *providers );
147 void slotNewStuffJobData( TDEIO::Job *job,
const TQByteArray &data );
148 void slotNewStuffJobResult( TDEIO::Job *job );
150 void slotDownloadJobResult( TDEIO::Job *job );
152 void slotUploadPayloadJobResult( TDEIO::Job *job );
153 void slotUploadPreviewJobResult (TDEIO::Job *job );
154 void slotUploadMetaJobResult( TDEIO::Job *job );
157 bool createMetaFile(
Entry * );
160 TQWidget *mParentWidget;
164 TQMap<TDEIO::Job *,TQString> mNewStuffJobData;
165 TQMap<TDEIO::Job *,Provider *> mProviderJobs;
167 TQPtrList<Entry> mNewStuffList;
173 TQString mDownloadDestination;
177 TQString mUploadMetaFile;
178 TQString mUploadFile;
179 TQString mPreviewFile;
180 TQString mProviderList;
Common download dialog for data browsing and installation.
Central class combining all possible TDENewStuff operations.
TQString type() const
Returns the previously set data type.
TQWidget * parentWidget() const
Returns the previously set parent widget.
void uploadFinished(bool result)
Emitted when the upload has finished.
TDENewStuff data entry container.
Dialog displaying a list of Hotstuff providers.
TDENewStuff provider loader.
TDENewStuff provider container.
TDENewStuff file upload dialog.
This class provides the functionality to download and upload "new stuff".
Handles security releated issues, like signing, verifying.