2 files changed, 14 insertions, 0 deletions
diff --git a/include/Cache.h b/include/Cache.h
index 1fa6c430..7ecc5d59 100644
--- a/include/Cache.h
+++ b/include/Cache.h
@@ -196,6 +196,7 @@ public:
//! Retrieves the saved room avatar.
QImage getRoomAvatar(const QString &id);
+ QImage getRoomAvatar(const std::string &id);
//! Adds a user to the read list for the given event.
//!
@@ -220,6 +221,7 @@ public:
}
void saveImage(const QString &url, const QByteArray &data);
+ RoomInfo singleRoomInfo(const std::string &room_id);
std::vector<std::string> roomsWithStateUpdates(const mtx::responses::Sync &res);
std::map<QString, RoomInfo> getRoomInfo(const std::vector<std::string> &rooms);
std::map<QString, RoomInfo> roomUpdates(const mtx::responses::Sync &sync)
diff --git a/include/notifications/Manager.h b/include/notifications/Manager.h
new file mode 100644
index 00000000..4ee4cb98
--- /dev/null
+++ b/include/notifications/Manager.h
@@ -0,0 +1,12 @@
+#pragma once
+
+#include <QImage>
+#include <QString>
+
+class NotificationsManager
+{
+public:
+ static void postNotification(const QString &room,
+ const QString &user,
+ const QString &message);
+};
|