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

IRClient: Add a member list to channel views.

This commit is contained in:
Andreas Kling 2019-03-15 18:25:51 +01:00
parent 08c15be0ca
commit 491aa112ab
7 changed files with 115 additions and 3 deletions

View file

@ -8,6 +8,7 @@
#include "IRCLogBuffer.h"
class IRCClient;
class IRCChannelMemberListModel;
class IRCChannel : public Retainable<IRCChannel> {
public:
@ -31,6 +32,12 @@ public:
const IRCLogBuffer& log() const { return *m_log; }
IRCLogBuffer& log() { return *m_log; }
IRCChannelMemberListModel* member_model() { return m_member_model; }
const IRCChannelMemberListModel* member_model() const { return m_member_model; }
int member_count() const { return m_members.size(); }
String member_at(int i) { return m_members[i].name; }
private:
IRCChannel(IRCClient&, const String&);
@ -44,4 +51,5 @@ private:
bool m_open { false };
Retained<IRCLogBuffer> m_log;
IRCChannelMemberListModel* m_member_model { nullptr };
};