1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:37:45 +00:00

IRCClient: Hacking on IRCClient bringup.

This commit is contained in:
Andreas Kling 2019-03-15 13:07:04 +01:00
parent aa19735c5a
commit 850c7504a2
11 changed files with 210 additions and 12 deletions

View file

@ -5,6 +5,8 @@
#include <AK/Retainable.h>
#include <AK/RetainPtr.h>
class IRCLogBufferModel;
class IRCLogBuffer : public Retainable<IRCLogBuffer> {
public:
static Retained<IRCLogBuffer> create();
@ -24,8 +26,13 @@ public:
void dump() const;
const IRCLogBufferModel* model() const { return m_model; }
IRCLogBufferModel* model() { return m_model; }
private:
IRCLogBuffer();
IRCLogBufferModel* m_model { nullptr };
CircularQueue<Message, 1000> m_messages;
};