GammaRay
2.2.0
|
An abstract interface for probe tools. More...
#include <toolfactory.h>
Public Member Functions | |
virtual QString | id () const =0 |
virtual void | init (ProbeInterface *probe)=0 |
virtual bool | isHidden () const =0 |
virtual QString | name () const =0 |
virtual QStringList | supportedTypes () const =0 |
An abstract interface for probe tools.
The ToolFactory class is an abstract base class for creating probe tools for GammaRay. Each tool must have a unique identifier.
|
pure virtual |
Unique id of this tool
Implemented in GammaRay::StandardToolFactory2< Type, Tool, ToolUi >, and GammaRay::StandardToolFactory< Type, Tool >.
|
pure virtual |
Initialize the tool. Implement this method to do non-GUI initialization, such as creating object tracking models etc.
probe | The probe interface allowing access to the object models. |
Implemented in GammaRay::StandardToolFactory2< Type, Tool, ToolUi >, and GammaRay::StandardToolFactory< Type, Tool >.
|
pure virtual |
Allows to hide a plug-in from the UI. This is useful for plug-ins that only provide support for additional data types.
Implemented in GammaRay::StandardToolFactory2< Type, Tool, ToolUi >, and GammaRay::StandardToolFactory< Type, Tool >.
|
pure virtual |
Human readable name of this tool.
|
pure virtual |
Class names of types this tool can handle. The tool will only be activated if an object of one of these types is seen in the probed application.
Implemented in GammaRay::StandardToolFactory2< Type, Tool, ToolUi >, and GammaRay::StandardToolFactory< Type, Tool >.