1 | /* |
2 | SPDX-FileCopyrightText: 2022 David Faure <faure@kde.org> |
3 | SPDX-FileCopyrightText: 2022 Harald Sitter <sitter@kde.org> |
4 | SPDX-License-Identifier: LGPL-2.0-or-later |
5 | */ |
6 | |
7 | #ifndef KIO_WORKERFACTORY_H |
8 | #define KIO_WORKERFACTORY_H |
9 | |
10 | #include "kiocore_export.h" |
11 | #include <QObject> |
12 | #include <memory> |
13 | |
14 | namespace KIO |
15 | { |
16 | |
17 | class WorkerBase; |
18 | |
19 | class KIOCORE_EXPORT WorkerFactory : public QObject |
20 | { |
21 | Q_OBJECT |
22 | public: |
23 | explicit WorkerFactory(QObject *parent = nullptr); |
24 | |
25 | virtual std::unique_ptr<WorkerBase> createWorker(const QByteArray &pool, const QByteArray &app) = 0; |
26 | }; |
27 | |
28 | } // namespace KIO |
29 | |
30 | #endif // KIO_WORKERFACTORY_H |
31 | |