summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/Notification.h
AgeCommit message (Collapse)Author
2022-12-06AK+Everywhere: Rename String to DeprecatedStringLinus Groh
We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^)
2022-04-01Everywhere: Run clang-formatIdan Horowitz
2022-02-25LibGUI: Rename NotificationServerConnectionItamar
Rename NotificationServerConnection=>ConnectionToNotificationServer. This was done with CLion's automatic rename feature.
2021-04-22Everything: Move to SPDX license identifiers in all files.Brian Gianforcaro
SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
2021-03-22NotificationServer: Close connection on notification closeNick Johnson
When the notification was closed, the connection was kept around. This caused the core event loop to take up nearly all CPU, so instead of checking the connection we clear it on close and add state variables to check state.
2021-03-22Notification: Use RefPtr for connectionNick Johnson
With this RefPtr, we can initialize the connection to the NotificationServer upon showing the notification. With this, we can prevent double shows and updates or closes before showing.
2021-03-22LibGUI+Notification: Add mutable notificationsNick Johnson
This commit puts all of the remaining pieces in place. This adds a mechanism to update the text, title, and icon of an image. If an image is not provided, the default ladybug will be shown.
2021-03-22Notification: Prevent showing a closed windowNick Johnson
If a notification was closed, the connection will now be dead. To prevent inconsistencies between when a user closes a notification and when an application closes an applicated, check if the notification has been closed before allowing any action.
2021-03-22LibGUI+Notification: Add notification closingNick Johnson
Closing a notification will now allow it to be shown again, as m_showing being false means it can be re-shown.
2021-03-22LibGUI+Notification: Use lifetime connectionNick Johnson
In order to allow notifications to be updated, we will create a persistent connection for the lifetime of the notification.
2021-01-12Libraries: Move to Userland/Libraries/Andreas Kling