mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:07:35 +00:00
IRCClient: Hacking on IRCClient bringup.
This commit is contained in:
parent
aa19735c5a
commit
850c7504a2
11 changed files with 210 additions and 12 deletions
|
@ -1,4 +1,5 @@
|
|||
#include "IRCLogBuffer.h"
|
||||
#include "IRCLogBufferModel.h"
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
|
||||
|
@ -9,6 +10,7 @@ Retained<IRCLogBuffer> IRCLogBuffer::create()
|
|||
|
||||
IRCLogBuffer::IRCLogBuffer()
|
||||
{
|
||||
m_model = new IRCLogBufferModel(*this);
|
||||
}
|
||||
|
||||
IRCLogBuffer::~IRCLogBuffer()
|
||||
|
@ -18,6 +20,7 @@ IRCLogBuffer::~IRCLogBuffer()
|
|||
void IRCLogBuffer::add_message(char prefix, const String& name, const String& text)
|
||||
{
|
||||
m_messages.enqueue({ time(nullptr), prefix, name, text });
|
||||
m_model->update();
|
||||
}
|
||||
|
||||
void IRCLogBuffer::dump() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue