Plasma5Support

setupdevicejob.cpp
1/*
2 SPDX-FileCopyrightText: 2008 Alex Merry <alex.merry@kdemail.net>
3
4 SPDX-License-Identifier: LGPL-2.1-or-later
5*/
6
7#include "setupdevicejob.h"
8
9void SetupDeviceJob::setupDone(const QModelIndex &index, bool success)
10{
11 if (index == m_index) {
12 setError(!success);
13 emitResult();
14 }
15}
16
17void SetupDeviceJob::setupError(const QString &message)
18{
19 if (!error() || errorText().isEmpty()) {
20 setErrorText(message);
21 }
22}
23
24// vim: sw=4 sts=4 et tw=100
void setErrorText(const QString &errorText)
void emitResult()
int error() const
void setError(int errorCode)
QString errorText() 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.