Chat-O-Matic/application/views/StatusView.h
plfiorini f560943e6f Handle IM_OWN_AVATAR_SET.
There's only one little problem that will probably be solved after Alpha1: if you have multiple accounts, all of them will set the avatar icon and the user will see just the last icon set.
2010-05-30 08:51:19 +00:00

35 lines
684 B
C++

/*
* 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);
void SetAvatarIcon(BBitmap* bitmap);
private:
BPopUpMenu* fStatusMenu;
NicknameTextControl* fNickname;
BitmapView* fAvatar;
};
#endif // _STATUS_VIEW_H