File indexing completed on 2024-04-21 03:55:15
0001 /* 0002 SPDX-FileCopyrightText: 2022 David Faure <faure@kde.org> 0003 SPDX-FileCopyrightText: 2022 Harald Sitter <sitter@kde.org> 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef KIO_WORKERFACTORY_H 0008 #define KIO_WORKERFACTORY_H 0009 0010 #include "kiocore_export.h" 0011 #include <QObject> 0012 #include <memory> 0013 0014 namespace KIO 0015 { 0016 0017 class WorkerBase; 0018 0019 class KIOCORE_EXPORT WorkerFactory : public QObject 0020 { 0021 Q_OBJECT 0022 public: 0023 explicit WorkerFactory(QObject *parent = nullptr); 0024 0025 virtual std::unique_ptr<WorkerBase> createWorker(const QByteArray &pool, const QByteArray &app) = 0; 0026 }; 0027 0028 } // namespace KIO 0029 0030 #endif // KIO_WORKERFACTORY_H