From 9d84d5d8e7f61a02c01eef021ea5e8b2f49dcf8f Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 28 Apr 2018 15:31:27 +0200 Subject: Connect channels to database, currently only locally --- include/MessageBoard.hpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'include/MessageBoard.hpp') diff --git a/include/MessageBoard.hpp b/include/MessageBoard.hpp index ca1405f..b431af8 100644 --- a/include/MessageBoard.hpp +++ b/include/MessageBoard.hpp @@ -10,17 +10,20 @@ namespace dchat { + class Channel; + class MessageBoard { + friend class Channel; public: MessageBoard(const sf::Vector2u &size); ~MessageBoard(); - void updateStaticContentTexture(const sf::Vector2u &newSize); - void addMessage(Message *message); - void processEvent(const sf::Event &event); void draw(sf::RenderWindow &window, Cache &cache); + private: + void updateStaticContentTexture(const sf::Vector2u &newSize); + void addMessage(Message *message); private: sf::RenderTexture staticContentTexture; bool dirty; -- cgit v1.2.3