diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-05-05 16:38:41 +0300 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-05-05 16:38:41 +0300 |
commit | ed9501023ae57e668a930e5d3accbb47ad3d7812 (patch) | |
tree | 11d0150f0bd3bae0013e67cbd3e184b778e9946b /include/MatrixClient.h | |
parent | Add compile option for address sanitizers (diff) | |
download | nheko-ed9501023ae57e668a930e5d3accbb47ad3d7812.tar.xz |
Add support for retrieving the notification events (#33)
Diffstat (limited to 'include/MatrixClient.h')
-rw-r--r-- | include/MatrixClient.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/MatrixClient.h b/include/MatrixClient.h index 1be15e56..35f05c31 100644 --- a/include/MatrixClient.h +++ b/include/MatrixClient.h @@ -91,6 +91,7 @@ public: void redactEvent(const QString &room_id, const QString &event_id); void inviteUser(const QString &room_id, const QString &user); void createRoom(const mtx::requests::CreateRoom &request); + void getNotifications() noexcept; QUrl getHomeServer() { return server_; }; int transactionId() { return txn_id_; }; @@ -178,6 +179,7 @@ signals: void redactionCompleted(const QString &room_id, const QString &event_id); void invalidToken(); void syncError(const QString &error); + void notificationsRetrieved(const mtx::responses::Notifications ¬ifications); private: QNetworkReply *makeUploadRequest(QSharedPointer<QIODevice> iodev); |