33 #ifndef GAMMARAY_TOOLFACTORY_H
34 #define GAMMARAY_TOOLFACTORY_H
37 #include <ui/tooluifactory.h>
40 #include <QStringList>
64 virtual QString
id()
const = 0;
70 virtual QString
name()
const = 0;
100 template <
typename Type,
typename Tool>
106 return QStringList(Type::staticMetaObject.className());
109 virtual inline QString
id()
const
111 return Tool::staticMetaObject.className();
116 new Tool(probe, probe->
probe());
129 template <
typename Type,
typename Tool,
typename ToolUi>
135 return QStringList(Type::staticMetaObject.className());
138 virtual inline QString
id()
const
140 return Tool::staticMetaObject.className();
145 new Tool(probe, probe->
probe());
153 virtual inline QWidget *createWidget(QWidget *parentWidget)
155 return new ToolUi(parentWidget);
158 virtual bool remotingSupported()
const
167 Q_DECLARE_METATYPE(GammaRay::ToolFactory *)
169 #if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
170 #define Q_PLUGIN_METADATA(x)