From b0551c2164ff519ac8fcd2df5ff5a72655779f2f Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Fri, 3 Aug 2018 17:07:38 +0900 Subject: Connection::sendMessage: mark as tentative ...and therefore deprecated for use in clients _yet_. --- lib/connection.cpp | 3 ++- lib/connection.h | 1 + lib/eventitem.cpp | 0 lib/eventitem.h | 4 ++++ 4 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 lib/eventitem.cpp create mode 100644 lib/eventitem.h (limited to 'lib') diff --git a/lib/connection.cpp b/lib/connection.cpp index d3a53cf4..92134675 100644 --- a/lib/connection.cpp +++ b/lib/connection.cpp @@ -640,7 +640,8 @@ SendToDeviceJob* Connection::sendToDevices(const QString& eventType, eventType, generateTxnId(), json); } -SendMessageJob* Connection::sendMessage(const QString& roomId, const RoomEvent& event) const +SendMessageJob* Connection::sendMessage(const QString& roomId, + const RoomEvent& event) const { const auto txnId = event.transactionId().isEmpty() ? generateTxnId() : event.transactionId(); diff --git a/lib/connection.h b/lib/connection.h index 48ca2232..3b747d08 100644 --- a/lib/connection.h +++ b/lib/connection.h @@ -422,6 +422,7 @@ namespace QMatrixClient SendToDeviceJob* sendToDevices(const QString& eventType, const UsersToDevicesToEvents& eventsMap) const; + /** \deprecated This method is experimental and may be removed any time */ SendMessageJob* sendMessage(const QString& roomId, const RoomEvent& event) const; diff --git a/lib/eventitem.cpp b/lib/eventitem.cpp new file mode 100644 index 00000000..e69de29b diff --git a/lib/eventitem.h b/lib/eventitem.h new file mode 100644 index 00000000..9e02fab0 --- /dev/null +++ b/lib/eventitem.h @@ -0,0 +1,4 @@ +#ifndef EVENTITEM_H +#define EVENTITEM_H + +#endif // EVENTITEM_H -- cgit v1.2.3