| 1 | // For license of this file, see <project-root-folder>/LICENSE.md.cxx . . $ `<file>/src/librssguard/gui/notifications/toastnotificationsmanager.h`/ |
| 2 | |
| 3 | #ifndef TOASTNOTIFICATIONSMANAGER_H |
| 4 | #define TOASTNOTIFICATIONSMANAGER_Hcxx . . $ `src/librssguard/gui/notifications/toastnotificationsmanager.h:4:9`! |
| 5 | |
| 6 | #include "miscellaneous/application.h"cxx . . $ `<file>/src/librssguard/miscellaneous/application.h`/ |
| 7 | |
| 8 | #include <QObject> |
| 9 | |
| 10 | class BaseToastNotificationcxx . . $ BaseToastNotification#; |
| 11 | class ToastNotificationcxx . . $ ToastNotification#; |
| 12 | class ArticleListNotificationcxx . . $ ArticleListNotification#; |
| 13 | class QScreencxx . . $ QScreen#; |
| 14 | |
| 15 | class ToastNotificationsManagercxx . . $ ToastNotificationsManager# : public QObjectcxx . . $ QObject# { |
| 16 | Q_OBJECTcxx . . $ ToastNotificationsManager#qt_staticMetaObjectContent. |
| 17 | |
| 18 | public: |
| 19 | enum NotificationPositioncxx . . $ ToastNotificationsManager#NotificationPosition# { |
| 20 | TopLeftcxx . . $ ToastNotificationsManager#TopLeft. = 0, |
| 21 | TopRightcxx . . $ ToastNotificationsManager#TopRight. = 1, |
| 22 | BottomLeftcxx . . $ ToastNotificationsManager#BottomLeft. = 2, |
| 23 | BottomRightcxx . . $ ToastNotificationsManager#BottomRight. = 3 |
| 24 | }; |
| 25 | |
| 26 | Q_ENUMcxx . . $ qt_getEnumName(d0ee44f25a20f12e).(NotificationPosition) |
| 27 | |
| 28 | static QStringcxx . . $ QString# textForPositioncxx . . $ ToastNotificationsManager#textForPosition(fae50dc48360ca53).(ToastNotificationsManagercxx . . $ ToastNotificationsManager#::NotificationPositioncxx . . $ ToastNotificationsManager#NotificationPosition# pos); |
| 29 | |
| 30 | explicit ToastNotificationsManagercxx . . $ ToastNotificationsManager#ToastNotificationsManager(749de1b6ae65bddd).(QObjectcxx . . $ QObject#* parent = nullptr); |
| 31 | virtual ~cxx . . $ ToastNotificationsManager#`~ToastNotificationsManager`(ced63f7c635d850d).ToastNotificationsManagercxx . . $ ToastNotificationsManager#(); |
| 32 | |
| 33 | QListcxx . . $ QList#<BaseToastNotificationcxx . . $ BaseToastNotification#*> activeNotificationscxx . . $ ToastNotificationsManager#activeNotifications(d4d68b9c133d1334).() const; |
| 34 | |
| 35 | // Screen ID, setting this to -1 means using default/primary |
| 36 | // monitor. |
| 37 | int screencxx . . $ ToastNotificationsManager#screen(455f465bc33b4cdf).() const; |
| 38 | void setScreencxx . . $ ToastNotificationsManager#setScreen(d4f767463ce0a6b3).(int screen); |
| 39 | |
| 40 | NotificationPositioncxx . . $ ToastNotificationsManager#NotificationPosition# positioncxx . . $ ToastNotificationsManager#position(1161e5568e155ec1).() const; |
| 41 | void setPositioncxx . . $ ToastNotificationsManager#setPosition(9616ea535f20de44).(NotificationPositioncxx . . $ ToastNotificationsManager#NotificationPosition# position); |
| 42 | |
| 43 | void resetNotificationscxx . . $ ToastNotificationsManager#resetNotifications(b45ddcbc8423892c).(bool reload_existing_notifications); |
| 44 | |
| 45 | public slotscxx . . $ `<external>/4830994369567095248/qtmetamacros.h:42:14`!: |
| 46 | void clearcxx . . $ ToastNotificationsManager#clear(b45ddcbc8423892c).(bool delete_from_memory); |
| 47 | void showNotificationcxx . . $ ToastNotificationsManager#showNotification(db35c252f9762c99).(Notificationcxx . . $ Notification#::Eventcxx . . $ Notification#Event# event, const GuiMessagecxx . . $ GuiMessage#& msg, const GuiActioncxx . . $ GuiAction#& action =cxx . . $ GuiAction#GuiAction(7d816f6132cf943f). {}); |
| 48 | |
| 49 | private slotscxx . . $ `<external>/4830994369567095248/qtmetamacros.h:42:14`!: |
| 50 | void closeNotificationcxx . . $ ToastNotificationsManager#closeNotification(2a2e788c3715e41f).(BaseToastNotificationcxx . . $ BaseToastNotification#* notif, bool delete_from_memory); |
| 51 | |
| 52 | signalscxx . . $ `<external>/4830994369567095248/qtmetamacros.h:43:14`!: |
| 53 | void openingArticleInArticleListRequestedcxx . . $ ToastNotificationsManager#openingArticleInArticleListRequested(12e982556975822d).(Feedcxx . . $ Feed#* feed, const Messagecxx . . $ Message#& msg); |
| 54 | void reloadMessageListRequestedcxx . . $ ToastNotificationsManager#reloadMessageListRequested(b45ddcbc8423892c).(bool mark_selected_messages_read); |
| 55 | |
| 56 | private: |
| 57 | QScreencxx . . $ QScreen#* activeScreencxx . . $ ToastNotificationsManager#activeScreen(4337f1790dda8b68).() const; |
| 58 | QScreencxx . . $ QScreen#* moveToProperScreencxx . . $ ToastNotificationsManager#moveToProperScreen(e95988cba52200bb).(BaseToastNotificationcxx . . $ BaseToastNotification#* notif); |
| 59 | QPointcxx . . $ QPoint# cornerForNewNotificationcxx . . $ ToastNotificationsManager#cornerForNewNotification(d23603d339d02b93).(QRectcxx . . $ QRect# screen_rect); |
| 60 | |
| 61 | void processNotificationcxx . . $ ToastNotificationsManager#processNotification(8310c1ebbd6d7163).(BaseToastNotificationcxx . . $ BaseToastNotification#* notif); |
| 62 | void initializeArticleListNotificationcxx . . $ ToastNotificationsManager#initializeArticleListNotification(49f6e7a06ebc5aa8).(); |
| 63 | void hookNotificationcxx . . $ ToastNotificationsManager#hookNotification(8310c1ebbd6d7163).(BaseToastNotificationcxx . . $ BaseToastNotification#* notif); |
| 64 | void moveNotificationToCornercxx . . $ ToastNotificationsManager#moveNotificationToCorner(cebefd8d352d5235).(BaseToastNotificationcxx . . $ BaseToastNotification#* notif, QPointcxx . . $ QPoint# corner); |
| 65 | void makeSpaceForNotificationcxx . . $ ToastNotificationsManager#makeSpaceForNotification(46dd98b1bd92177a).(int height_to_make_space, bool reverse = false, int stard_idx = 0); |
| 66 | void removeOutOfBoundsNotificationscxx . . $ ToastNotificationsManager#removeOutOfBoundsNotifications(d4f767463ce0a6b3).(int height_to_reserve); |
| 67 | |
| 68 | private: |
| 69 | NotificationPositioncxx . . $ ToastNotificationsManager#NotificationPosition# m_positioncxx . . $ ToastNotificationsManager#m_position.; |
| 70 | int m_screencxx . . $ ToastNotificationsManager#m_screen.; |
| 71 | int m_marginscxx . . $ ToastNotificationsManager#m_margins.; |
| 72 | int m_widthcxx . . $ ToastNotificationsManager#m_width.; |
| 73 | double m_opacitycxx . . $ ToastNotificationsManager#m_opacity.; |
| 74 | |
| 75 | // List of all displayed notifications, newest notifications are in the beginning of the list |
| 76 | // and oldest at the end. |
| 77 | QListcxx . . $ QList#<BaseToastNotificationcxx . . $ BaseToastNotification#*> m_activeNotificationscxx . . $ ToastNotificationsManager#m_activeNotifications.; |
| 78 | |
| 79 | ArticleListNotificationcxx . . $ ArticleListNotification#* m_articleListNotificationcxx . . $ ToastNotificationsManager#m_articleListNotification.; |
| 80 | }; |
| 81 | |
| 82 | #endif // TOASTNOTIFICATIONSMANAGER_H |