29 lines
793 B
C++
29 lines
793 B
C++
#pragma once
|
|
|
|
#include "model/EditorTypes.h"
|
|
#include "tkrShapeProvider.h"
|
|
#include <QPluginLoader>
|
|
|
|
namespace TikzRefinery {
|
|
|
|
// Owns one immutable module binding for this initial extraction. No hot unloading.
|
|
class tkrShapePluginStore final
|
|
{
|
|
public:
|
|
explicit tkrShapePluginStore(const QString &strModulePath = {});
|
|
const tkrShapeProvider *provider() const;
|
|
const OperationResult &loadResult() const;
|
|
const QString &runtimeIdentity() const;
|
|
QString description() const;
|
|
QString modulePath() const;
|
|
private:
|
|
QPluginLoader m_loader;
|
|
const tkrShapeProvider *m_pProvider = nullptr; // Borrowed from the pinned loader.
|
|
OperationResult m_result;
|
|
QString m_strRuntimeIdentity;
|
|
QString m_strName;
|
|
QString m_strVersion;
|
|
};
|
|
|
|
} // namespace TikzRefinery
|