KNS::Engine Class Reference
Central class combining all possible KNewStuff operations. More...
#include <engine.h>
Inheritance diagram for KNS::Engine:


Public Member Functions | |
Engine (KNewStuff *newStuff, const QString &type, QWidget *parentWidget=0) | |
Engine (KNewStuff *newStuff, const QString &type, const QString &providerList, QWidget *parentWidget=0) | |
virtual | ~Engine () |
QString | type () const |
QWidget * | parentWidget () const |
void | download () |
void | upload (const QString &fileName=QString::null, const QString &previewName=QString::null) |
void | download (Entry *entry) |
void | requestMetaInformation (Provider *provider) |
void | upload (Entry *entry) |
Protected Slots | |
void | getMetaInformation (Provider::List *providers) |
void | selectUploadProvider (Provider::List *providers) |
void | slotNewStuffJobData (KIO::Job *job, const QByteArray &data) |
void | slotNewStuffJobResult (KIO::Job *job) |
void | slotDownloadJobResult (KIO::Job *job) |
void | slotUploadPayloadJobResult (KIO::Job *job) |
void | slotUploadPreviewJobResult (KIO::Job *job) |
void | slotUploadMetaJobResult (KIO::Job *job) |
Protected Member Functions | |
bool | createMetaFile (Entry *) |
Detailed Description
Central class combining all possible KNewStuff operations.In most cases, Engine objects are built and used internally. Using this class explicitely does however give fine-grained control about the upload and download operations.
- Author:
- Cornelius Schumacher (schumacher@kde.org)
- Maintainer:
- Josef Spillner (spillner@kde.org)
Definition at line 51 of file engine.h.
Constructor & Destructor Documentation
|
Constructor.
Definition at line 42 of file engine.cpp. |
|
Constructor.
Definition at line 53 of file engine.cpp. |
|
Destructor.
Definition at line 65 of file engine.cpp. |
Member Function Documentation
|
Returns the previously set data type.
Definition at line 83 of file engine.h. Referenced by KNewStuff::type(). |
|
Returns the previously set parent widget.
Definition at line 90 of file engine.h. Referenced by KNewStuff::parentWidget(). |
|
Initiates the download process, retrieving provider lists and invoking the download dialog.
Definition at line 73 of file engine.cpp. References KNS::ProviderLoader::load(). Referenced by KNewStuff::download(). |
|
Initiates the upload process, invoking the provider selection dialog and the file upload dialog.
Definition at line 217 of file engine.cpp. References KNS::ProviderLoader::load(). Referenced by KNewStuff::upload(). |
|
Downloads the specified data file.
Definition at line 178 of file engine.cpp. References KNewStuff::downloadDestination(), and KNS::Entry::payload(). |
|
Asynchronous lookup of provider information such as upload and download locations, icon etc.
Definition at line 248 of file engine.cpp. References KNS::UploadDialog::setPreviewFile(). |
|
Uploads the specified data file to the provider-dependent location.
Definition at line 260 of file engine.cpp. References KNewStuff::createUploadFile(), KNS::Entry::fullName(), KNS::Entry::langs(), KNS::Provider::noUpload(), KNS::Provider::noUploadUrl(), KNS::Entry::setPayload(), and KNS::Provider::uploadUrl(). |
The documentation for this class was generated from the following files: