GammaRay API Documentaion
2.6.0
|
An abstract interface for accessing the core GammaRay probe. More...
#include <probeinterface.h>
Public Member Functions | |
virtual void | discoverObject (QObject *object)=0 |
virtual bool | filterObject (QObject *object) const =0 |
virtual void | installGlobalEventFilter (QObject *filter)=0 |
virtual bool | needsObjectDiscovery () const =0 |
virtual QAbstractItemModel * | objectListModel () const =0 |
virtual QAbstractItemModel * | objectTreeModel () const =0 |
virtual QObject * | probe () const =0 |
virtual void | registerModel (const QString &objectName, QAbstractItemModel *model)=0 |
virtual void | registerSignalSpyCallbackSet (const SignalSpyCallbackSet &callbacks)=0 |
virtual void | selectObject (QObject *object, const QPoint &pos=QPoint())=0 |
virtual void | selectObject (QObject *object, const QString &toolId, const QPoint &pos=QPoint())=0 |
virtual void | selectObject (void *object, const QString &typeName)=0 |
An abstract interface for accessing the core GammaRay probe.
The ProbeInterface is an abstract interface that allows one to access the core GammaRay probe without linking to it.
|
pure virtual |
Notify the probe about QObjects your plug-in can discover by using information about the types it can handle. Only use this if needsObjectDiscovery() returns true
to maximise performance.
Implemented in GammaRay::Probe.
|
pure virtual |
Determines if the specified QObject belongs to the GammaRay Probe or Window.
These objects should not be tracked or shown to the user, hence must be explictly filtered.
object | is a pointer to a QObject instance. |
Implemented in GammaRay::Probe.
|
pure virtual |
Install a global event filter. Use this rather than installing the filter manually on QCoreApplication, this will filter out GammaRay-internal events and objects already for you.
Implemented in GammaRay::Probe.
|
pure virtual |
Returns true
if we haven't been able to track all objects from startup, ie. usually when attaching at runtime. If this is the case, we try to discover QObjects by walking the hierarchy, starting from known singletons, and by watching out for unknown receivers of events. This is far from complete obviously, and plug-ins can help finding more objects, using specific knowledge about the types they are responsible for.
Connect to the objectAdded(QObject*) signal on probe(), and call discoverObject(QObject*) for "your" objects.
Implemented in GammaRay::Probe.
|
pure virtual |
Returns the object list model.
Implemented in GammaRay::Probe.
|
pure virtual |
Returns the object tree model.
Implemented in GammaRay::Probe.
|
pure virtual |
Returns the probe QObject for connecting signals.
Implemented in GammaRay::Probe.
|
pure virtual |
Register a model for remote usage.
objectName | unique identifier for the model, typically in reverse domain notation. |
Implemented in GammaRay::Probe.
|
pure virtual |
Register a signal spy callback set. Signal indexes provided as arguments are mapped to method indexes, ie. argument semantics are the same with Qt4 and Qt5.
Implemented in GammaRay::Probe.
|
pure virtual |
Notify the probe about the user selecting one of "your" objects via in-app interaction. If you know the exact position the user interacted with, pass that in as pos
.
Implemented in GammaRay::Probe.
|
pure virtual |
Notify the probe about the user selecting one of "your" objects.
Implemented in GammaRay::Probe.