aboutsummaryrefslogtreecommitdiffstats
path: root/src/coap/qcoapclient.cpp
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2019-05-14 14:20:24 +0200
committerSona Kurazyan <sona.kurazyan@qt.io>2019-05-14 15:16:09 +0000
commit86b77d2da82697f914889b8377eaf03f671fcb6e (patch)
treed5f66af0a3e20abcee9d5156de5e2f761a68c637 /src/coap/qcoapclient.cpp
parent38f8e9feb94b1a552795af711c3c68c73dd1caba (diff)
Use maximum/minimum instead of max/min
This change is based on the feedback from API review. Change-Id: Ia17d061c60fcf7aa4da38542d96d75ae621f657a Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/coap/qcoapclient.cpp')
-rw-r--r--src/coap/qcoapclient.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/coap/qcoapclient.cpp b/src/coap/qcoapclient.cpp
index 372128a..5469ef2 100644
--- a/src/coap/qcoapclient.cpp
+++ b/src/coap/qcoapclient.cpp
@@ -626,10 +626,10 @@ void QCoapClient::setSocketOption(QAbstractSocket::SocketOption option, const QV
As defined in \l {RFC 7390 - Section 2.5}, \c MAX_SERVER_RESPONSE_DELAY is the expected
maximum response delay over all servers that the client can send a multicast request to.
*/
-void QCoapClient::setMaxServerResponseDelay(uint responseDelay)
+void QCoapClient::setMaximumServerResponseDelay(uint responseDelay)
{
Q_D(QCoapClient);
- QMetaObject::invokeMethod(d->protocol, "setMaxServerResponseDelay", Qt::QueuedConnection,
+ QMetaObject::invokeMethod(d->protocol, "setMaximumServerResponseDelay", Qt::QueuedConnection,
Q_ARG(uint, responseDelay));
}
@@ -666,14 +666,14 @@ void QCoapClient::setAckRandomFactor(double ackRandomFactor)
/*!
Sets the \c MAX_RETRANSMIT value defined in \l {RFC 7252 - Section 4.2}
- to \a maxRetransmit. This value should be less than or equal to 25.
+ to \a maximumRetransmitCount. This value should be less than or equal to 25.
The default is 4.
*/
-void QCoapClient::setMaxRetransmit(uint maxRetransmit)
+void QCoapClient::setMaximumRetransmitCount(uint maximumRetransmitCount)
{
Q_D(QCoapClient);
- QMetaObject::invokeMethod(d->protocol, "setMaxRetransmit", Qt::QueuedConnection,
- Q_ARG(uint, maxRetransmit));
+ QMetaObject::invokeMethod(d->protocol, "setMaximumRetransmitCount", Qt::QueuedConnection,
+ Q_ARG(uint, maximumRetransmitCount));
}
QT_END_NAMESPACE