summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-05-05 22:40:24 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-05-05 22:40:24 +0300
commit506cf680728bd7f9124354be8ec6112d973fdac6 (patch)
tree1ebe25b2e2bb019e26a8b039e79646567e8c363e /include
parentAdd support for retrieving the notification events (#33) (diff)
downloadnheko-506cf680728bd7f9124354be8ec6112d973fdac6.tar.xz
Implement desktop notification for mac
Diffstat (limited to 'include')
-rw-r--r--include/Cache.h2
-rw-r--r--include/notifications/Manager.h12
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); +};