Chat-O-Matic/application/Contact.cpp

40 lines
717 B
C++
Raw Normal View History

/*
2011-12-03 16:38:03 -06:00
* Copyright 2009-2011, Andrea Anzani. All rights reserved.
* Copyright 2012, Dario Casalinuovo. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* Andrea Anzani, andrea.anzani@gmail.com
* Dario Casalinuovo
*/
2021-05-23 14:39:07 -05:00
#include "Contact.h"
#include "RosterItem.h"
2021-05-23 14:39:07 -05:00
Contact::Contact(BString id, BMessenger msgn)
2010-05-19 17:28:26 -05:00
:
User::User(id, msgn)
{
fRosterItem = new RosterItem(id.String(), this);
RegisterObserver(fRosterItem);
}
RosterItem*
2021-05-23 14:39:07 -05:00
Contact::GetRosterItem() const
{
return fRosterItem;
}
void
2021-05-23 14:39:07 -05:00
Contact::SetNotifyAvatarBitmap(BBitmap* bitmap)
{
User::SetNotifyAvatarBitmap(bitmap);
// if (fAvatarBitmap != NULL && fChatWindow != NULL)
// fChatWindow->UpdateAvatar();
}