From 0e814da91c8e041897a4c3f7e6e9234bbc7c6f7a Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Tue, 17 Jul 2018 16:37:25 +0300 Subject: Move all files under src/ --- include/notifications/Manager.h | 55 ----------------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 include/notifications/Manager.h (limited to 'include/notifications') diff --git a/include/notifications/Manager.h b/include/notifications/Manager.h deleted file mode 100644 index 4ac60097..00000000 --- a/include/notifications/Manager.h +++ /dev/null @@ -1,55 +0,0 @@ -#pragma once - -#include -#include -#include - -#if defined(Q_OS_LINUX) -#include -#include -#endif - -struct roomEventId -{ - QString roomId; - QString eventId; -}; - -class NotificationsManager : public QObject -{ - Q_OBJECT -public: - NotificationsManager(QObject *parent = nullptr); - - void postNotification(const QString &roomId, - const QString &eventId, - const QString &roomName, - const QString &senderName, - const QString &text, - const QImage &icon); - -signals: - void notificationClicked(const QString roomId, const QString eventId); - -#if defined(Q_OS_LINUX) -private: - QDBusInterface dbus; - uint showNotification(const QString summary, const QString text, const QImage image); - - // notification ID to (room ID, event ID) - QMap notificationIds; -#endif - - // these slots are platform specific (D-Bus only) - // but Qt slot declarations can not be inside an ifdef! -private slots: - void actionInvoked(uint id, QString action); - void notificationClosed(uint id, uint reason); -}; - -#if defined(Q_OS_LINUX) -QDBusArgument & -operator<<(QDBusArgument &arg, const QImage &image); -const QDBusArgument & -operator>>(const QDBusArgument &arg, QImage &); -#endif -- cgit 1.5.1