Chat-O-Matic/application/views/RoomListRow.h
Jaidyn Ann f19bcba62a Add Room Directory window
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.
2021-08-27 11:00:04 -05:00

32 lines
520 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,
kIdColumn,
kUserColumn
};
class RoomListRow : public BRow {
public:
RoomListRow(BMessage* msg);
BMessage* Message() { return fMessage; }
int64 Instance() { return fInstance; }
private:
int64 fInstance;
BMessage* fMessage;
};
#endif // _ROOM_LIST_ROW_H