dde-dock/frame/util/pluginloader.h
Robert 0427e19b72
chore: adapt license and copyright (#680)
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
2022-09-06 11:36:55 +08:00

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