Chat-O-Matic/application/views/ConversationItem.h
Jaidyn Ann fde681bbf4 Update conversation name & window title
Allow updating a conversation's name through IM_ROOM_NAME, and change
the Caya window's title whenever a new chat is selected.
2021-06-06 18:06:46 -05:00

30 lines
546 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 <ListView.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