Chat-O-Matic/application/views/UserItem.h
Jaidyn Ann 63d8bbef26 Add user-list to the conversation view, menu tweaks
UserListView and UserItem were added as the backbone of the user-list,
and the (currently unused) Caya message CAYA_SEND_INVITE was established
for inviting users to rooms.

Some menus were reworked (e.g., pop-ups of the RosterListView) or
generally tweaked to be more sensical or consistent.
2021-05-31 10:50:43 -05:00

33 lines
559 B
C++

/*
* Copyright 2021, Jaidyn Levesque <jadedctrl@teknik.io>
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef USERITEM_H
#define USERITEM_H
#include <StringItem.h>
#include "Observer.h"
class User;
class UserItem : public BStringItem, public Observer {
public:
UserItem(const char* name, User* user);
User* GetUser();
protected:
void ObserveString(int32 what, BString str);
void ObservePointer(int32 what, void* ptr);
void ObserveInteger(int32 what, int32 val);
private:
User* fUser;
};
#endif // USERITEM_H