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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "ConversationItem.h"
|
|
|
|
|
|
|
|
#include "Conversation.h"
|
2021-06-06 18:06:46 -05:00
|
|
|
#include "NotifyMessage.h"
|
2021-05-27 11:15:30 -05:00
|
|
|
|
|
|
|
|
|
|
|
ConversationItem::ConversationItem(const char* name, Conversation* chat)
|
|
|
|
:
|
|
|
|
BStringItem(name),
|
|
|
|
fChat(chat)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Conversation*
|
|
|
|
ConversationItem::GetConversation()
|
|
|
|
{
|
|
|
|
return fChat;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
ConversationItem::ObserveString(int32 what, BString str)
|
|
|
|
{
|
2021-06-06 18:06:46 -05:00
|
|
|
switch (what)
|
|
|
|
{
|
|
|
|
case STR_ROOM_NAME:
|
|
|
|
SetText(str.String());
|
|
|
|
break;
|
|
|
|
}
|
2021-05-27 11:15:30 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|