Engines
modeljob.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 MODELJOB_H
00020 #define MODELJOB_H
00021
00022 #include <Plasma/ServiceJob>
00023 #include <kfileplacesmodel.h>
00024
00025 class ModelJob : public Plasma::ServiceJob
00026 {
00027 Q_OBJECT
00028
00029 public:
00030 ModelJob(QObject* parent, KFilePlacesModel* model,
00031 const QModelIndex& index, const QString& operation,
00032 const QVariantMap& parameters = QVariantMap())
00033 : ServiceJob(QString::number(index.row()), operation, parameters, parent)
00034 , m_model(model)
00035 , m_index(index)
00036 {}
00037
00038 protected:
00039 KFilePlacesModel* m_model;
00040 QModelIndex m_index;
00041 };
00042
00043 #endif // MODELJOB_H
00044