Plasma5Support

modeljob.h
1/*
2 SPDX-FileCopyrightText: 2008 Alex Merry <alex.merry@kdemail.net>
3
4 SPDX-License-Identifier: LGPL-2.1-or-later
5*/
6#pragma once
7
8#include <Plasma5Support/ServiceJob>
9#include <kfileplacesmodel.h>
10
11class ModelJob : public Plasma5Support::ServiceJob
12{
14
15public:
16 ModelJob(QObject *parent, KFilePlacesModel *model, const QModelIndex &index, const QString &operation, const QVariantMap &parameters = QVariantMap())
17 : ServiceJob(QString::number(index.row()), operation, parameters, parent)
18 , m_model(model)
19 , m_index(index)
20 {
21 }
22
23protected:
24 KFilePlacesModel *m_model;
25 QModelIndex m_index;
26};
This class provides jobs for use with Plasma5Support::Service.
Definition servicejob.h:39
QVariantMap parameters() const
ServiceJob(const QString &destination, const QString &operation, const QVariantMap &parameters, QObject *parent=nullptr)
Default constructor.
KIOCORE_EXPORT QString number(KIO::filesize_t size)
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:57 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.