f19bcba62a
This window (Chat→Room directory) is to be used for either a list of publicly available rooms (in most protocols), or for a list of joined-but-hidden rooms (as it'll used with libpurple, to list its ChatBuddies). Each room is sent individually from protocols using IM_ROOM_DIRECTORY messages sent in response to a IM_GET_ROOM_DIRECTORY message.
36 lines
681 B
C++
36 lines
681 B
C++
/*
|
|
* Copyright 2021, Jaidyn Levesque <jadedctrl@teknik.io>
|
|
* All rights reserved. Distributed under the terms of the MIT license.
|
|
*/
|
|
#ifndef _ROOM_LIST_WINDOW_H
|
|
#define _ROOM_LIST_WINDOW_H
|
|
|
|
#include <Window.h>
|
|
|
|
class BButton;
|
|
class BColumnListView;
|
|
class Server;
|
|
|
|
|
|
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();
|
|
|
|
BButton* fJoinButton;
|
|
BColumnListView* fListView;
|
|
|
|
Server* fServer;
|
|
static RoomListWindow* fInstance;
|
|
};
|
|
|
|
#endif // _ROOM_LIST_WINDOW_H
|