1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- /*
- * Copyright 2009, Pier Luigi Fiorini. All rights reserved.
- * Copyright 2021, Jaidyn Levesque. All rights reserved.
- * Distributed under the terms of the MIT License.
- */
- #ifndef _STATUS_VIEW_H
- #define _STATUS_VIEW_H
- #include <View.h>
- #include "AppConstants.h"
- #include "Observer.h"
- class BPopUpMenu;
- class AccountsMenu;
- class BitmapView;
- class EnterTextView;
- class MenuButton;
- class Server;
- class StatusView : public BView, public Observer {
- public:
- StatusView(const char* name, Server* server);
- virtual void AttachedToWindow();
- virtual void MessageReceived(BMessage* msg);
- virtual void ObserveString(int32 what, BString str);
- virtual void ObserveInteger(int32 what, int32 value);
- virtual void ObservePointer(int32 what, void* ptr);
- private:
- void _SetName(BString name);
- void _SetStatus(UserStatus status);
- void _SetAvatarIcon(const BBitmap* bitmap);
- void _SetToAccount();
- EnterTextView* fNickname;
- BitmapView* fAvatar;
- BPopUpMenu* fStatusMenu;
- MenuButton* fAccountsButton;
- AccountsMenu* fAccountsMenu;
- int64 fAccount;
- Server* fServer;
- };
- #endif // _STATUS_VIEW_H
|