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

Signals | |
| void | uploadFinished (bool result) |
Public Member Functions | |
| void | download (Entry *entry) |
| void | download () |
| Engine (KNewStuff *newStuff, const QString &type, const QString &providerList, QWidget *parentWidget=0) | |
| Engine (KNewStuff *newStuff, const QString &type, QWidget *parentWidget=0) | |
| void | ignoreInstallResult (bool ignore) |
| QWidget * | parentWidget () const |
| void | requestMetaInformation (Provider *provider) |
| QString | type () const |
| void | upload (Entry *entry) |
| void | upload (const QString &fileName=QString::null, const QString &previewName=QString::null) |
| virtual | ~Engine () |
Protected Slots | |
| void | getMetaInformation (Provider::List *providers) |
| void | selectUploadProvider (Provider::List *providers) |
| void | slotDownloadJobResult (KIO::Job *job) |
| void | slotNewStuffJobData (KIO::Job *job, const QByteArray &data) |
| void | slotNewStuffJobResult (KIO::Job *job) |
| void | slotUploadMetaJobResult (KIO::Job *job) |
| void | slotUploadPayloadJobResult (KIO::Job *job) |
| void | slotUploadPreviewJobResult (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.
- Maintainer:
- Josef Spillner (spillner@kde.org)
Definition at line 51 of file engine.h.
Constructor & Destructor Documentation
Constructor.
- Parameters:
-
newStuff a KNewStuff object type the Hotstuff data type such as "korganizer/calendar" parentWidget the parent window
Definition at line 48 of file engine.cpp.
| Engine::Engine | ( | KNewStuff * | newStuff, | |
| const QString & | type, | |||
| const QString & | providerList, | |||
| QWidget * | parentWidget = 0 | |||
| ) |
Constructor.
- Parameters:
-
newStuff a KNewStuff object type the Hotstuff data type such as "korganizer/calendar" providerList the URL of the provider list parentWidget the parent window
Definition at line 59 of file engine.cpp.
| Engine::~Engine | ( | ) | [virtual] |
Member Function Documentation
Definition at line 333 of file engine.cpp.
| void Engine::download | ( | Entry * | entry | ) |
Downloads the specified data file.
- Parameters:
-
entry the Hotstuff data object to be downloaded
Definition at line 185 of file engine.cpp.
| void Engine::download | ( | ) |
Initiates the download process, retrieving provider lists and invoking the download dialog.
Definition at line 81 of file engine.cpp.
| void Engine::getMetaInformation | ( | Provider::List * | providers | ) | [protected, slot] |
Definition at line 91 of file engine.cpp.
| void Engine::ignoreInstallResult | ( | bool | ignore | ) |
Ignores the return value of the install method.
Used internally to avoid showing of the success/failure dialog when installation is done in another place, like in KNewStuffSecure
Definition at line 425 of file engine.cpp.
| QWidget* KNS::Engine::parentWidget | ( | ) | const [inline] |
| void Engine::requestMetaInformation | ( | Provider * | provider | ) |
Asynchronous lookup of provider information such as upload and download locations, icon etc.
- Parameters:
-
provider the Hotstuff provider to request information from
Definition at line 258 of file engine.cpp.
| void Engine::selectUploadProvider | ( | Provider::List * | providers | ) | [protected, slot] |
Definition at line 238 of file engine.cpp.
| void Engine::slotDownloadJobResult | ( | KIO::Job * | job | ) | [protected, slot] |
Definition at line 207 of file engine.cpp.
| void Engine::slotNewStuffJobData | ( | KIO::Job * | job, | |
| const QByteArray & | data | |||
| ) | [protected, slot] |
Definition at line 118 of file engine.cpp.
| void Engine::slotNewStuffJobResult | ( | KIO::Job * | job | ) | [protected, slot] |
Definition at line 129 of file engine.cpp.
| void Engine::slotUploadMetaJobResult | ( | KIO::Job * | job | ) | [protected, slot] |
Definition at line 410 of file engine.cpp.
| void Engine::slotUploadPayloadJobResult | ( | KIO::Job * | job | ) | [protected, slot] |
Definition at line 367 of file engine.cpp.
| void Engine::slotUploadPreviewJobResult | ( | KIO::Job * | job | ) | [protected, slot] |
Definition at line 391 of file engine.cpp.
| QString KNS::Engine::type | ( | ) | const [inline] |
| void Engine::upload | ( | Entry * | entry | ) |
Uploads the specified data file to the provider-dependent location.
- Parameters:
-
entry the Hotstuff data object to be uploaded
Definition at line 271 of file engine.cpp.
| void Engine::upload | ( | const QString & | fileName = QString::null, |
|
| const QString & | previewName = QString::null | |||
| ) |
Initiates the upload process, invoking the provider selection dialog and the file upload dialog.
- Parameters:
-
fileName name of the payload data file previewName name of the preview image file
Definition at line 227 of file engine.cpp.
| void KNS::Engine::uploadFinished | ( | bool | result | ) | [signal] |
Emitted when the upload has finished.
- Parameters:
-
result indicates the success/failure of the upload
The documentation for this class was generated from the following files:
KDE 3.5 API Reference