552e937e51
The ConversationListView is now an BOutlineListView, and rooms are added as subitems to the item of their associated account. Right now, account items aren't selectable or useful.
30 lines
548 B
C++
30 lines
548 B
C++
/*
|
|
* Copyright 2021, Jaidyn Levesque <jadedctrl@teknik.io>
|
|
* All rights reserved. Distributed under the terms of the MIT license.
|
|
*/
|
|
#ifndef CONVERSATIONITEM_H
|
|
#define CONVERSATIONITEM_H
|
|
|
|
#include <StringItem.h>
|
|
|
|
#include "Observer.h"
|
|
|
|
class Conversation;
|
|
|
|
|
|
class ConversationItem : public BStringItem, public Observer {
|
|
public:
|
|
ConversationItem(const char* name, Conversation* chat);
|
|
|
|
Conversation* GetConversation();
|
|
|
|
protected:
|
|
void ObserveString(int32 what, BString str);
|
|
|
|
private:
|
|
Conversation* fChat;
|
|
};
|
|
|
|
|
|
#endif // CONVERSATIONITEM_H
|