mirror of https://github.com/Qortal/Brooklyn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
633 B
26 lines
633 B
/* |
|
SPDX-FileCopyrightText: 2008 Alex Merry <[email protected]> |
|
|
|
SPDX-License-Identifier: LGPL-2.1-or-later |
|
*/ |
|
#pragma once |
|
|
|
#include <Plasma/ServiceJob> |
|
#include <kfileplacesmodel.h> |
|
|
|
class ModelJob : public Plasma::ServiceJob |
|
{ |
|
Q_OBJECT |
|
|
|
public: |
|
ModelJob(QObject *parent, KFilePlacesModel *model, const QModelIndex &index, const QString &operation, const QVariantMap ¶meters = QVariantMap()) |
|
: ServiceJob(QString::number(index.row()), operation, parameters, parent) |
|
, m_model(model) |
|
, m_index(index) |
|
{ |
|
} |
|
|
|
protected: |
|
KFilePlacesModel *m_model; |
|
QModelIndex m_index; |
|
};
|
|
|