xref: /haiku/src/add-ons/input_server/devices/keyboard/TeamListItem.h (revision 4f2fd49bdc6078128b1391191e4edac647044c3d)
1 /*
2  * Copyright 2004-2008, Haiku.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Jérôme Duval
7  */
8 #ifndef TEAM_LIST_ITEM_H
9 #define TEAM_LIST_ITEM_H
10 
11 
12 #include <Bitmap.h>
13 #include <ListItem.h>
14 #include <Path.h>
15 
16 
17 class TeamListItem : public BListItem  {
18 public:
19 								TeamListItem(team_info& info);
20 	virtual						~TeamListItem();
21 
22 	virtual						void DrawItem(BView* owner, BRect frame,
23 									bool complete = false);
24 	virtual						void Update(BView* owner, const BFont* font);
25 
26 			const team_info*	GetInfo();
27 			const BBitmap*		LargeIcon() { return &fLargeIcon; };
28 			const BPath*		Path() { return &fPath; };
29 			bool				IsSystemServer();
30 
31 			bool				Found() const { return fFound; }
32 			void				SetFound(bool found) { fFound = found; }
33 
34 	static	int32				MinimalHeight();
35 
36 private:
37 			team_info			fInfo;
38 			BBitmap				fIcon, fLargeIcon;
39 			BPath				fPath;
40 			bool				fFound;
41 };
42 
43 
44 #endif	// TEAM_LIST_ITEM_H
45