Chat-O-Matic/application/views/UserListView.h

34 lines
590 B
C
Raw Normal View History

/*
* Copyright 2021, Jaidyn Levesque <jadedctrl@teknik.io>
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef CONVERSATIONLIST_H
#define CONVERSATIONLIST_H
#include <ListView.h>
class BPopUpMenu;
class Conversation;
class UserListView : public BListView {
public:
UserListView(const char* name);
void MessageReceived(BMessage* msg);
void MouseDown(BPoint where);
void SetConversation(Conversation* chat) { fChat = chat; }
private:
BPopUpMenu* _UserPopUp();
BPopUpMenu* _BlankPopUp();
Conversation* fChat;
};
#endif // CONVERSATIONLIST_H