summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJannis Voelker <jannis.voelker@basyskom.com>2024-02-27 15:50:07 +0100
committerJannis Voelker <jannis.voelker@basyskom.com>2024-02-29 12:46:18 +0100
commit65dab43d525ee9a40cfe598847a4d64c49112d94 (patch)
tree842da79cdc2401a933ab29071eec599f7496a118
parente86b0d8f9b80998a8ef57e872defe388a59a81d2 (diff)
Pass QString, QStringList and QVariant by cref in new signals
Pick-to: 6.7 Change-Id: I8ceafdbd479519d6e10d69c986d6b0b1918ea4c9 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
-rw-r--r--src/opcua/client/qopcuaclient.cpp4
-rw-r--r--src/opcua/client/qopcuaclient.h4
-rw-r--r--src/opcua/client/qopcuanode.cpp2
-rw-r--r--src/opcua/client/qopcuanode.h2
4 files changed, 6 insertions, 6 deletions
diff --git a/src/opcua/client/qopcuaclient.cpp b/src/opcua/client/qopcuaclient.cpp
index 5a991f9..443bea7 100644
--- a/src/opcua/client/qopcuaclient.cpp
+++ b/src/opcua/client/qopcuaclient.cpp
@@ -262,7 +262,7 @@ Q_DECLARE_LOGGING_CATEGORY(QT_OPCUA)
*/
/*!
- \fn void QOpcUaClient::registerNodesFinished(QStringList nodesToRegister, QStringList registeredNodeIds, QOpcUa::UaStatusCode statusCode)
+ \fn void QOpcUaClient::registerNodesFinished(const QStringList &nodesToRegister, const QStringList &registeredNodeIds, QOpcUa::UaStatusCode statusCode)
\since 6.7
This signal is emitted after a \l registerNodes() operation has finished.
@@ -274,7 +274,7 @@ Q_DECLARE_LOGGING_CATEGORY(QT_OPCUA)
*/
/*!
- \fn void QOpcUaClient::unregisterNodesFinished(QStringList nodesToUnregister, QOpcUa::UaStatusCode statusCode)
+ \fn void QOpcUaClient::unregisterNodesFinished(const QStringList &nodesToUnregister, QOpcUa::UaStatusCode statusCode)
\since 6.7
This signal is emitted after a \l unregisterNodes() operation has finished.
diff --git a/src/opcua/client/qopcuaclient.h b/src/opcua/client/qopcuaclient.h
index 2331f3f..19013d7 100644
--- a/src/opcua/client/qopcuaclient.h
+++ b/src/opcua/client/qopcuaclient.h
@@ -139,8 +139,8 @@ Q_SIGNALS:
void deleteReferenceFinished(QString sourceNodeId, QString referenceTypeId, QOpcUaExpandedNodeId targetNodeId, bool isForwardReference,
QOpcUa::UaStatusCode statusCode);
void passwordForPrivateKeyRequired(QString keyFilePath, QString *password, bool previousTryWasInvalid);
- void registerNodesFinished(QStringList nodesToRegister, QStringList registeredNodeIds, QOpcUa::UaStatusCode statusCode);
- void unregisterNodesFinished(QStringList nodesToUnregister, QOpcUa::UaStatusCode statusCode);
+ void registerNodesFinished(const QStringList &nodesToRegister, const QStringList &registeredNodeIds, QOpcUa::UaStatusCode statusCode);
+ void unregisterNodesFinished(const QStringList &nodesToUnregister, QOpcUa::UaStatusCode statusCode);
private:
Q_DISABLE_COPY(QOpcUaClient)
diff --git a/src/opcua/client/qopcuanode.cpp b/src/opcua/client/qopcuanode.cpp
index 4b78f01..0d8f2d0 100644
--- a/src/opcua/client/qopcuanode.cpp
+++ b/src/opcua/client/qopcuanode.cpp
@@ -154,7 +154,7 @@ QT_BEGIN_NAMESPACE
*/
/*!
- \fn void QOpcUaNode::valueAttributeUpdated(QVariant value)
+ \fn void QOpcUaNode::valueAttributeUpdated(const QVariant &value)
\since 6.7
This signal is emitted after the value attribute in the attribute cache has been updated by a
diff --git a/src/opcua/client/qopcuanode.h b/src/opcua/client/qopcuanode.h
index 26298dd..f9b65c0 100644
--- a/src/opcua/client/qopcuanode.h
+++ b/src/opcua/client/qopcuanode.h
@@ -85,7 +85,7 @@ Q_SIGNALS:
void attributeWritten(QOpcUa::NodeAttribute attribute, QOpcUa::UaStatusCode statusCode);
void dataChangeOccurred(QOpcUa::NodeAttribute attr, QVariant value);
void attributeUpdated(QOpcUa::NodeAttribute attr, QVariant value);
- void valueAttributeUpdated(QVariant value);
+ void valueAttributeUpdated(const QVariant &value);
void eventOccurred(QVariantList eventFields);
void monitoringStatusChanged(QOpcUa::NodeAttribute attr, QOpcUaMonitoringParameters::Parameters items,