File indexing completed on 2024-12-15 03:45:00

0001 /*
0002     SPDX-FileCopyrightText: 2017 Volker Krause <vkrause@kde.org>
0003 
0004     SPDX-License-Identifier: MIT
0005 */
0006 
0007 #include "job.h"
0008 
0009 using namespace KUserFeedback::Console;
0010 
0011 Job::Job(QObject* parent)
0012     : QObject(parent)
0013 {
0014 }
0015 
0016 Job::~Job() = default;
0017 
0018 void Job::emitError(const QString& msg)
0019 {
0020     Q_EMIT error(msg);
0021     deleteLater();
0022 }
0023 
0024 void Job::emitFinished()
0025 {
0026     Q_EMIT finished();
0027     deleteLater();
0028 }
0029 
0030 #include "moc_job.cpp"