MCPcopy Create free account
hub / github.com/KDAB/GammaRay / invokeObject

Method invokeObject

common/endpoint.cpp:202–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202void Endpoint::invokeObject(const QString &objectName, const char *method,
203 const QVariantList &args) const
204{
205 if (!isConnected())
206 return;
207
208 ObjectInfo *obj = m_nameMap.value(objectName, nullptr);
209#if !defined(NDEBUG)
210 Q_ASSERT(obj);
211 Q_ASSERT(obj->address != Protocol::InvalidObjectAddress);
212#else
213 if (!obj || obj->address == Protocol::InvalidObjectAddress)
214 return;
215#endif
216
217 Message msg(obj->address, Protocol::MethodCall);
218 const QByteArray name(method);
219 Q_ASSERT(!name.isEmpty());
220 msg << name << args;
221 send(msg);
222}
223
224void Endpoint::invokeObjectLocal(QObject *object, const char *method,
225 const QVariantList &args)

Callers 15

detachProbeMethod · 0.45
quitHostMethod · 0.45
markObjectAsFavoriteMethod · 0.45
unfavoriteObjectMethod · 0.45
requestElementsAtMethod · 0.45
pickElementIdMethod · 0.45
sendKeyEventMethod · 0.45
sendMouseEventMethod · 0.45
sendWheelEventMethod · 0.45
sendTouchEventMethod · 0.45
setViewActiveMethod · 0.45
sendUserViewportMethod · 0.45

Calls 2

valueMethod · 0.45
isEmptyMethod · 0.45

Tested by 15

selectWindowMethod · 0.36
setCustomRenderModeMethod · 0.36
checkFeaturesMethod · 0.36
setOverlaySettingsMethod · 0.36
checkOverlaySettingsMethod · 0.36
analyzePaintingMethod · 0.36
checkSlowModeMethod · 0.36
setSlowModeMethod · 0.36
setCellHeightMethod · 0.36
setCellWidthMethod · 0.36
setCellZoomMethod · 0.36
analyzePaintingMethod · 0.36