2010-05-07 04:47:10 -05:00
|
|
|
/*
|
|
|
|
* Copyright 2009, Pier Luigi Fiorini. All rights reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef _STATUS_VIEW_H
|
|
|
|
#define _STATUS_VIEW_H
|
|
|
|
|
|
|
|
#include <View.h>
|
|
|
|
|
|
|
|
#include "CayaConstants.h"
|
|
|
|
|
|
|
|
class BPopUpMenu;
|
|
|
|
|
|
|
|
class BitmapView;
|
|
|
|
class NicknameTextControl;
|
|
|
|
|
|
|
|
class StatusView : public BView {
|
|
|
|
public:
|
|
|
|
StatusView(const char* name);
|
|
|
|
|
|
|
|
virtual void AttachedToWindow();
|
|
|
|
virtual void MessageReceived(BMessage* msg);
|
|
|
|
|
|
|
|
void SetName(BString name);
|
|
|
|
void SetStatus(CayaStatus status);
|
2010-06-22 14:02:42 -05:00
|
|
|
void SetAvatarIcon(const BBitmap* bitmap);
|
2010-05-07 04:47:10 -05:00
|
|
|
|
|
|
|
private:
|
|
|
|
BPopUpMenu* fStatusMenu;
|
2012-05-15 11:48:53 -05:00
|
|
|
NicknameTextControl* fPersonalMessage;
|
2010-05-07 04:47:10 -05:00
|
|
|
BitmapView* fAvatar;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _STATUS_VIEW_H
|