2021-05-27 11:15:30 -05:00
|
|
|
/*
|
|
|
|
* Copyright 2021, Jaidyn Levesque <jadedctrl@teknik.io>
|
|
|
|
* All rights reserved. Distributed under the terms of the MIT license.
|
|
|
|
*/
|
|
|
|
#ifndef CONVERSATIONITEM_H
|
|
|
|
#define CONVERSATIONITEM_H
|
|
|
|
|
2021-06-11 17:24:04 -05:00
|
|
|
#include <StringItem.h>
|
2021-05-27 11:15:30 -05:00
|
|
|
|
|
|
|
#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
|