8#include "widgets/notification_widget.h"
50 void showNotification(
const QString& header,
const QString& text, logging::LogLevel level);
64 QString
showLongNotification(
const QString&
id,
const QString& header, QWidget* contents, logging::LogLevel level);
QList< NotificationWidget * > mToasts
List of active notification toasts.
Definition notification_manager.h:105
void repositionToasts()
Repositions all active notification toasts.
Definition notification_manager.cpp:111
void showNotification(const QString &header, const QString &text, logging::LogLevel level)
Displays a new notification toast.
Definition notification_manager.cpp:28
void toggleMinimize(bool minimize)
Minimizes or expands all notifications.
Definition notification_manager.cpp:19
void onToastDismissed(NotificationWidget *toast)
Handles dismissal of a notification toast.
Definition notification_manager.cpp:105
QString updateExistingNotification(const QString &id, QWidget *contents, logging::LogLevel level)
Updates an existing notification with new contents.
Definition notification_manager.cpp:80
QString showLongNotification(const QString &id, const QString &header, QWidget *contents, logging::LogLevel level)
Displays a new long notification toast.
Definition notification_manager.cpp:51
QPointer< QWidget > mParentWindow
Weak pointer to the parent window used for positioning.
Definition notification_manager.h:104
bool eventFilter(QObject *watched, QEvent *event)
Event filter to track parent window changes.
Definition notification_manager.cpp:150
NotificationManager(QWidget *parentWindow, QObject *parent=nullptr)
Constructs a notification manager.
Definition notification_manager.cpp:10
bool mMinimize
Whether toasts should be minimized.
Definition notification_manager.h:107