Chat-O-Matic/application/views/UserPopUp.h
Jaidyn Ann 7822ec0449 Split 'Contact' class into two
This dichotomy is useful and necessary in multi-user chats, so I split
Contact into a parent class, User. User should be used for generic
members of rooms, Contact used mainly with the roster.
2021-05-23 15:10:14 -05:00

41 lines
741 B
C++

/*
* Copyright 2009, Pier Luigi Fiorini. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _USER_POPUP_H
#define _USER_POPUP_H
#include <Window.h>
#include "Observer.h"
class BTextControl;
class BStringView;
class BitmapView;
class User;
class UserPopUp : public BWindow, public Observer {
public:
UserPopUp(User* user);
virtual void MessageReceived(BMessage* msg);
void MoveTo(BPoint where);
protected:
void ObserveString(int32 what, BString str);
void ObservePointer(int32 what, void* ptr);
void ObserveInteger(int32 what, int32 val);
private:
BPoint fCoords;
BTextControl* fNickBox;
BStringView* fLabel;
BitmapView* fAvatarView;
};
#endif // _USER_POPUP_H