mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:27:35 +00:00
Userland: Migrate to String in notification system
This commit is contained in:
parent
f46b393d2d
commit
a7c770268f
10 changed files with 35 additions and 34 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/String.h>
|
||||
#include <LibCore/EventReceiver.h>
|
||||
#include <LibGfx/Bitmap.h>
|
||||
|
||||
|
@ -21,15 +22,15 @@ class Notification : public Core::EventReceiver {
|
|||
public:
|
||||
virtual ~Notification() override;
|
||||
|
||||
DeprecatedString const& text() const { return m_text; }
|
||||
void set_text(DeprecatedString const& text)
|
||||
String const& text() const { return m_text; }
|
||||
void set_text(String const& text)
|
||||
{
|
||||
m_text_dirty = true;
|
||||
m_text = text;
|
||||
}
|
||||
|
||||
DeprecatedString const& title() const { return m_title; }
|
||||
void set_title(DeprecatedString const& title)
|
||||
String const& title() const { return m_title; }
|
||||
void set_title(String const& title)
|
||||
{
|
||||
m_title_dirty = true;
|
||||
m_title = title;
|
||||
|
@ -53,9 +54,9 @@ private:
|
|||
|
||||
void connection_closed();
|
||||
|
||||
DeprecatedString m_title;
|
||||
String m_title;
|
||||
bool m_title_dirty;
|
||||
DeprecatedString m_text;
|
||||
String m_text;
|
||||
bool m_text_dirty;
|
||||
RefPtr<Gfx::Bitmap const> m_icon;
|
||||
bool m_icon_dirty;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue