7822ec0449
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.
38 lines
652 B
C++
38 lines
652 B
C++
/*
|
|
* Copyright 2012, Casalinuovo Dario. All rights reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*
|
|
* Authors:
|
|
* Casalinuovo Dario
|
|
*/
|
|
#ifndef _USER_INFO_WINDOW_H
|
|
#define _USER_INFO_WINDOW_H
|
|
|
|
#include <Window.h>
|
|
#include <TextView.h>
|
|
#include <StringView.h>
|
|
#include "Observer.h"
|
|
|
|
#include "CayaConstants.h"
|
|
|
|
class BitmapView;
|
|
class User;
|
|
|
|
|
|
class UserInfoWindow: public BWindow, public Observer {
|
|
public:
|
|
UserInfoWindow(User* user);
|
|
|
|
virtual void MessageReceived(BMessage* message);
|
|
|
|
private:
|
|
BTextView* fStatus;
|
|
User* fUser;
|
|
BTextView* fPersonalMessage;
|
|
BitmapView* fAvatar;
|
|
};
|
|
|
|
|
|
#endif // _USER_INFO_WINDOW_H
|
|
|