/* * Copyright 2021, Jaidyn Levesque * All rights reserved. Distributed under the terms of the MIT license. */ #ifndef _ROOM_LIST_WINDOW_H #define _ROOM_LIST_WINDOW_H #include #include #include class BButton; class BColumnListView; class RoomListRow; class Server; typedef KeyMap*> RowMap; class RoomListWindow : public BWindow { public: RoomListWindow(Server* server); ~RoomListWindow(); static RoomListWindow* Get(Server* server); static bool Check(); virtual void MessageReceived(BMessage* msg); private: void _InitInterface(); void _EmptyList(); BButton* fJoinButton; BColumnListView* fListView; RowMap fRows; int64 fAccount; Server* fServer; static RoomListWindow* fInstance; }; #endif // _ROOM_LIST_WINDOW_H