mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:27:35 +00:00
LibGUI+Notification: Use lifetime connection
In order to allow notifications to be updated, we will create a persistent connection for the lifetime of the notification.
This commit is contained in:
parent
dddaa529b2
commit
7351c77a42
2 changed files with 5 additions and 2 deletions
|
@ -30,6 +30,7 @@
|
|||
#include <LibGfx/Bitmap.h>
|
||||
|
||||
namespace GUI {
|
||||
class NotificationServerConnection;
|
||||
|
||||
class Notification : public Core::Object {
|
||||
C_OBJECT(Notification);
|
||||
|
@ -54,6 +55,8 @@ private:
|
|||
String m_title;
|
||||
String m_text;
|
||||
RefPtr<Gfx::Bitmap> m_icon;
|
||||
|
||||
NonnullRefPtr<NotificationServerConnection> m_connection;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue