/* * Copyright 2021, Jaidyn Levesque * All rights reserved. Distributed under the terms of the MIT license. */ #include "UserItem.h" #include "NotifyMessage.h" #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) { switch (what) { case STR_CONTACT_NAME: SetText(str); break; } }