Chat-O-Matic/application/views/RosterView.h
Jaidyn Ann dce82c2ba2 Use Server::Get(), clean up header usage
Instead of passing around pointers to the Server, Server::Get() returns
the server's pointer (simplifying some things a good bit).
As a result, headers have been cleaned up, and some redundant KeyMaps
have been placed in Maps.h.
2022-02-23 16:04:56 -06:00

57 lines
1.3 KiB
C++

/*
* 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 _ROSTER_VIEW_H
#define _ROSTER_VIEW_H
#include <GroupView.h>
#include "Maps.h"
class BStringItem;
class BTextControl;
class RosterItem;
class RosterListView;
class RosterView : public BGroupView {
public:
RosterView(const char* title, bigtime_t account = -1);
void MessageReceived(BMessage* message);
void ImMessage(BMessage* msg);
void AttachedToWindow();
void SetInvocationMessage(BMessage* msg);
void SetAccount(bigtime_t instance_id);
void SetManualString(const char* text) { fManualStr = text; }
int64 GetAccount() { return fAccount; }
BTextControl* SearchBox() { return fSearchBox; }
void UpdateListItem(RosterItem* item);
RosterListView* ListView();
private:
RosterMap _RosterMap();
RosterListView* fListView;
BTextControl* fSearchBox;
bigtime_t fAccount;
BStringItem* fManualItem;
BString fManualStr;
};
#endif // _ROSTER_VIEW_H