xref: /haiku/src/preferences/joysticks/PortItem.h (revision eb1e73351294d82efec463018cc24ea0d8d73d06)
1 /*
2  * Copyright 2008 Haiku.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Fredrik Modéen 			fredrik@modeen.se
7  */
8 #ifndef PORT_ITEM_H
9 #define PORT_ITEM_H
10 
11 #include <ListItem.h>
12 #include <String.h>
13 
14 class PortItem : public BStringItem {
15 	public:
16 		PortItem(const char* label);
17 		~PortItem();
18 		virtual void DrawItem(BView *owner, BRect frame, bool complete = false);
19 		BString 	GetOldJoystickName();
20 		BString 	GetJoystickName();
21 		void		SetJoystickName(BString str);
22 	protected:
23 		BString 	fOldSelectedJoystick;
24 		BString 	fSelectedJoystick;
25 };
26 
27 
28 #endif	/* MESSAGED_ITEM_H */
29 
30