summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/Notification.h
diff options
context:
space:
mode:
authorNick Johnson <sylvyrfysh@gmail.com>2021-03-11 13:37:26 -0600
committerAndreas Kling <kling@serenityos.org>2021-03-22 12:46:16 +0100
commit7351c77a423108eaac1b1f6ab0abb11f6c601ee7 (patch)
treeddffa8e0bc9b46d033d256aebaff3a4255a637a8 /Userland/Libraries/LibGUI/Notification.h
parentdddaa529b29ec91bbeb3e9c092dada3733fdab10 (diff)
downloadserenity-7351c77a423108eaac1b1f6ab0abb11f6c601ee7.zip
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.
Diffstat (limited to 'Userland/Libraries/LibGUI/Notification.h')
-rw-r--r--Userland/Libraries/LibGUI/Notification.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/Notification.h b/Userland/Libraries/LibGUI/Notification.h
index 1b86bc8199..b26c5aa0fa 100644
--- a/Userland/Libraries/LibGUI/Notification.h
+++ b/Userland/Libraries/LibGUI/Notification.h
@@ -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;
};
}