diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-08-03 17:07:38 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-08-03 17:07:38 +0900 |
commit | b0551c2164ff519ac8fcd2df5ff5a72655779f2f (patch) | |
tree | 521a4f7b0230374d3ac5c457d1866123feee5123 /lib | |
parent | 85b09ebc7cbcf58f1802438f600a3eaeb2286887 (diff) | |
download | libquotient-b0551c2164ff519ac8fcd2df5ff5a72655779f2f.tar.gz libquotient-b0551c2164ff519ac8fcd2df5ff5a72655779f2f.zip |
Connection::sendMessage: mark as tentative
...and therefore deprecated for use in clients _yet_.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/connection.cpp | 3 | ||||
-rw-r--r-- | lib/connection.h | 1 | ||||
-rw-r--r-- | lib/eventitem.cpp | 0 | ||||
-rw-r--r-- | lib/eventitem.h | 4 |
4 files changed, 7 insertions, 1 deletions
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 --- /dev/null +++ b/lib/eventitem.cpp 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 |