KIO

workerfactory.h
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
14namespace KIO
15{
16
17class WorkerBase;
18
19class KIOCORE_EXPORT WorkerFactory : public QObject
20{
21 Q_OBJECT
22public:
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
A namespace for KIO globals.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:18:52 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.