6a160ced88
The room directory window now has an accounts menu, to allow the user to filter rooms by account― and a "category" column has been added, which can optionally be filled by the protocol for more semantic sorting of rooms (Through "category" slot of IM_ROOM_DIRECTORY).
33 lines
541 B
C++
33 lines
541 B
C++
/*
|
|
* Copyright 2021, Jaidyn Levesque <jadedctrl@teknik.io>
|
|
* All rights reserved. Distributed under the terms of the MIT license.
|
|
*/
|
|
#ifndef _ROOM_LIST_ROW_H
|
|
#define _ROOM_LIST_ROW_H
|
|
|
|
#include <ColumnListView.h>
|
|
|
|
|
|
enum {
|
|
kNameColumn,
|
|
kDescColumn,
|
|
kCatColumn,
|
|
kUserColumn
|
|
};
|
|
|
|
|
|
class RoomListRow : public BRow {
|
|
public:
|
|
RoomListRow(BMessage* msg);
|
|
~RoomListRow();
|
|
|
|
BMessage* Message() { return fMessage; }
|
|
int64 Instance() { return fInstance; }
|
|
|
|
private:
|
|
int64 fInstance;
|
|
BMessage* fMessage;
|
|
};
|
|
|
|
#endif // _ROOM_LIST_ROW_H
|