summaryrefslogtreecommitdiffstats
path: root/src/remoteobjects/qremoteobjectsource.cpp
diff options
context:
space:
mode:
authorBogDan Vatra <bogdan@kdab.com>2017-10-24 11:08:38 +0300
committerBogDan Vatra <bogdan@kdab.com>2017-11-02 12:55:25 +0000
commitf4262ca4b906816578be780ab0d25e592b566957 (patch)
tree3750b31a8c9ee177c5665ef0d7b2c030d8cedf95 /src/remoteobjects/qremoteobjectsource.cpp
parentfbdde41c561e7ab2fa51e1180519f9b1e51ab5ad (diff)
Send also the methods and then signals parameter names
[ChangeLog] The methods and then signals parameter names are useful when acquire a dynamic object. Change-Id: I2b2acfc06c66de0bc4684fda0cc43c364a575ccb Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
Diffstat (limited to 'src/remoteobjects/qremoteobjectsource.cpp')
-rw-r--r--src/remoteobjects/qremoteobjectsource.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/remoteobjects/qremoteobjectsource.cpp b/src/remoteobjects/qremoteobjectsource.cpp
index 398bf7f..9fff62f 100644
--- a/src/remoteobjects/qremoteobjectsource.cpp
+++ b/src/remoteobjects/qremoteobjectsource.cpp
@@ -281,6 +281,13 @@ DynamicApiMap::DynamicApiMap(const QMetaObject *metaObject, const QString &name,
m_objectSignature = qtro_classinfo_signature(metaObject);
}
+QList<QByteArray> DynamicApiMap::signalParameterNames(int index) const
+{
+ const int objectIndex = m_signals.at(index);
+ checkCache(objectIndex);
+ return m_cachedMetamethod.parameterNames();
+}
+
int DynamicApiMap::parameterCount(int objectIndex) const
{
checkCache(objectIndex);
@@ -313,4 +320,11 @@ const QByteArray DynamicApiMap::typeName(int index) const
return m_cachedMetamethod.typeName();
}
+QList<QByteArray> DynamicApiMap::methodParameterNames(int index) const
+{
+ const int objectIndex = m_methods.at(index);
+ checkCache(objectIndex);
+ return m_cachedMetamethod.parameterNames();
+}
+
QT_END_NAMESPACE