Debian Codegraph @

gui/pinyindictmanager/pipelinejob.h

raw
1 /*
2 * SPDX-FileCopyrightText: 2018-2018 CSSlayer <[email protected]>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-or-later
5 *
6 */
7 #ifndef _PINYINDICTMANAGER_PIPELINEJOB_H_
8 #define _PINYINDICTMANAGER_PIPELINEJOB_H_
9
10 #include <QMessageBox>
11 #include <QObject>
12
13 namespace fcitx {
14
15 class PipelineJob : public QObject {
16 Q_OBJECT
17 public:
18 PipelineJob(QObject *parent = nullptr);
19
20 virtual void start() = 0;
21 virtual void abort() = 0;
22 virtual void cleanUp() = 0;
23
24 Q_SIGNALS:
25 void finished(bool success);
26 void message(QMessageBox::Icon icon, const QString &message);
27 };
28
29 } // namespace fcitx
30
31 #endif // _PINYINDICTMANAGER_PIPELINEJOB_H_