Engines
setupdevicejob.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef SETUPDEVICEJOB_H
00020 #define SETUPDEVICEJOB_H
00021
00022 #include "modeljob.h"
00023
00024 class SetupDeviceJob : public ModelJob
00025 {
00026 Q_OBJECT
00027
00028 public:
00029 SetupDeviceJob(KFilePlacesModel* model, QModelIndex index,
00030 QObject* parent = 0)
00031 : ModelJob(parent, model, index, "Setup Device")
00032 {
00033 connect(model, SIGNAL(setupDone(QModelIndex,bool)),
00034 SLOT(setupDone(QModelIndex,bool)));
00035 connect(model, SIGNAL(errorMessage(QString)),
00036 SLOT(setupError(QString)));
00037 }
00038
00039 void start()
00040 {
00041 m_model->requestSetup(m_index);
00042 }
00043
00044 private slots:
00045 void setupDone(const QModelIndex& index, bool success);
00046 void setupError(const QString& message);
00047 };
00048
00049 #endif // SETUPDEVICEJOB_H