Chat-O-Matic/application/windows/RosterWindow.h

41 lines
1019 B
C
Raw Normal View History

/*
* Copyright 2009-2011, Andrea Anzani. All rights reserved.
* Copyright 2009-2011, Pier Luigi Fiorini. All rights reserved.
* Copyright 2021, Jaidyn Levesque. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* Andrea Anzani, andrea.anzani@gmail.com
* Pier Luigi Fiorini, pierluigi.fiorini@gmail.com
* Jaidyn Levesque, jadedctrl@teknik.io
*/
#ifndef ROSTERWINDOW_H
#define ROSTERWINDOW_H
#include <Window.h>
class RosterItem;
class RosterView;
class Server;
/* A window with the a list of the user's contacts, will send a message to
the server with contact info, once a contact is selected. */
class RosterWindow : public BWindow {
public:
2021-06-08 21:43:30 -05:00
RosterWindow(const char* title, BMessage* selectMsg, BMessenger* messenger,
Server* server);
void MessageReceived(BMessage* message);
void UpdateListItem(RosterItem* item);
private:
Server* fServer;
RosterView* fRosterView;
BMessenger* fTarget;
BMessage* fMessage;
};
#endif // ROSTERWINDOW_H