mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:27:43 +00:00
IRCClient: Rename IRCClientWindowFoo => IRCWindowFoo.
This commit is contained in:
parent
5c2d405e1f
commit
fc7f700c20
9 changed files with 59 additions and 59 deletions
30
Applications/IRCClient/IRCWindowListModel.h
Normal file
30
Applications/IRCClient/IRCWindowListModel.h
Normal file
|
@ -0,0 +1,30 @@
|
|||
#pragma once
|
||||
|
||||
#include <LibGUI/GTableModel.h>
|
||||
#include <AK/Function.h>
|
||||
|
||||
class IRCClient;
|
||||
class IRCWindow;
|
||||
|
||||
class IRCWindowListModel final : public GTableModel {
|
||||
public:
|
||||
enum Column {
|
||||
Name,
|
||||
};
|
||||
|
||||
explicit IRCWindowListModel(IRCClient&);
|
||||
virtual ~IRCWindowListModel() override;
|
||||
|
||||
virtual int row_count() const override;
|
||||
virtual int column_count() 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;
|
||||
virtual void activate(const GModelIndex&) override;
|
||||
|
||||
Function<void(IRCWindow&)> on_activation;
|
||||
|
||||
private:
|
||||
IRCClient& m_client;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue