Maki
Formally verified low-code orchestration
Loading...
Searching...
No Matches
long_notification.h
1#pragma once
2
3#include "notification_widget.h"
4
5namespace maki
6{
11{
12 Q_OBJECT
13public:
22 LongNotificationWidget(const QString& id, const QString& title, logging::LogLevel level, QWidget* parent = nullptr);
23
29 void updateContent(QWidget* content);
30
36 QString id() const;
37
43 bool disappearing() const override;
44
45protected:
46 void setupAlarm(int msec) override;
47
48private:
50 const QString mId;
51};
52} // namespace maki
NotificationWidget(const QString &title, const QString &text, logging::LogLevel level, QWidget *parent=nullptr)
Constructs a notification widget.
Definition notification_widget.cpp:15
const QString mId
Unique identifier for the widget.
Definition long_notification.h:50
bool disappearing() const override
Checks if the notification is set to disappear automatically.
Definition long_notification.cpp:34
void updateContent(QWidget *content)
Updates the content of the notification widget.
Definition long_notification.cpp:20
QString id() const
Retrieves the unique identifier for the widget.
Definition long_notification.cpp:15
LongNotificationWidget(const QString &id, const QString &title, logging::LogLevel level, QWidget *parent=nullptr)
Constructs a new LongNotificationWidget.
Definition long_notification.cpp:9
Contains UI helper widgets and layout grouping utilities used by MAKI.
Definition macros.h:9