mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
30 lines
558 B
C++
30 lines
558 B
C++
#pragma once
|
|
|
|
#include "widgets/BaseWindow.hpp"
|
|
|
|
namespace chatterino {
|
|
|
|
class ChannelView;
|
|
|
|
class Channel;
|
|
using ChannelPtr = std::shared_ptr<Channel>;
|
|
|
|
struct Message;
|
|
using MessagePtr = std::shared_ptr<const Message>;
|
|
|
|
class NotificationPopup : public BaseWindow
|
|
{
|
|
public:
|
|
enum Location { TopLeft, TopRight, BottomLeft, BottomRight };
|
|
NotificationPopup();
|
|
|
|
void addMessage(MessagePtr msg);
|
|
void updatePosition();
|
|
|
|
private:
|
|
ChannelView *channelView_;
|
|
ChannelPtr channel_;
|
|
};
|
|
|
|
} // namespace chatterino
|