38 #ifndef GAMMARAY_TOOLFACTORY_H
39 #define GAMMARAY_TOOLFACTORY_H
44 #include <QStringList>
68 virtual QString
id()
const = 0;
74 virtual QString
name()
const = 0;
104 template <
typename Type,
typename Tool>
110 return QStringList(Type::staticMetaObject.className());
113 virtual inline QString
id()
const
115 return Tool::staticMetaObject.className();
120 new Tool(probe, probe->
probe());
132 Q_DECLARE_METATYPE(
GammaRay::ToolFactory *)
134 #if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
135 #define Q_PLUGIN_METADATA(x)
Declares the ProbeInterface abstract base class.
An abstract interface for accessing the core GammaRay probe.
Definition: probeinterface.h:57
Definition: endpoint.h:41
virtual QObject * probe() const =0