summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/Notification.h
blob: 218dfa6c7e8b124e8bdeb19a584c446c14e24931 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#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;
};

}