mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-11-01 05:41:01 +00:00
29 lines
494 B
C
29 lines
494 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <LibCore/Object.h>
|
||
|
|
|
||
|
|
namespace GUI {
|
||
|
|
|
||
|
|
class Notification : public Core::Object {
|
||
|
|
C_OBJECT(Notification);
|
||
|
|
|
||
|
|
public:
|
||
|
|
virtual ~Notification() override;
|
||
|
|
|
||
|
|
const String& text() const { return m_text; }
|
||
|
|
void set_text(const String& text) { m_text = text; }
|
||
|
|
|
||
|
|
const String& title() const { return m_title; }
|
||
|
|
void set_title(const String& title) { m_title = title; }
|
||
|
|
|
||
|
|
void show();
|
||
|
|
|
||
|
|
private:
|
||
|
|
Notification();
|
||
|
|
|
||
|
|
String m_title;
|
||
|
|
String m_text;
|
||
|
|
};
|
||
|
|
|
||
|
|
}
|