Serenity Operating System
at portability 28 lines 494 B view raw
1#pragma once 2 3#include <LibCore/Object.h> 4 5namespace GUI { 6 7class Notification : public Core::Object { 8 C_OBJECT(Notification); 9 10public: 11 virtual ~Notification() override; 12 13 const String& text() const { return m_text; } 14 void set_text(const String& text) { m_text = text; } 15 16 const String& title() const { return m_title; } 17 void set_title(const String& title) { m_title = title; } 18 19 void show(); 20 21private: 22 Notification(); 23 24 String m_title; 25 String m_text; 26}; 27 28}