2021-05-31 10:50:43 -05:00
|
|
|
/*
|
|
|
|
* Copyright 2021, Jaidyn Levesque <jadedctrl@teknik.io>
|
|
|
|
* All rights reserved. Distributed under the terms of the MIT license.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "UserItem.h"
|
|
|
|
|
2021-06-02 16:53:03 -05:00
|
|
|
#include "NotifyMessage.h"
|
2021-05-31 10:50:43 -05:00
|
|
|
#include "User.h"
|
|
|
|
|
|
|
|
|
|
|
|
UserItem::UserItem(const char* name, User* user)
|
|
|
|
:
|
|
|
|
BStringItem(name),
|
|
|
|
fUser(user)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
User*
|
|
|
|
UserItem::GetUser()
|
|
|
|
{
|
|
|
|
return fUser;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
UserItem::ObserveString(int32 what, BString str)
|
|
|
|
{
|
2021-06-02 16:53:03 -05:00
|
|
|
switch (what) {
|
|
|
|
case STR_CONTACT_NAME:
|
|
|
|
SetText(str);
|
|
|
|
break;
|
|
|
|
}
|
2021-05-31 10:50:43 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|