2023-02-16 13:51:55 +08:00
|
|
|
// Copyright (C) 2011 ~ 2018 Deepin Technology Co., Ltd.
|
|
|
|
// SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd.
|
2022-09-06 11:36:55 +08:00
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: LGPL-3.0-or-later
|
2019-01-07 20:33:15 +08:00
|
|
|
|
|
|
|
#ifndef PLUGINLOADER_H
|
|
|
|
#define PLUGINLOADER_H
|
|
|
|
|
|
|
|
#include <QThread>
|
|
|
|
|
|
|
|
class PluginLoader : public QThread
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit PluginLoader(const QString &pluginDirPath, QObject *parent);
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void finished() const;
|
2024-01-04 14:16:57 +08:00
|
|
|
void pluginFound(const QString &pluginFile) const;
|
2019-01-07 20:33:15 +08:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void run();
|
|
|
|
|
|
|
|
private:
|
|
|
|
QString m_pluginDirPath;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // PLUGINLOADER_H
|