QortalOS Brooklyn for Raspberry Pi 4
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.
 
 
 
 
 
 

30 lines
783 B

/*
SPDX-FileCopyrightText: 2008 Alex Merry <[email protected]>
SPDX-License-Identifier: LGPL-2.1-or-later
*/
#pragma once
#include "modeljob.h"
class SetupDeviceJob : public ModelJob
{
Q_OBJECT
public:
SetupDeviceJob(KFilePlacesModel *model, QModelIndex index, QObject *parent = nullptr)
: ModelJob(parent, model, index, QStringLiteral("Setup Device"))
{
connect(model, &KFilePlacesModel::setupDone, this, &SetupDeviceJob::setupDone);
connect(model, &KFilePlacesModel::errorMessage, this, &SetupDeviceJob::setupError);
}
void start() override
{
m_model->requestSetup(m_index);
}
private Q_SLOTS:
void setupDone(const QModelIndex &index, bool success);
void setupError(const QString &message);
};