aboutsummaryrefslogtreecommitdiffstats
path: root/src/coap/qcoaprequest.h
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2019-05-12 22:17:32 +0200
committerSona Kurazyan <sona.kurazyan@qt.io>2019-05-14 15:15:24 +0000
commit3d10238a8be9cecdf6850791d0520d17e33297a6 (patch)
tree046c34e413c0fdb81b4bd17b7b7136a7f53f69b9 /src/coap/qcoaprequest.h
parent04b0424b8cf1aae3e0d9e8496650ce3329872917 (diff)
Improve the API of QCoapMessage
- Rename QCoapMessage::MessageType -> QCoapMessage::Type - Rename option() -> optionAt() - Rename removeAllOptions() -> clearOptions() - Hide findOption(). option() is more convenient to use instead. - Add a setOptions() method. This change is based on the feedback from API review. Change-Id: I2093a06ca09eebb95865a82e09d2aa2265379e5d Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/coap/qcoaprequest.h')
-rw-r--r--src/coap/qcoaprequest.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/coap/qcoaprequest.h b/src/coap/qcoaprequest.h
index c833334..e506c83 100644
--- a/src/coap/qcoaprequest.h
+++ b/src/coap/qcoaprequest.h
@@ -46,10 +46,9 @@ class Q_COAP_EXPORT QCoapRequest : public QCoapMessage
{
public:
explicit QCoapRequest(const QUrl &url = QUrl(),
- MessageType type = MessageType::NonConfirmable,
- const QUrl &proxyUrl = QUrl());
- explicit QCoapRequest(const char* url,
- MessageType type = MessageType::NonConfirmable);
+ Type type = Type::NonConfirmable,
+ const QUrl &proxyUrl = QUrl());
+ explicit QCoapRequest(const char* url, Type type = Type::NonConfirmable);
QCoapRequest(const QCoapRequest &other);
~QCoapRequest();