2021-05-31 10:50:43 -05:00
|
|
|
/*
|
|
|
|
* 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;
|
2021-06-06 01:49:11 -05:00
|
|
|
class Conversation;
|
2021-05-31 10:50:43 -05:00
|
|
|
|
|
|
|
|
|
|
|
class UserListView : public BListView {
|
|
|
|
public:
|
|
|
|
UserListView(const char* name);
|
|
|
|
|
|
|
|
void MessageReceived(BMessage* msg);
|
|
|
|
|
|
|
|
void MouseDown(BPoint where);
|
|
|
|
|
2021-06-06 01:49:11 -05:00
|
|
|
void SetConversation(Conversation* chat) { fChat = chat; }
|
|
|
|
|
2021-05-31 10:50:43 -05:00
|
|
|
private:
|
|
|
|
BPopUpMenu* _UserPopUp();
|
|
|
|
BPopUpMenu* _BlankPopUp();
|
2021-06-06 01:49:11 -05:00
|
|
|
|
|
|
|
Conversation* fChat;
|
2021-05-31 10:50:43 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // CONVERSATIONLIST_H
|
|
|
|
|