mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00

Modify project to pass the REUSE check Log: Modify project to pass the REUSE check Task: https://pms.uniontech.com/task-view-185215.html Change-Id: Ie954cf985f16c1a243bfc912aa7458c6e85ce9de
38 lines
805 B
C++
38 lines
805 B
C++
// SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd.
|
|
//
|
|
// SPDX-License-Identifier: LGPL-3.0-or-later
|
|
|
|
#ifndef PLUGINLOADER_H
|
|
#define PLUGINLOADER_H
|
|
|
|
#include <QThread>
|
|
|
|
class PluginLoader : public QThread
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit PluginLoader(const QString &pluginDirPath, QObject *parent);
|
|
static QString libUsedDtkCoreFileName(const QString &fileName);
|
|
/**
|
|
* @brief realFileName 获取软连接的真实文件的路径
|
|
* @param fileName 文件地址
|
|
* @return
|
|
*/
|
|
static QString realFileName(QString fileName);
|
|
|
|
signals:
|
|
void finished() const;
|
|
void pluginFounded(const QString &pluginFile) const;
|
|
|
|
protected:
|
|
void run();
|
|
|
|
QString dtkCoreFileName();
|
|
|
|
private:
|
|
QString m_pluginDirPath;
|
|
};
|
|
|
|
#endif // PLUGINLOADER_H
|