2018-05-23 22:27:29 +02:00
|
|
|
#pragma once
|
2019-09-08 22:27:57 +02:00
|
|
|
|
2018-06-26 14:09:39 +02:00
|
|
|
#include "widgets/BaseWindow.hpp"
|
2019-09-08 22:27:57 +02:00
|
|
|
|
2018-05-23 22:27:29 +02:00
|
|
|
namespace chatterino {
|
2019-09-08 22:27:57 +02:00
|
|
|
|
2018-05-23 22:27:29 +02:00
|
|
|
class ChannelView;
|
2019-09-08 22:27:57 +02:00
|
|
|
|
2018-08-11 22:23:06 +02:00
|
|
|
class Channel;
|
|
|
|
using ChannelPtr = std::shared_ptr<Channel>;
|
2019-09-08 22:27:57 +02:00
|
|
|
|
2018-08-11 22:23:06 +02:00
|
|
|
struct Message;
|
|
|
|
using MessagePtr = std::shared_ptr<const Message>;
|
2019-09-08 22:27:57 +02:00
|
|
|
|
2018-05-23 22:27:29 +02:00
|
|
|
class NotificationPopup : public BaseWindow
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
enum Location { TopLeft, TopRight, BottomLeft, BottomRight };
|
|
|
|
NotificationPopup();
|
2019-09-08 22:27:57 +02:00
|
|
|
|
2018-06-28 19:38:57 +02:00
|
|
|
void addMessage(MessagePtr msg);
|
2018-05-23 22:27:29 +02:00
|
|
|
void updatePosition();
|
2019-09-08 22:27:57 +02:00
|
|
|
|
2018-05-23 22:27:29 +02:00
|
|
|
private:
|
2018-07-06 19:23:47 +02:00
|
|
|
ChannelView *channelView_;
|
|
|
|
ChannelPtr channel_;
|
2018-05-23 22:27:29 +02:00
|
|
|
};
|
2019-09-08 22:27:57 +02:00
|
|
|
|
2018-05-23 22:27:29 +02:00
|
|
|
} // namespace chatterino
|