mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +00:00
0dc9af5f7e
Also run it across the whole tree to get everything using the One True Style. We don't yet run this in an automated fashion as it's a little slow, but there is a snippet to do so in makeall.sh.
28 lines
849 B
C++
28 lines
849 B
C++
#pragma once
|
|
|
|
#include <AK/Function.h>
|
|
#include <LibGUI/GModel.h>
|
|
|
|
class IRCChannel;
|
|
|
|
class IRCChannelMemberListModel final : public GModel {
|
|
public:
|
|
enum Column
|
|
{
|
|
Name
|
|
};
|
|
static Retained<IRCChannelMemberListModel> create(IRCChannel& channel) { return adopt(*new IRCChannelMemberListModel(channel)); }
|
|
virtual ~IRCChannelMemberListModel() override;
|
|
|
|
virtual int row_count(const GModelIndex&) const override;
|
|
virtual int column_count(const GModelIndex&) const override;
|
|
virtual String column_name(int column) const override;
|
|
virtual ColumnMetadata column_metadata(int column) const override;
|
|
virtual GVariant data(const GModelIndex&, Role = Role::Display) const override;
|
|
virtual void update() override;
|
|
|
|
private:
|
|
explicit IRCChannelMemberListModel(IRCChannel&);
|
|
|
|
IRCChannel& m_channel;
|
|
};
|