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 #ifndef KUSERFEEDBACK_CONSOLE_JOB_H
0008 #define KUSERFEEDBACK_CONSOLE_JOB_H
0009 
0010 #include <QObject>
0011 
0012 namespace KUserFeedback {
0013 namespace Console {
0014 
0015 class Job : public QObject
0016 {
0017     Q_OBJECT
0018 public:
0019     explicit Job(QObject *parent = nullptr);
0020     ~Job() override;
0021 
0022 Q_SIGNALS:
0023     void info(const QString &msg);
0024     void error(const QString &msg);
0025     void finished();
0026 
0027 protected:
0028     void emitError(const QString &msg);
0029     void emitFinished();
0030 };
0031 
0032 }
0033 }
0034 
0035 #endif // KUSERFEEDBACK_CONSOLE_JOB_H